annotate src/glib.mk @ 718:f0c2e7a38bc5

bugfix: don't put constraints on libiconv usage in native builds of package glib
author Volker Grabsch <vog@notjusthosting.com>
date Mon, 08 Feb 2010 18:28:06 +0100
parents 4cda826c2480
children a22a99b45c2e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
641
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 631
diff changeset
1 # This file is part of mingw-cross-env.
714
29f1ba4559ae point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents: 713
diff changeset
2 # See doc/index.html for further information.
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
3
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # GLib
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
5 PKG := glib
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
6 $(PKG)_IGNORE :=
693
f492d8c6182b update version of package glib
Volker Grabsch <vog@notjusthosting.com>
parents: 688
diff changeset
7 $(PKG)_VERSION := 2.23.2
f492d8c6182b update version of package glib
Volker Grabsch <vog@notjusthosting.com>
parents: 688
diff changeset
8 $(PKG)_CHECKSUM := 1d4cd02fe775fec5e1b846b31fa4044362c763b5
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
9 $(PKG)_SUBDIR := glib-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
10 $(PKG)_FILE := glib-$($(PKG)_VERSION).tar.bz2
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
11 $(PKG)_WEBSITE := http://www.gtk.org/
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
12 $(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/glib/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
626
9aae691e9818 add missing dependency on zlib to package glib (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents: 623
diff changeset
13 $(PKG)_DEPS := gcc gettext pcre libiconv zlib
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 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
16 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
17 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
18 $(SED) -n "s,.*<a href='[^']*/tag/?id=\\([0-9][^']*\\)'.*,\\1,p" | \
631
208b993490f5 avoid all old 2.22.x versions of package glib
Volker Grabsch <vog@notjusthosting.com>
parents: 626
diff changeset
19 grep -v '2\.22\.' | \
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 head -1
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 endef
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 define $(PKG)_BUILD
688
ff047093f2a8 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 687
diff changeset
24 # native build for glib-genmarshal, without pkg-config, gettext and zlib
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,glib)
712
38a787e5a126 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 711
diff changeset
26 mv '$(1)/$(glib_SUBDIR)' '$(1).native'
38a787e5a126 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 711
diff changeset
27 $(SED) 's,^PKG_CONFIG=.*,PKG_CONFIG=echo,' -i '$(1).native/configure'
38a787e5a126 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 711
diff changeset
28 $(SED) 's,gt_cv_have_gettext=yes,gt_cv_have_gettext=no,' -i '$(1).native/configure'
38a787e5a126 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 711
diff changeset
29 $(SED) '/You must.*have gettext/,/exit 1;/ s,.*exit 1;.*,},' -i '$(1).native/configure'
38a787e5a126 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 711
diff changeset
30 $(SED) 's,found_zlib=no,found_zlib=yes,' -i '$(1).native/configure'
38a787e5a126 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 711
diff changeset
31 cd '$(1).native' && ./configure \
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --disable-shared \
713
52e8cc2f008f put the tools of package glib into usr/TARGET/bin/ instead of usr/bin/
Volker Grabsch <vog@notjusthosting.com>
parents: 712
diff changeset
33 --prefix='$(PREFIX)/$(TARGET)' \
250
a216acad3492 bugfix in package glib: install all glib tools
Volker Grabsch <vog@notjusthosting.com>
parents: 249
diff changeset
34 --enable-regex \
693
f492d8c6182b update version of package glib
Volker Grabsch <vog@notjusthosting.com>
parents: 688
diff changeset
35 --disable-threads \
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 --disable-selinux \
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 --disable-fam \
718
f0c2e7a38bc5 bugfix: don't put constraints on libiconv usage in native builds of package glib
Volker Grabsch <vog@notjusthosting.com>
parents: 715
diff changeset
38 --disable-xattr
712
38a787e5a126 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 711
diff changeset
39 $(SED) 's,#define G_ATOMIC.*,,' -i '$(1).native/config.h'
38a787e5a126 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 711
diff changeset
40 $(MAKE) -C '$(1).native/glib' -j '$(JOBS)'
38a787e5a126 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 711
diff changeset
41 $(MAKE) -C '$(1).native/gthread' -j '$(JOBS)'
38a787e5a126 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 711
diff changeset
42 $(MAKE) -C '$(1).native/gobject' -j '$(JOBS)' lib_LTLIBRARIES= install-exec
271
2801bf7db05e switch glib to win32 threading
Volker Grabsch <vog@notjusthosting.com>
parents: 269
diff changeset
43
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
44 # cross build
706
0a976e6b82e3 remove other packages' dependencies on the gettext tool
Volker Grabsch <vog@notjusthosting.com>
parents: 693
diff changeset
45 cd '$(1)' && aclocal
0a976e6b82e3 remove other packages' dependencies on the gettext tool
Volker Grabsch <vog@notjusthosting.com>
parents: 693
diff changeset
46 cd '$(1)' && $(LIBTOOLIZE) --force
0a976e6b82e3 remove other packages' dependencies on the gettext tool
Volker Grabsch <vog@notjusthosting.com>
parents: 693
diff changeset
47 cd '$(1)' && autoconf
269
16a7b5bac4b5 bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
48 $(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
49 # 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
50 $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure'
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
51 cd '$(1)' && ./configure \
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 --host='$(TARGET)' \
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
53 --disable-shared \
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
54 --prefix='$(PREFIX)/$(TARGET)' \
271
2801bf7db05e switch glib to win32 threading
Volker Grabsch <vog@notjusthosting.com>
parents: 269
diff changeset
55 --with-threads=win32 \
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
56 --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
57 --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
58 CXX='$(TARGET)-c++' \
713
52e8cc2f008f put the tools of package glib into usr/TARGET/bin/ instead of usr/bin/
Volker Grabsch <vog@notjusthosting.com>
parents: 712
diff changeset
59 PKG_CONFIG='$(PREFIX)/bin/$(TARGET)-pkg-config' \
52e8cc2f008f put the tools of package glib into usr/TARGET/bin/ instead of usr/bin/
Volker Grabsch <vog@notjusthosting.com>
parents: 712
diff changeset
60 GLIB_GENMARSHAL='$(PREFIX)/$(TARGET)/bin/glib-genmarshal'
706
0a976e6b82e3 remove other packages' dependencies on the gettext tool
Volker Grabsch <vog@notjusthosting.com>
parents: 693
diff changeset
61 $(MAKE) -C '$(1)/glib' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
0a976e6b82e3 remove other packages' dependencies on the gettext tool
Volker Grabsch <vog@notjusthosting.com>
parents: 693
diff changeset
62 $(MAKE) -C '$(1)/gmodule' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
0a976e6b82e3 remove other packages' dependencies on the gettext tool
Volker Grabsch <vog@notjusthosting.com>
parents: 693
diff changeset
63 $(MAKE) -C '$(1)/gthread' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
0a976e6b82e3 remove other packages' dependencies on the gettext tool
Volker Grabsch <vog@notjusthosting.com>
parents: 693
diff changeset
64 $(MAKE) -C '$(1)/gobject' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
0a976e6b82e3 remove other packages' dependencies on the gettext tool
Volker Grabsch <vog@notjusthosting.com>
parents: 693
diff changeset
65 $(MAKE) -C '$(1)/gio' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
715
4cda826c2480 bugfix: install config headers of package glib
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
66 $(MAKE) -C '$(1)' -j '$(JOBS)' install-pkgconfigDATA install-configexecincludeDATA
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
67 endef