1# This file is part of MXE. See LICENSE.md for licensing information. 2 3PKG := hunspell 4$(PKG)_WEBSITE := http://hunspell.github.io/ 5$(PKG)_DESCR := Hunspell 6$(PKG)_IGNORE := 7$(PKG)_VERSION := 1.7.0 8$(PKG)_CHECKSUM := bb27b86eb910a8285407cf3ca33b62643a02798cf2eef468c0a74f6c3ee6bc8a 9$(PKG)_GH_CONF := hunspell/hunspell/tags, v 10$(PKG)_DEPS := cc gettext libiconv pthreads readline 11 12define $(PKG)_UPDATE 13 $(WGET) -q -O- 'https://github.com/hunspell/hunspell/releases' | \ 14 $(SED) -n 's,.*/archive/v\([0-9][^>]*\)\.tar.*,\1,p' | \ 15 head -1 16endef 17 18define $(PKG)_BUILD 19 # Note: the configure file doesn't pick up pdcurses, so "ui" is disabled 20 cd '$(1)' && autoreconf -vfi && ./configure \ 21 $(MXE_CONFIGURE_OPTS) \ 22 --with-warnings \ 23 --without-ui \ 24 --with-readline 25 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= 26 27 # Test 28 '$(TARGET)-g++' \ 29 -W -Wall -Werror -std=c++0x -pedantic \ 30 '$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-hunspell.exe' \ 31 `'$(TARGET)-pkg-config' hunspell --cflags --libs` 32endef 33