mxe/src/hunspell.mk

29 lines
1.0 KiB
Makefile
Raw Normal View History

# 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/
$(PKG)_DESCR := Hunspell
2012-04-14 13:13:59 +01:00
$(PKG)_IGNORE :=
2017-04-30 21:01:09 +01:00
$(PKG)_VERSION := 1.6.1
$(PKG)_CHECKSUM := 30f593733c50b794016bb03d31fd2a2071e4610c6fa4708e33edad2335102c49
$(PKG)_GH_CONF := hunspell/hunspell, v
2015-09-23 08:41:16 +01:00
$(PKG)_DEPS := gcc 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
cd '$(SOURCE_DIR)' && autoreconf -fi
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
$(MXE_CONFIGURE_OPTS) \
2012-04-14 13:13:59 +01:00
--with-warnings \
--without-ui \
--with-readline
$(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++' \
-W -Wall -Werror -std=c++0x -pedantic \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-hunspell.exe' \
2012-04-14 13:13:59 +01:00
`'$(TARGET)-pkg-config' hunspell --cflags --libs`
endef