annotate src/hunspell.mk @ 3256:7fb479d0241c

Update build tools for native mingw * src/build-m4.mk: do nothing for native mingw build * Makefile.in: - add bison, m4 as natve mingw, and python as jit build requirements. - remove build-bison as a mingw build dependancy * index.html: Add msys-bison to mingw required packages and mention ghostscript and python.
author John Donoghue <john.donoghue@ieee.org>
date Thu, 26 Sep 2013 21:18:39 -0400
parents 5ef49fb3299d
children 13be64f9f16d
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)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
10 $(PKG)_DEPS := libiconv gettext readline pthreads
2394
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 \
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
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 \
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
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
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
31 '$(MXE_CXX)' \
2394
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
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' \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
34 `'$(MXE_PKG_CONFIG)' hunspell --cflags --libs`
2394
013541fc1bdd New package: hunspell
Stefan Löffler <st.loeffler@gmail.com>
parents:
diff changeset
35 endef