annotate src/gettext.mk @ 417:c82e9294b774

replace the contact email address with hints to the project mailing list
author Volker Grabsch <vog@notjusthosting.com>
date Tue, 01 Sep 2009 16:35:59 +0200
parents d2a6561bcb6d
children e9afec55fd6b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
417
c82e9294b774 replace the contact email address with hints to the project mailing list
Volker Grabsch <vog@notjusthosting.com>
parents: 414
diff changeset
1 # Copyright (C) 2009 Volker Grabsch
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
2 #
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
3 # Permission is hereby granted, free of charge, to any person obtaining
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
4 # a copy of this software and associated documentation files (the
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
5 # "Software"), to deal in the Software without restriction, including
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
6 # without limitation the rights to use, copy, modify, merge, publish,
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
7 # distribute, sublicense, and/or sell copies of the Software, and to
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
8 # permit persons to whom the Software is furnished to do so, subject
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
9 # to the following conditions:
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
10 #
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
11 # The above copyright notice and this permission notice shall be
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
12 # included in all copies or substantial portions of the Software.
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
13 #
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
15 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
16 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
17 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
18 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
19 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
20 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 323
diff changeset
21
129
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 # gettext
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 304
diff changeset
23 PKG := gettext
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 304
diff changeset
24 $(PKG)_VERSION := 0.17
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 304
diff changeset
25 $(PKG)_CHECKSUM := c51803d9f745f6ace36bd09c0486d5735ce399cf
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 304
diff changeset
26 $(PKG)_SUBDIR := gettext-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 304
diff changeset
27 $(PKG)_FILE := gettext-$($(PKG)_VERSION).tar.gz
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 304
diff changeset
28 $(PKG)_WEBSITE := http://www.gnu.org/software/gettext/
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 304
diff changeset
29 $(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
30 $(PKG)_DEPS := gcc libiconv
129
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 define $(PKG)_UPDATE
231
fce7481d2b13 improved version update mechanism (make update) of package gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 188
diff changeset
33 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
34 grep 'gettext-' | \
129
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 $(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
36 head -1
129
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 endef
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 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
40 # 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
41 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
42 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
43 --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
44 --disable-shared \
323
5dde467a5517 bugfix: Disallow package gettext to try to build its Java and C# variants
Volker Grabsch <vog@notjusthosting.com>
parents: 312
diff changeset
45 --disable-java \
5dde467a5517 bugfix: Disallow package gettext to try to build its Java and C# variants
Volker Grabsch <vog@notjusthosting.com>
parents: 312
diff changeset
46 --disable-csharp \
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
47 --disable-nls
283
065a5b483258 bugfix to avoid crashing parallel builds in package gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 280
diff changeset
48 $(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
49
304
998fcdb80a11 include an important bugfix for package gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 283
diff changeset
50 # bugfix for gettext
998fcdb80a11 include an important bugfix for package gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 283
diff changeset
51 # 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
52 # http://git.savannah.gnu.org/cgit/gettext.git/commit/?id=ecad95f51a11409cc0d30b22913a8ba77d3edf1d
312
753ba8661dd3 bugfix: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents: 306
diff changeset
53 $(SED) 's/O_CREAT);/O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);/' \
323
5dde467a5517 bugfix: Disallow package gettext to try to build its Java and C# variants
Volker Grabsch <vog@notjusthosting.com>
parents: 312
diff changeset
54 -i '$(1)/gettext-tools/src/write-catalog.c'
304
998fcdb80a11 include an important bugfix for package gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 283
diff changeset
55
247
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
56 # 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
57 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
58 --disable-shared \
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
59 --prefix='$(PREFIX)' \
323
5dde467a5517 bugfix: Disallow package gettext to try to build its Java and C# variants
Volker Grabsch <vog@notjusthosting.com>
parents: 312
diff changeset
60 --disable-java \
5dde467a5517 bugfix: Disallow package gettext to try to build its Java and C# variants
Volker Grabsch <vog@notjusthosting.com>
parents: 312
diff changeset
61 --disable-csharp \
247
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
62 --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
63 --with-libiconv-prefix='$(1)/libiconv' \
279
25d36cc629f6 portability fix for BSD and OSX
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
64 --with-included-gettext \
25d36cc629f6 portability fix for BSD and OSX
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
65 --with-included-glib \
25d36cc629f6 portability fix for BSD and OSX
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
66 --with-included-libcroco \
25d36cc629f6 portability fix for BSD and OSX
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
67 --with-included-libxml \
25d36cc629f6 portability fix for BSD and OSX
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
68 --with-included-regex \
247
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
69 --without-libpth-prefix \
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
70 --without-libncurses-prefix \
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
71 --without-libtermcap-prefix \
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
72 --without-libxcurses-prefix \
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
73 --without-libcurses-prefix \
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
74 --without-libexpat-prefix \
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
75 --without-emacs
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
76 $(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
77 $(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
78
247
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
79 # 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
80 cd '$(1)/gettext-runtime' && ./configure \
129
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
81 --host='$(TARGET)' \
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
82 --disable-shared \
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
83 --prefix='$(PREFIX)/$(TARGET)' \
247
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
84 --enable-threads=win32 \
248
14320123cf11 fixed dependecies of gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 247
diff changeset
85 --without-libexpat-prefix \
14320123cf11 fixed dependecies of gettext
Volker Grabsch <vog@notjusthosting.com>
parents: 247
diff changeset
86 --without-libxml2-prefix
247
891180a1d143 build the gettext-tools in addition to the gettext-runtime
Volker Grabsch <vog@notjusthosting.com>
parents: 231
diff changeset
87 $(MAKE) -C '$(1)/gettext-runtime/intl' -j '$(JOBS)' SHELL=bash install
129
9fb896207491 translated package: gettext
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
88 endef