Mercurial > mxe-octave
annotate src/hunspell.mk @ 6234:97c5f8da5036 release
* src/librsb.mk: update to 1.2.0.11
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 27 May 2022 12:24:32 +0200 |
parents | de2eedecd6ba |
children |
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 | |
4618
de2eedecd6ba
update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents:
4601
diff
changeset
|
10 $(PKG)_URL := https://github.com/hunspell/hunspell/archive/v$($(PKG)_VERSION).tar.gz |
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 | |
4618
de2eedecd6ba
update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents:
4601
diff
changeset
|
14 $(WGET) -q -O- 'https://github.com/hunspell/hunspell/tags' | \ |
de2eedecd6ba
update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents:
4601
diff
changeset
|
15 $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | \ |
de2eedecd6ba
update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents:
4601
diff
changeset
|
16 $(SORT) -Vr | \ |
2394 | 17 head -1 |
18 endef | |
19 | |
20 define $(PKG)_BUILD | |
21 # Note: the configure file doesn't pick up pdcurses, so "ui" is disabled | |
22 cd '$(1)' && ./configure \ | |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
23 $(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
|
24 $(ENABLE_SHARED_OR_STATIC) \ |
2394 | 25 --with-warnings \ |
26 --without-ui \ | |
27 --with-readline \ | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
28 --prefix='$(HOST_PREFIX)' |
2394 | 29 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
30 | |
31 | |
32 # Test | |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
33 '$(MXE_CXX)' \ |
2394 | 34 -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
|
35 '$(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
|
36 `'$(MXE_PKG_CONFIG)' hunspell --cflags --libs` |
2394 | 37 endef |