Mercurial > mxe-octave
annotate src/gtk.mk @ 691:9274676de8d3
update version of packages boost, gdal, gtk, libpano13 and xerces
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Fri, 05 Feb 2010 16:19:19 +0100 |
parents | dab071eac9c0 |
children | 29f1ba4559ae |
rev | line source |
---|---|
641
dab071eac9c0
simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents:
635
diff
changeset
|
1 # This file is part of mingw-cross-env. |
dab071eac9c0
simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents:
635
diff
changeset
|
2 # See doc/index.html or doc/README 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 |
260
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 # GTK+ |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
5 PKG := gtk |
571
234d017f268c
avoid all old 0.18.x versions of package gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
562
diff
changeset
|
6 $(PKG)_IGNORE := |
691
9274676de8d3
update version of packages boost, gdal, gtk, libpano13 and xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
641
diff
changeset
|
7 $(PKG)_VERSION := 2.19.4 |
9274676de8d3
update version of packages boost, gdal, gtk, libpano13 and xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
641
diff
changeset
|
8 $(PKG)_CHECKSUM := 23992c70cfe2b7a8daab12f077a5aa47d5dc60ff |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
9 $(PKG)_SUBDIR := gtk+-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
10 $(PKG)_FILE := gtk+-$($(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/gtk+/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
13 $(PKG)_DEPS := gcc gettext libpng jpeg tiff jasper glib atk pango cairo |
260
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
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:
449
diff
changeset
|
16 wget -q -O- 'http://git.gnome.org/cgit/gtk+/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:
449
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:
449
diff
changeset
|
18 $(SED) -n "s,.*<a href='[^']*/tag/?id=\\([0-9][^']*\\)'.*,\\1,p" | \ |
571
234d017f268c
avoid all old 0.18.x versions of package gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
562
diff
changeset
|
19 grep -v '2\.18\.' | \ |
260
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 head -1 |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 endef |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 define $(PKG)_BUILD |
269
16a7b5bac4b5
bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
24 $(SED) 's,DllMain,static _disabled_DllMain,' -i '$(1)/gdk/win32/gdkmain-win32.c' |
16a7b5bac4b5
bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
25 $(SED) 's,DllMain,static _disabled_DllMain,' -i '$(1)/gdk-pixbuf/gdk-pixbuf-io.c' |
16a7b5bac4b5
bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
26 $(SED) 's,DllMain,static _disabled_DllMain,' -i '$(1)/gtk/gtkmain.c' |
16a7b5bac4b5
bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
27 $(SED) 's,__declspec(dllimport),,' -i '$(1)/gdk/gdktypes.h' |
16a7b5bac4b5
bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
28 $(SED) 's,^\(Libs:.*\)@GTK_EXTRA_LIBS@,\1@GTK_DEP_LIBS@,' -i '$(1)/gtk+-2.0.pc.in' |
16a7b5bac4b5
bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
29 $(SED) 's,^\(gtkbuiltincache\.h:\),_disabled_\1,' -i '$(1)/gtk/Makefile.in' |
16a7b5bac4b5
bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
30 $(SED) 's,^\(install-data-local:.*\) install-libtool-import-lib,\1,' -i '$(1)/modules/other/gail/libgail-util/Makefile.in' |
16a7b5bac4b5
bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
31 $(SED) 's,\(BUILT_SOURCES.*=.*\)test-inline-pixbufs.h,\1,' -i '$(1)/demos/Makefile.in' |
16a7b5bac4b5
bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
32 $(SED) 's,"[^"]*must build as DLL[^"]*","(disabled warning)",' -i '$(1)/configure' |
16a7b5bac4b5
bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
33 $(SED) 's,enable_static=no,enable_static=yes,' -i '$(1)/configure' |
16a7b5bac4b5
bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
34 $(SED) 's,enable_shared=yes,enable_shared=no,' -i '$(1)/configure' |
635
f8d5fde6a0ae
corrected dependency library flags for packages cairo and gtk (by Zdenek Hutyra)
Volker Grabsch <vog@notjusthosting.com>
parents:
633
diff
changeset
|
35 $(SED) 's,\(STATIC_LIB_DEPS="[^"]*\) \$$LIBJASPER,\1 $$LIBJASPER $$LIBJPEG,' -i '$(1)/configure' |
269
16a7b5bac4b5
bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
36 $(SED) 's/-Wl,-luuid/-luuid/' -i '$(1)/configure' |
343
3cda8778b002
another fix for systems where wine confuses the cross-compiling detection of ./configure
Volker Grabsch <vog@notjusthosting.com>
parents:
341
diff
changeset
|
37 # wine confuses the cross-compiling detection, so set it explicitly |
3cda8778b002
another fix for systems where wine confuses the cross-compiling detection of ./configure
Volker Grabsch <vog@notjusthosting.com>
parents:
341
diff
changeset
|
38 $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure' |
260
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
39 cd '$(1)' && ./configure \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
40 --host='$(TARGET)' \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
41 --disable-shared \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
42 --prefix='$(PREFIX)/$(TARGET)' \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
43 --enable-explicit-deps \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
44 --disable-gdiplus \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
45 --disable-glibtest \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
46 --disable-modules \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
47 --disable-cups \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
48 --disable-test-print-backend \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
49 --disable-gtk-doc \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
50 --disable-man \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
51 --with-libpng \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
52 --with-libjpeg \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
53 --with-libtiff \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
54 --with-libjasper \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
55 --with-included-loaders \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
56 --with-included-immodules \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
57 --without-x |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
58 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
59 endef |