mxe/src/gettext.mk

31 lines
956 B
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2008-11-08 17:46:08 +00:00
PKG := gettext
$(PKG)_IGNORE :=
2013-09-07 14:18:38 +01:00
$(PKG)_VERSION := 0.18.3.1
$(PKG)_CHECKSUM := a32c19a6e39450748f6e56d2ac6b8b0966a5ab05
$(PKG)_SUBDIR := gettext-$($(PKG)_VERSION)
$(PKG)_FILE := gettext-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/gettext/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libiconv
2008-11-08 17:46:08 +00:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.gnu.org/software/gettext/' | \
grep 'gettext-' | \
2008-11-08 17:46:08 +00:00
$(SED) -n 's,.*gettext-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
2008-11-08 17:46:08 +00:00
endef
define $(PKG)_BUILD
cd '$(1)/gettext-runtime' && ./configure \
2008-11-08 17:46:08 +00:00
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-threads=win32 \
2009-02-28 02:37:50 +00:00
--without-libexpat-prefix \
--without-libxml2-prefix \
CONFIG_SHELL=$(SHELL)
$(MAKE) -C '$(1)/gettext-runtime/intl' -j '$(JOBS)' install
2008-11-08 17:46:08 +00:00
endef