Mercurial > mxe-octave
annotate src/hunspell.mk @ 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
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 16:59:24 -0400 |
parents | bcc26ffe9a0f |
children | 951da75fd09c |
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 \ | |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
21 $(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
|
22 $(ENABLE_SHARED_OR_STATIC) \ |
2394 | 23 --with-warnings \ |
24 --without-ui \ | |
25 --with-readline \ | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
26 --prefix='$(HOST_PREFIX)' |
2394 | 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 \ | |
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
|
33 '$(2).cpp' -o '$(HOST_BINDIR)/test-hunspell.exe' \ |
2394 | 34 `'$(TARGET)-pkg-config' hunspell --cflags --libs` |
35 endef |