Mercurial > mxe-octave
annotate src/hunspell.mk @ 4200:5cee475eceb0
temporary fixes for of-odepkg package
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 31 Aug 2016 15:02:02 -0400 |
parents | 13be64f9f16d |
children | dc3eb553f5e9 |
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 := | |
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 | 7 $(PKG)_CHECKSUM := 902c76d2b55a22610e2227abc4fd26cbe606a51c |
8 $(PKG)_SUBDIR := hunspell-$($(PKG)_VERSION) | |
9 $(PKG)_FILE := hunspell-$($(PKG)_VERSION).tar.gz | |
10 $(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
|
11 $(PKG)_DEPS := libiconv gettext readline pthreads |
2394 | 12 |
13 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2415
diff
changeset
|
14 $(WGET) -q -O- 'http://sourceforge.net/projects/hunspell/files/Hunspell/' | \ |
2394 | 15 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ |
16 head -1 | |
17 endef | |
18 | |
19 define $(PKG)_BUILD | |
20 # Note: the configure file doesn't pick up pdcurses, so "ui" is disabled | |
21 cd '$(1)' && ./configure \ | |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
22 $(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
|
23 $(ENABLE_SHARED_OR_STATIC) \ |
2394 | 24 --with-warnings \ |
25 --without-ui \ | |
26 --with-readline \ | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
27 --prefix='$(HOST_PREFIX)' |
2394 | 28 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
29 | |
30 | |
31 # Test | |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
32 '$(MXE_CXX)' \ |
2394 | 33 -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
|
34 '$(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
|
35 `'$(MXE_PKG_CONFIG)' hunspell --cflags --libs` |
2394 | 36 endef |