Mercurial > mxe-octave
annotate src/glib.mk @ 1200:d516fda09eef
use the more recent gcc42 on OSX
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Mon, 27 Sep 2010 01:12:56 +1000 |
parents | 40fff8072354 |
children | fca60b5b5afb |
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 | 4 # GLib |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
5 PKG := glib |
997
4e37546b3877
ignore version 2.25.6 of package glib
Volker Grabsch <vog@notjusthosting.com>
parents:
987
diff
changeset
|
6 $(PKG)_IGNORE := 2.25.6 |
1190
821fabe85a36
upgrade packages: glib gtk. new package: gdk-pixbuf
Mark Brand <mabrand@mabrand.nl>
parents:
1045
diff
changeset
|
7 $(PKG)_VERSION := 2.25.17 |
821fabe85a36
upgrade packages: glib gtk. new package: gdk-pixbuf
Mark Brand <mabrand@mabrand.nl>
parents:
1045
diff
changeset
|
8 $(PKG)_CHECKSUM := b800d4138145b6081c4191d808559409eff72b26 |
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 | 14 |
15 define $(PKG)_UPDATE | |
891
0ed1ba56ce8e
improved version recognition of packages atk, glib, gtk, libxml2, libxslt and pango
Volker Grabsch <vog@notjusthosting.com>
parents:
883
diff
changeset
|
16 wget -q -O- 'http://git.gnome.org/browse/glib/refs/tags' | \ |
1191
1acdcff4d88a
packages glib gdk-pixbuf: fix update macros
Mark Brand <mabrand@mabrand.nl>
parents:
1190
diff
changeset
|
17 grep '<a href=./browse/glib/tag/[?]id=[0-9.]\+' | \ |
1acdcff4d88a
packages glib gdk-pixbuf: fix update macros
Mark Brand <mabrand@mabrand.nl>
parents:
1190
diff
changeset
|
18 $(SED) 's,^.*a href=./browse/glib/tag/[?]id=\([0-9.]\+\).*,\1,' | \ |
1acdcff4d88a
packages glib gdk-pixbuf: fix update macros
Mark Brand <mabrand@mabrand.nl>
parents:
1190
diff
changeset
|
19 grep "^2\.25\.1[0-9]" | \ |
1acdcff4d88a
packages glib gdk-pixbuf: fix update macros
Mark Brand <mabrand@mabrand.nl>
parents:
1190
diff
changeset
|
20 sort -r | \ |
249 | 21 head -1 |
22 endef | |
23 | |
24 define $(PKG)_BUILD | |
806
64db10989f7d
update version of package glib
Volker Grabsch <vog@notjusthosting.com>
parents:
759
diff
changeset
|
25 cd '$(1)' && aclocal |
64db10989f7d
update version of package glib
Volker Grabsch <vog@notjusthosting.com>
parents:
759
diff
changeset
|
26 cd '$(1)' && $(LIBTOOLIZE) --force |
64db10989f7d
update version of package glib
Volker Grabsch <vog@notjusthosting.com>
parents:
759
diff
changeset
|
27 cd '$(1)' && autoconf |
64db10989f7d
update version of package glib
Volker Grabsch <vog@notjusthosting.com>
parents:
759
diff
changeset
|
28 cp -Rp '$(1)' '$(1).native' |
722
dc0a01dbbcd6
ensure that the native glib-genmarshal build with libiconv always succeeds
Volker Grabsch <vog@notjusthosting.com>
parents:
720
diff
changeset
|
29 |
dc0a01dbbcd6
ensure that the native glib-genmarshal build with libiconv always succeeds
Volker Grabsch <vog@notjusthosting.com>
parents:
720
diff
changeset
|
30 # native build of libiconv (used by glib-genmarshal) |
dc0a01dbbcd6
ensure that the native glib-genmarshal build with libiconv always succeeds
Volker Grabsch <vog@notjusthosting.com>
parents:
720
diff
changeset
|
31 cd '$(1).native' && $(call UNPACK_PKG_ARCHIVE,libiconv) |
dc0a01dbbcd6
ensure that the native glib-genmarshal build with libiconv always succeeds
Volker Grabsch <vog@notjusthosting.com>
parents:
720
diff
changeset
|
32 cd '$(1).native/$(libiconv_SUBDIR)' && ./configure \ |
dc0a01dbbcd6
ensure that the native glib-genmarshal build with libiconv always succeeds
Volker Grabsch <vog@notjusthosting.com>
parents:
720
diff
changeset
|
33 --disable-shared \ |
1200
d516fda09eef
use the more recent gcc42 on OSX
Tony Theodore <tonyt@logyst.com>
parents:
1195
diff
changeset
|
34 --disable-nls \ |
d516fda09eef
use the more recent gcc42 on OSX
Tony Theodore <tonyt@logyst.com>
parents:
1195
diff
changeset
|
35 $(OSX_CC_ENV) |
722
dc0a01dbbcd6
ensure that the native glib-genmarshal build with libiconv always succeeds
Volker Grabsch <vog@notjusthosting.com>
parents:
720
diff
changeset
|
36 $(MAKE) -C '$(1).native/$(libiconv_SUBDIR)' -j '$(JOBS)' |
dc0a01dbbcd6
ensure that the native glib-genmarshal build with libiconv always succeeds
Volker Grabsch <vog@notjusthosting.com>
parents:
720
diff
changeset
|
37 |
dc0a01dbbcd6
ensure that the native glib-genmarshal build with libiconv always succeeds
Volker Grabsch <vog@notjusthosting.com>
parents:
720
diff
changeset
|
38 # native build for glib-genmarshal, without pkg-config, gettext and zlib |
712
38a787e5a126
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
711
diff
changeset
|
39 cd '$(1).native' && ./configure \ |
249 | 40 --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
|
41 --prefix='$(PREFIX)/$(TARGET)' \ |
250
a216acad3492
bugfix in package glib: install all glib tools
Volker Grabsch <vog@notjusthosting.com>
parents:
249
diff
changeset
|
42 --enable-regex \ |
909
fbb1667f8e3a
revert upgrade of package glib
Volker Grabsch <vog@notjusthosting.com>
parents:
906
diff
changeset
|
43 --disable-threads \ |
249 | 44 --disable-selinux \ |
45 --disable-fam \ | |
722
dc0a01dbbcd6
ensure that the native glib-genmarshal build with libiconv always succeeds
Volker Grabsch <vog@notjusthosting.com>
parents:
720
diff
changeset
|
46 --disable-xattr \ |
1195
40fff8072354
package glib: disable dtrace for native build
Tony Theodore <tonyt@logyst.com>
parents:
1191
diff
changeset
|
47 --disable-dtrace \ |
722
dc0a01dbbcd6
ensure that the native glib-genmarshal build with libiconv always succeeds
Volker Grabsch <vog@notjusthosting.com>
parents:
720
diff
changeset
|
48 --with-libiconv=gnu \ |
976
c9ff59f8ceaf
improved build options for native build of package glib
Volker Grabsch <vog@notjusthosting.com>
parents:
960
diff
changeset
|
49 --with-pcre=internal \ |
722
dc0a01dbbcd6
ensure that the native glib-genmarshal build with libiconv always succeeds
Volker Grabsch <vog@notjusthosting.com>
parents:
720
diff
changeset
|
50 CPPFLAGS='-I$(1).native/$(libiconv_SUBDIR)/include' \ |
1200
d516fda09eef
use the more recent gcc42 on OSX
Tony Theodore <tonyt@logyst.com>
parents:
1195
diff
changeset
|
51 LDFLAGS='-L$(1).native/$(libiconv_SUBDIR)/lib/.libs' \ |
d516fda09eef
use the more recent gcc42 on OSX
Tony Theodore <tonyt@logyst.com>
parents:
1195
diff
changeset
|
52 $(OSX_CC_ENV) |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
53 $(SED) -i 's,#define G_ATOMIC.*,,' '$(1).native/config.h' |
909
fbb1667f8e3a
revert upgrade of package glib
Volker Grabsch <vog@notjusthosting.com>
parents:
906
diff
changeset
|
54 $(MAKE) -C '$(1).native/glib' -j '$(JOBS)' |
fbb1667f8e3a
revert upgrade of package glib
Volker Grabsch <vog@notjusthosting.com>
parents:
906
diff
changeset
|
55 $(MAKE) -C '$(1).native/gthread' -j '$(JOBS)' |
fbb1667f8e3a
revert upgrade of package glib
Volker Grabsch <vog@notjusthosting.com>
parents:
906
diff
changeset
|
56 $(MAKE) -C '$(1).native/gobject' -j '$(JOBS)' lib_LTLIBRARIES= install-exec |
914 | 57 $(MAKE) -C '$(1).native/gio' -j '$(JOBS)' glib-compile-schemas |
1190
821fabe85a36
upgrade packages: glib gtk. new package: gdk-pixbuf
Mark Brand <mabrand@mabrand.nl>
parents:
1045
diff
changeset
|
58 # configure will expect to find this in PATH |
821fabe85a36
upgrade packages: glib gtk. new package: gdk-pixbuf
Mark Brand <mabrand@mabrand.nl>
parents:
1045
diff
changeset
|
59 $(INSTALL) -m755 '$(1).native/gio/glib-compile-schemas' '$(PREFIX)/bin/glib-compile-schemas' |
271
2801bf7db05e
switch glib to win32 threading
Volker Grabsch <vog@notjusthosting.com>
parents:
269
diff
changeset
|
60 |
249 | 61 # cross build |
336
95a831e1dd54
fix for systems where wine confuses the cross-compiling detection of ./configure
Volker Grabsch <vog@notjusthosting.com>
parents:
306
diff
changeset
|
62 # wine confuses the cross-compiling detection, so set it explicitly |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
63 $(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure' |
249 | 64 cd '$(1)' && ./configure \ |
65 --host='$(TARGET)' \ | |
66 --disable-shared \ | |
67 --prefix='$(PREFIX)/$(TARGET)' \ | |
271
2801bf7db05e
switch glib to win32 threading
Volker Grabsch <vog@notjusthosting.com>
parents:
269
diff
changeset
|
68 --with-threads=win32 \ |
249 | 69 --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
|
70 --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
|
71 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
|
72 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
|
73 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
|
74 $(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
|
75 $(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
|
76 $(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
|
77 $(MAKE) -C '$(1)/gobject' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
919
d9ecc9999601
fix build issues of package glib
Volker Grabsch <vog@notjusthosting.com>
parents:
914
diff
changeset
|
78 $(MAKE) -C '$(1)/gio' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= MISC_STUFF= |
1190
821fabe85a36
upgrade packages: glib gtk. new package: gdk-pixbuf
Mark Brand <mabrand@mabrand.nl>
parents:
1045
diff
changeset
|
79 $(MAKE) -C '$(1)' -j '$(JOBS)' install-pkgconfigDATA |
249 | 80 endef |