annotate src/glib.mk @ 569:ea7dc53d5c8b

update version of packages atk, boost, fontconfig, gdal, geos, glib, lcms, libevent, pango, pixman, sdl_image and sdl_mixer
author Volker Grabsch <vog@notjusthosting.com>
date Wed, 02 Dec 2009 16:35:27 +0100
parents abc655cb4694
children 6ef6a1300168
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: 409
diff changeset
2 #
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
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: 409
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: 409
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: 409
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: 409
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: 409
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: 409
diff changeset
9 # to the following conditions:
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
10 #
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
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: 409
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: 409
diff changeset
13 #
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
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: 409
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: 409
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: 409
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: 409
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: 409
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: 409
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: 409
diff changeset
21
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 # GLib
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
23 PKG := glib
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
24 $(PKG)_IGNORE :=
569
ea7dc53d5c8b update version of packages atk, boost, fontconfig, gdal, geos, glib, lcms, libevent, pango, pixman, sdl_image and sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents: 499
diff changeset
25 $(PKG)_VERSION := 2.22.3
ea7dc53d5c8b update version of packages atk, boost, fontconfig, gdal, geos, glib, lcms, libevent, pango, pixman, sdl_image and sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents: 499
diff changeset
26 $(PKG)_CHECKSUM := 185d5b80adef96019daf7402cc6762cc4d37470d
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
27 $(PKG)_SUBDIR := glib-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
28 $(PKG)_FILE := glib-$($(PKG)_VERSION).tar.bz2
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
29 $(PKG)_WEBSITE := http://www.gtk.org/
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
30 $(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/glib/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
31 $(PKG)_DEPS := gcc gettext pcre libiconv
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 define $(PKG)_UPDATE
499
abc655cb4694 improved version recognition of packages atk, glib, gtk, libxml2, libxslt, nsis, pango, sdl, sdl_image, sdl_mixer and sdl_ttf
Volker Grabsch <vog@notjusthosting.com>
parents: 495
diff changeset
34 wget -q -O- 'http://git.gnome.org/cgit/glib/refs/tags' | \
abc655cb4694 improved version recognition of packages atk, glib, gtk, libxml2, libxslt, nsis, pango, sdl, sdl_image, sdl_mixer and sdl_ttf
Volker Grabsch <vog@notjusthosting.com>
parents: 495
diff changeset
35 grep '<a href=' | \
abc655cb4694 improved version recognition of packages atk, glib, gtk, libxml2, libxslt, nsis, pango, sdl, sdl_image, sdl_mixer and sdl_ttf
Volker Grabsch <vog@notjusthosting.com>
parents: 495
diff changeset
36 $(SED) -n "s,.*<a href='[^']*/tag/?id=\\([0-9][^']*\\)'.*,\\1,p" | \
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 head -1
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 endef
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 define $(PKG)_BUILD
288
9d06f168f339 portability fix for FreeBSD in package glib: don't expect the build system to have libiconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 282
diff changeset
41 # native build of libiconv (used by glib-genmarshal)
9d06f168f339 portability fix for FreeBSD in package glib: don't expect the build system to have libiconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 282
diff changeset
42 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,libiconv)
9d06f168f339 portability fix for FreeBSD in package glib: don't expect the build system to have libiconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 282
diff changeset
43 cd '$(1)/$(libiconv_SUBDIR)' && ./configure \
9d06f168f339 portability fix for FreeBSD in package glib: don't expect the build system to have libiconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 282
diff changeset
44 --prefix='$(1)/libiconv' \
9d06f168f339 portability fix for FreeBSD in package glib: don't expect the build system to have libiconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 282
diff changeset
45 --disable-shared \
9d06f168f339 portability fix for FreeBSD in package glib: don't expect the build system to have libiconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 282
diff changeset
46 --disable-nls
9d06f168f339 portability fix for FreeBSD in package glib: don't expect the build system to have libiconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 282
diff changeset
47 $(MAKE) -C '$(1)/$(libiconv_SUBDIR)' -j 1 install
9d06f168f339 portability fix for FreeBSD in package glib: don't expect the build system to have libiconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 282
diff changeset
48
282
44ce30959976 portability fix for Open Solaris: don't expect the build system to have pkg-config
Volker Grabsch <vog@notjusthosting.com>
parents: 281
diff changeset
49 # native build for glib-genmarshal, without pkg-config and gettext
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
50 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,glib)
282
44ce30959976 portability fix for Open Solaris: don't expect the build system to have pkg-config
Volker Grabsch <vog@notjusthosting.com>
parents: 281
diff changeset
51 $(SED) 's,^PKG_CONFIG=.*,PKG_CONFIG=echo,' -i '$(1)/$(glib_SUBDIR)/configure'
281
801ca6a45598 portability fix for MacOS X: don't expect the build system to provide gettext/libintl
Volker Grabsch <vog@notjusthosting.com>
parents: 271
diff changeset
52 $(SED) 's,gt_cv_have_gettext=yes,gt_cv_have_gettext=no,' -i '$(1)/$(glib_SUBDIR)/configure'
801ca6a45598 portability fix for MacOS X: don't expect the build system to provide gettext/libintl
Volker Grabsch <vog@notjusthosting.com>
parents: 271
diff changeset
53 $(SED) '/You must.*have gettext/,/exit 1;/ s,.*exit 1;.*,},' -i '$(1)/$(glib_SUBDIR)/configure'
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
54 cd '$(1)/$(glib_SUBDIR)' && ./configure \
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
55 --disable-shared \
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
56 --prefix='$(PREFIX)' \
250
a216acad3492 bugfix in package glib: install all glib tools
Volker Grabsch <vog@notjusthosting.com>
parents: 249
diff changeset
57 --enable-regex \
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
58 --without-threads \
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
59 --disable-selinux \
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
60 --disable-fam \
288
9d06f168f339 portability fix for FreeBSD in package glib: don't expect the build system to have libiconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 282
diff changeset
61 --disable-xattr \
9d06f168f339 portability fix for FreeBSD in package glib: don't expect the build system to have libiconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 282
diff changeset
62 --with-libiconv=gnu \
9d06f168f339 portability fix for FreeBSD in package glib: don't expect the build system to have libiconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 282
diff changeset
63 CPPFLAGS='-I$(1)/libiconv/include' \
9d06f168f339 portability fix for FreeBSD in package glib: don't expect the build system to have libiconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 282
diff changeset
64 LDFLAGS='-L$(1)/libiconv/lib'
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
65 $(SED) 's,#define G_ATOMIC.*,,' -i '$(1)/$(glib_SUBDIR)/config.h'
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
66 $(MAKE) -C '$(1)/$(glib_SUBDIR)/glib' -j '$(JOBS)'
250
a216acad3492 bugfix in package glib: install all glib tools
Volker Grabsch <vog@notjusthosting.com>
parents: 249
diff changeset
67 $(MAKE) -C '$(1)/$(glib_SUBDIR)/gobject' -j '$(JOBS)' lib_LTLIBRARIES= install-exec
271
2801bf7db05e switch glib to win32 threading
Volker Grabsch <vog@notjusthosting.com>
parents: 269
diff changeset
68
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
69 # cross build
269
16a7b5bac4b5 bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
70 $(SED) 's,^\(Libs:.*\),\1 @PCRE_LIBS@ @G_THREAD_LIBS@ @G_LIBS_EXTRA@ -lshlwapi,' -i '$(1)/glib-2.0.pc.in'
336
95a831e1dd54 fix for systems where wine confuses the cross-compiling detection of ./configure
Volker Grabsch <vog@notjusthosting.com>
parents: 306
diff changeset
71 # wine confuses the cross-compiling detection, so set it explicitly
95a831e1dd54 fix for systems where wine confuses the cross-compiling detection of ./configure
Volker Grabsch <vog@notjusthosting.com>
parents: 306
diff changeset
72 $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure'
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
73 cd '$(1)' && ./configure \
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
74 --host='$(TARGET)' \
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
75 --disable-shared \
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
76 --prefix='$(PREFIX)/$(TARGET)' \
271
2801bf7db05e switch glib to win32 threading
Volker Grabsch <vog@notjusthosting.com>
parents: 269
diff changeset
77 --with-threads=win32 \
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
78 --with-pcre=system \
288
9d06f168f339 portability fix for FreeBSD in package glib: don't expect the build system to have libiconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 282
diff changeset
79 --with-libiconv=gnu \
291
25d9750b7a6a portability fix for MacOS X in package glib: set CXX explicitly
Volker Grabsch <vog@notjusthosting.com>
parents: 288
diff changeset
80 CXX='$(TARGET)-c++' \
271
2801bf7db05e switch glib to win32 threading
Volker Grabsch <vog@notjusthosting.com>
parents: 269
diff changeset
81 PKG_CONFIG='$(PREFIX)/bin/$(TARGET)-pkg-config'
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
82 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
83 endef