annotate src/hunspell.mk @ 4618:de2eedecd6ba

update broken PKG_UPDATE rules, handle missing update rules * Makefile.in: add handling for packages with no update rule * src/gtk2.mk, src/gtk3.mk, src/libvpx.mk, src/taglib.mk, src/hunspell.mk, src/vala.mk : use github tags for version info * src/llvm.mk: add '?' to update url * src/openscenegraph.mk: update SED rule for version extraction * src/pthread-stubs.mk, src/qt5.mk, src/renderproto.mk, src/sm.mk, src/s2tc.mk, src/util-macros.mk: added dummy PKG_UPDATE rule * src/qscintilla.mk: change search name for version extraction * src/qtbase.mk: use short pkg version in update path * src/suitesparse.mk: update change in main url/version url * src/tre.mk: update download page link * src/vmime.mk: update download and update url * src/wget.mk, src/xapian-core.mk: update url, sed rule * src/wt.mk: update to use github download/update * src/src-msys-libcrypt.mk: update sed rule
author John Donoghue
date Fri, 09 Mar 2018 11:46:42 -0500
parents dc3eb553f5e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2394
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
1 # This file is part of MXE.
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
2 # See index.html for further information.
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
3
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
4 PKG := hunspell
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3048
diff changeset
6 $(PKG)_VERSION := 1.3.2
2394
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
7 $(PKG)_CHECKSUM := 902c76d2b55a22610e2227abc4fd26cbe606a51c
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := hunspell-$($(PKG)_VERSION)
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
9 $(PKG)_FILE := hunspell-$($(PKG)_VERSION).tar.gz
4618
de2eedecd6ba update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents: 4601
diff changeset
10 $(PKG)_URL := https://github.com/hunspell/hunspell/archive/v$($(PKG)_VERSION).tar.gz
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
11 $(PKG)_DEPS := libiconv gettext readline pthreads
2394
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
12
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
4618
de2eedecd6ba update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents: 4601
diff changeset
14 $(WGET) -q -O- 'https://github.com/hunspell/hunspell/tags' | \
de2eedecd6ba update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents: 4601
diff changeset
15 $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | \
de2eedecd6ba update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents: 4601
diff changeset
16 $(SORT) -Vr | \
2394
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
17 head -1
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
18 endef
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
19
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
20 define $(PKG)_BUILD
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
21 # Note: the configure file doesn't pick up pdcurses, so "ui" is disabled
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
22 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
23 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
24 $(ENABLE_SHARED_OR_STATIC) \
2394
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
25 --with-warnings \
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
26 --without-ui \
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
27 --with-readline \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
28 --prefix='$(HOST_PREFIX)'
2394
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
29 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
30
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
31
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
32 # Test
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
33 '$(MXE_CXX)' \
2394
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
34 -W -Wall -Werror -ansi -pedantic \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
35 '$(2).cpp' -o '$(HOST_BINDIR)/test-hunspell.exe' \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
36 `'$(MXE_PKG_CONFIG)' hunspell --cflags --libs`
2394
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
37 endef