annotate src/gettext.mk @ 306:85ffa9259036

validate downloads using SHA-1 checksums
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 05 Apr 2009 14:00:17 +0200
parents 998fcdb80a11
children 753ba8661dd3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
129
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # gettext
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 304
diff changeset
3 PKG := gettext
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 304
diff changeset
4 $(PKG)_VERSION := 0.17
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 304
diff changeset
5 $(PKG)_CHECKSUM := c51803d9f745f6ace36bd09c0486d5735ce399cf
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 304
diff changeset
6 $(PKG)_SUBDIR := gettext-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 304
diff changeset
7 $(PKG)_FILE := gettext-$($(PKG)_VERSION).tar.gz
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 304
diff changeset
8 $(PKG)_WEBSITE := http://www.gnu.org/software/gettext/
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 304
diff changeset
9 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/gettext/$($(PKG)_FILE)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 304
diff changeset
10 $(PKG)_DEPS := gcc libiconv
129
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
231
fce7481d2b13 improved version update mechanism (make update) of package gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 188
diff changeset
13 wget -q -O- 'http://www.gnu.org/software/gettext/' | \
fce7481d2b13 improved version update mechanism (make update) of package gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 188
diff changeset
14 grep 'gettext-' | \
129
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 $(SED) -n 's,.*gettext-\([0-9][^>]*\)\.tar.*,\1,p' | \
231
fce7481d2b13 improved version update mechanism (make update) of package gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 188
diff changeset
16 head -1
129
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
280
031e0fb7cd7f portability fix for FreeBSD: don't expect the build system to have iconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 279
diff changeset
20 # native build of libiconv (used by gettext-tools)
031e0fb7cd7f portability fix for FreeBSD: don't expect the build system to have iconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 279
diff changeset
21 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,libiconv)
031e0fb7cd7f portability fix for FreeBSD: don't expect the build system to have iconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 279
diff changeset
22 cd '$(1)/$(libiconv_SUBDIR)' && ./configure \
031e0fb7cd7f portability fix for FreeBSD: don't expect the build system to have iconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 279
diff changeset
23 --prefix='$(1)/libiconv' \
031e0fb7cd7f portability fix for FreeBSD: don't expect the build system to have iconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 279
diff changeset
24 --disable-shared \
031e0fb7cd7f portability fix for FreeBSD: don't expect the build system to have iconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 279
diff changeset
25 --disable-nls
283
065a5b483258 bugfix to avoid crashing parallel builds in package gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 280
diff changeset
26 $(MAKE) -C '$(1)/$(libiconv_SUBDIR)' -j 1 install
280
031e0fb7cd7f portability fix for FreeBSD: don't expect the build system to have iconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 279
diff changeset
27
304
998fcdb80a11 include an important bugfix for package gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 283
diff changeset
28 # bugfix for gettext
998fcdb80a11 include an important bugfix for package gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 283
diff changeset
29 # This problem will be solved in gettext >= 1.8. See:
998fcdb80a11 include an important bugfix for package gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 283
diff changeset
30 # http://git.savannah.gnu.org/cgit/gettext.git/commit/?id=ecad95f51a11409cc0d30b22913a8ba77d3edf1d
998fcdb80a11 include an important bugfix for package gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 283
diff changeset
31 sed 's/O_CREAT);/O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);/' \
998fcdb80a11 include an important bugfix for package gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 283
diff changeset
32 -i '$(1)/gettext-tools/src/write-catalog.c'
998fcdb80a11 include an important bugfix for package gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 283
diff changeset
33
247
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
34 # native build for gettext-tools
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
35 cd '$(1)/gettext-tools' && ./configure \
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
36 --disable-shared \
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
37 --prefix='$(PREFIX)' \
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
38 --disable-threads \
280
031e0fb7cd7f portability fix for FreeBSD: don't expect the build system to have iconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 279
diff changeset
39 --with-libiconv-prefix='$(1)/libiconv' \
279
25d36cc629f6 portability fix for BSD and OSX
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
40 --with-included-gettext \
25d36cc629f6 portability fix for BSD and OSX
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
41 --with-included-glib \
25d36cc629f6 portability fix for BSD and OSX
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
42 --with-included-libcroco \
25d36cc629f6 portability fix for BSD and OSX
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
43 --with-included-libxml \
25d36cc629f6 portability fix for BSD and OSX
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
44 --with-included-regex \
247
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
45 --without-libpth-prefix \
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
46 --without-libncurses-prefix \
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
47 --without-libtermcap-prefix \
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
48 --without-libxcurses-prefix \
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
49 --without-libcurses-prefix \
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
50 --without-libexpat-prefix \
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
51 --without-emacs
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
52 $(MAKE) -C '$(1)/gettext-tools' -j '$(JOBS)' SHELL=bash
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
53 $(MAKE) -C '$(1)/gettext-tools/src' -j 1 SHELL=bash lib_LTLIBRARIES= install-binPROGRAMS
280
031e0fb7cd7f portability fix for FreeBSD: don't expect the build system to have iconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 279
diff changeset
54
247
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
55 # cross build for gettext-runtime
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
56 cd '$(1)/gettext-runtime' && ./configure \
129
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
57 --host='$(TARGET)' \
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
58 --disable-shared \
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
59 --prefix='$(PREFIX)/$(TARGET)' \
247
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
60 --enable-threads=win32 \
248
14320123cf11 fixed dependecies of gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 247
diff changeset
61 --without-libexpat-prefix \
14320123cf11 fixed dependecies of gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 247
diff changeset
62 --without-libxml2-prefix
247
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
63 $(MAKE) -C '$(1)/gettext-runtime/intl' -j '$(JOBS)' SHELL=bash install
129
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
64 endef