annotate src/hunspell.mk @ 2855:47558e958113

Allow static/shared libraries to be configured in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Thu, 15 Nov 2012 16:11:45 -0500
parents 4d0f3a9da57e
children 100e618349f7
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 :=
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
6 $(PKG)_CHECKSUM := 902c76d2b55a22610e2227abc4fd26cbe606a51c
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := hunspell-$($(PKG)_VERSION)
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
8 $(PKG)_FILE := hunspell-$($(PKG)_VERSION).tar.gz
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/hunspell/Hunspell/$($(PKG)_VERSION)/$($(PKG)_FILE)
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
10 $(PKG)_DEPS := gcc libiconv gettext readline pthreads
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
11
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2415
diff changeset
13 $(WGET) -q -O- 'http://sourceforge.net/projects/hunspell/files/Hunspell/' | \
2394
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
14 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
15 head -1
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
16 endef
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
17
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
18 define $(PKG)_BUILD
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
19 # 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
20 cd '$(1)' && ./configure \
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
21 --host='$(TARGET)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
22 $(ENABLE_SHARED_OR_STATIC) \
2394
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
23 --with-warnings \
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
24 --without-ui \
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
25 --with-readline \
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
26 --prefix='$(PREFIX)/$(TARGET)'
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
27 $(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
28
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
29
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
30 # Test
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
31 '$(TARGET)-g++' \
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
32 -W -Wall -Werror -ansi -pedantic \
2415
d84bf9fcb368 Fix name of a test program (using a consistent suffix for C++ programs)
Volker Grabsch <vog@notjusthosting.com>
parents: 2404
diff changeset
33 '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-hunspell.exe' \
2394
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
34 `'$(TARGET)-pkg-config' hunspell --cflags --libs`
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
35 endef