blob: 9ceef7fd8b7f9633ba4ce2041c2ec09d88142921 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# gettext
PKG := gettext
$(PKG)_VERSION := 0.17
$(PKG)_SUBDIR := gettext-$($(PKG)_VERSION)
$(PKG)_FILE := gettext-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.gnu.org/software/gettext/
$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/gettext/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libiconv
define $(PKG)_UPDATE
wget -q -O- 'http://www.gnu.org/software/gettext/' | \
grep 'gettext-' | \
$(SED) -n 's,.*gettext-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
# native build of libiconv (used by gettext-tools)
cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,libiconv)
cd '$(1)/$(libiconv_SUBDIR)' && ./configure \
--prefix='$(1)/libiconv' \
--disable-shared \
--disable-nls
$(MAKE) -C '$(1)/$(libiconv_SUBDIR)' -j '$(JOBS)' install
# native build for gettext-tools
cd '$(1)/gettext-tools' && ./configure \
--disable-shared \
--prefix='$(PREFIX)' \
--disable-threads \
--with-libiconv-prefix='$(1)/libiconv' \
--with-included-gettext \
--with-included-glib \
--with-included-libcroco \
--with-included-libxml \
--with-included-regex \
--without-libpth-prefix \
--without-libncurses-prefix \
--without-libtermcap-prefix \
--without-libxcurses-prefix \
--without-libcurses-prefix \
--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 \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-threads=win32 \
--without-libexpat-prefix \
--without-libxml2-prefix
$(MAKE) -C '$(1)/gettext-runtime/intl' -j '$(JOBS)' SHELL=bash install
endef
|