2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2012-04-14 13:13:59 +01:00
|
|
|
|
|
|
|
PKG := hunspell
|
2017-05-02 06:05:45 +01:00
|
|
|
$(PKG)_WEBSITE := https://hunspell.github.io/
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_DESCR := Hunspell
|
2012-04-14 13:13:59 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2019-03-03 08:00:48 +00:00
|
|
|
$(PKG)_VERSION := 1.7.0
|
|
|
|
$(PKG)_CHECKSUM := bb27b86eb910a8285407cf3ca33b62643a02798cf2eef468c0a74f6c3ee6bc8a
|
2017-11-09 06:13:49 +00:00
|
|
|
$(PKG)_GH_CONF := hunspell/hunspell/tags, v
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc gettext libiconv pthreads readline
|
2012-04-14 13:13:59 +01:00
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
|
|
|
# Note: the configure file doesn't pick up pdcurses, so "ui" is disabled
|
2017-05-01 11:18:06 +01:00
|
|
|
cd '$(SOURCE_DIR)' && autoreconf -fi
|
|
|
|
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
2014-08-17 21:06:36 +01:00
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
2012-04-14 13:13:59 +01:00
|
|
|
--with-warnings \
|
|
|
|
--without-ui \
|
2014-08-17 21:06:36 +01:00
|
|
|
--with-readline
|
2017-05-19 00:32:46 +01:00
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(MXE_DISABLE_CRUFT)
|
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j 1 install $(MXE_DISABLE_CRUFT)
|
2012-04-14 13:13:59 +01:00
|
|
|
|
|
|
|
# Test
|
|
|
|
'$(TARGET)-g++' \
|
2013-05-23 15:38:06 +01:00
|
|
|
-W -Wall -Werror -std=c++0x -pedantic \
|
2019-03-03 08:00:48 +00:00
|
|
|
$(if $(BUILD_STATIC), -DHUNSPELL_STATIC) \
|
2016-07-30 20:14:38 +01:00
|
|
|
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-hunspell.exe' \
|
2012-04-14 13:13:59 +01:00
|
|
|
`'$(TARGET)-pkg-config' hunspell --cflags --libs`
|
|
|
|
endef
|