mxe/src/gettext.mk

48 lines
1.6 KiB
Makefile
Raw Normal View History

2008-11-08 17:46:08 +00:00
# gettext
# http://www.gnu.org/software/gettext/
PKG := gettext
$(PKG)_VERSION := 0.17
$(PKG)_SUBDIR := gettext-$($(PKG)_VERSION)
2008-11-08 17:46:08 +00:00
$(PKG)_FILE := gettext-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/gettext/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
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
# native build for gettext-tools
cd '$(1)/gettext-tools' && ./configure \
--disable-shared \
--prefix='$(PREFIX)' \
--disable-threads \
--without-libpth-prefix \
--without-libiconv-prefix \
--without-libintl-prefix \
--without-libglib-2.0-prefix \
--without-libcroco-0.6-prefix \
--without-libxml2-prefix \
--without-libncurses-prefix \
--without-libtermcap-prefix \
--without-libxcurses-prefix \
--without-libcurses-prefix \
--without-included-regex \
--without-libexpat-prefix \
--without-emacs
$(MAKE) -C '$(1)/gettext-tools' -j '$(JOBS)' SHELL=bash
$(MAKE) -C '$(1)/gettext-tools/src' -j 1 SHELL=bash lib_LTLIBRARIES= install-binPROGRAMS
# cross build for gettext-runtime
cd '$(1)/gettext-runtime' && ./configure \
2008-11-08 17:46:08 +00:00
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-threads=win32 \
--without-libexpat-prefix
$(MAKE) -C '$(1)/gettext-runtime/intl' -j '$(JOBS)' SHELL=bash install
2008-11-08 17:46:08 +00:00
endef