Mercurial > mxe-octave
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 |
rev | line source |
---|---|
2394 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := hunspell | |
5 $(PKG)_IGNORE := | |
6 $(PKG)_CHECKSUM := 902c76d2b55a22610e2227abc4fd26cbe606a51c | |
7 $(PKG)_SUBDIR := hunspell-$($(PKG)_VERSION) | |
8 $(PKG)_FILE := hunspell-$($(PKG)_VERSION).tar.gz | |
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/hunspell/Hunspell/$($(PKG)_VERSION)/$($(PKG)_FILE) | |
10 $(PKG)_DEPS := gcc libiconv gettext readline pthreads | |
11 | |
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 | 14 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ |
15 head -1 | |
16 endef | |
17 | |
18 define $(PKG)_BUILD | |
19 # Note: the configure file doesn't pick up pdcurses, so "ui" is disabled | |
20 cd '$(1)' && ./configure \ | |
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 | 23 --with-warnings \ |
24 --without-ui \ | |
25 --with-readline \ | |
26 --prefix='$(PREFIX)/$(TARGET)' | |
27 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= | |
28 | |
29 | |
30 # Test | |
31 '$(TARGET)-g++' \ | |
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 | 34 `'$(TARGET)-pkg-config' hunspell --cflags --libs` |
35 endef |