mxe/src/aspell.mk

37 lines
1.2 KiB
Makefile
Raw Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2015-07-28 21:55:17 +01:00
PKG := aspell
$(PKG)_WEBSITE := http://aspell.net/
$(PKG)_DESCR := Aspell
2015-07-28 21:55:17 +01:00
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.60.6.1
$(PKG)_CHECKSUM := f52583a83a63633701c5f71db3dc40aab87b7f76b29723aeb27941eff42df6e1
2015-07-28 21:55:17 +01:00
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
2017-03-04 10:33:47 +00:00
$(PKG)_URL := https://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE)
$(PKG)_DEPS := cc gettext
2015-07-28 21:55:17 +01:00
define $(PKG)_UPDATE
2017-03-04 10:33:47 +00:00
$(WGET) -q -O- 'https://ftp.gnu.org/gnu/aspell/' | \
2015-07-28 21:55:17 +01:00
$(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
2016-02-02 05:06:25 +00:00
cd '$(1)' && $(LIBTOOLIZE) && autoreconf -fi
2015-07-28 21:55:17 +01:00
cd '$(1)' && ./configure \
2015-07-29 09:39:45 +01:00
$(MXE_CONFIGURE_OPTS) \
2015-07-28 21:55:17 +01:00
--enable-win32-relocatable \
2015-10-27 01:13:09 +00:00
--disable-curses \
2016-02-02 05:06:25 +00:00
--disable-dlopen \
--disable-pthreads \
CPPFLAGS='-DENABLE_W32_PREFIX=1'
# fix undefined reference to `libintl_dgettext'
# https://github.com/mxe/mxe/pull/1210#issuecomment-178471641
$(if $(BUILD_SHARED),\
$(SED) -i 's#^postdeps="-#postdeps="-lintl -#g' '$(1)/libtool')
2015-07-28 21:55:17 +01:00
$(MAKE) -C '$(1)' -j '$(JOBS)' install
endef