Mercurial > mxe-octave
annotate src/glib.mk @ 409:35d26f6b0855
update version of packages fontconfig, glib, gtk, libevent, libiconv, libpng, libusb, ogg, pixman, sqlite and vorbis
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Mon, 10 Aug 2009 13:33:49 +0200 |
parents | 61e5dba7175b |
children | d2a6561bcb6d |
rev | line source |
---|---|
249 | 1 # GLib |
2 | |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
3 PKG := glib |
409
35d26f6b0855
update version of packages fontconfig, glib, gtk, libevent, libiconv, libpng, libusb, ogg, pixman, sqlite and vorbis
Volker Grabsch <vog@notjusthosting.com>
parents:
377
diff
changeset
|
4 $(PKG)_VERSION := 2.20.4 |
35d26f6b0855
update version of packages fontconfig, glib, gtk, libevent, libiconv, libpng, libusb, ogg, pixman, sqlite and vorbis
Volker Grabsch <vog@notjusthosting.com>
parents:
377
diff
changeset
|
5 $(PKG)_CHECKSUM := a0cee2b75bb485de926fa43b33887adc8f9c19bb |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
6 $(PKG)_SUBDIR := glib-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
7 $(PKG)_FILE := glib-$($(PKG)_VERSION).tar.bz2 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
8 $(PKG)_WEBSITE := http://www.gtk.org/ |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
9 $(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
|
10 $(PKG)_DEPS := gcc gettext pcre libiconv |
249 | 11 |
12 define $(PKG)_UPDATE | |
13 wget -q -O- 'http://www.gtk.org/download-windows.html' | \ | |
14 grep 'glib-' | \ | |
266
b94424e6c37f
improved the regexes for package version recognition
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
15 $(SED) -n 's,.*glib-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
249 | 16 head -1 |
17 endef | |
18 | |
19 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
|
20 # 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
|
21 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
|
22 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
|
23 --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
|
24 --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
|
25 --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
|
26 $(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
|
27 |
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
|
28 # native build for glib-genmarshal, without pkg-config and gettext |
249 | 29 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
|
30 $(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
|
31 $(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
|
32 $(SED) '/You must.*have gettext/,/exit 1;/ s,.*exit 1;.*,},' -i '$(1)/$(glib_SUBDIR)/configure' |
249 | 33 cd '$(1)/$(glib_SUBDIR)' && ./configure \ |
34 --disable-shared \ | |
35 --prefix='$(PREFIX)' \ | |
250
a216acad3492
bugfix in package glib: install all glib tools
Volker Grabsch <vog@notjusthosting.com>
parents:
249
diff
changeset
|
36 --enable-regex \ |
249 | 37 --without-threads \ |
38 --disable-selinux \ | |
39 --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
|
40 --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
|
41 --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
|
42 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
|
43 LDFLAGS='-L$(1)/libiconv/lib' |
249 | 44 $(SED) 's,#define G_ATOMIC.*,,' -i '$(1)/$(glib_SUBDIR)/config.h' |
45 $(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
|
46 $(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
|
47 |
249 | 48 # cross build |
269
16a7b5bac4b5
bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
49 $(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
|
50 # 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
|
51 $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure' |
249 | 52 cd '$(1)' && ./configure \ |
53 --host='$(TARGET)' \ | |
54 --disable-shared \ | |
55 --prefix='$(PREFIX)/$(TARGET)' \ | |
271
2801bf7db05e
switch glib to win32 threading
Volker Grabsch <vog@notjusthosting.com>
parents:
269
diff
changeset
|
56 --with-threads=win32 \ |
249 | 57 --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
|
58 --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
|
59 CXX='$(TARGET)-c++' \ |
271
2801bf7db05e
switch glib to win32 threading
Volker Grabsch <vog@notjusthosting.com>
parents:
269
diff
changeset
|
60 PKG_CONFIG='$(PREFIX)/bin/$(TARGET)-pkg-config' |
249 | 61 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
62 endef |