Mercurial > mxe-octave
annotate src/gtk.mk @ 759:bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Tue, 16 Feb 2010 04:12:53 +0100 |
parents | 7b15d99ad223 |
children | 396c2babb753 |
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. |
714
29f1ba4559ae
point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents:
691
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 |
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 := |
741
9f46c7b491c9
update version of packages curl, freetype, gdal, glib, gtk and pixman
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
7 $(PKG)_VERSION := 2.19.5 |
9f46c7b491c9
update version of packages curl, freetype, gdal, glib, gtk and pixman
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
8 $(PKG)_CHECKSUM := 678f27ceef72853a650d045506f06a32905102fe |
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 |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
755
diff
changeset
|
24 $(SED) -i 's,DllMain,static _disabled_DllMain,' '$(1)/gdk/win32/gdkmain-win32.c' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
755
diff
changeset
|
25 $(SED) -i 's,DllMain,static _disabled_DllMain,' '$(1)/gdk-pixbuf/gdk-pixbuf-io.c' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
755
diff
changeset
|
26 $(SED) -i 's,DllMain,static _disabled_DllMain,' '$(1)/gtk/gtkmain.c' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
755
diff
changeset
|
27 $(SED) -i 's,__declspec(dllimport),,' '$(1)/gdk/gdktypes.h' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
755
diff
changeset
|
28 $(SED) -i 's,^\(Libs:.*\)@GTK_EXTRA_LIBS@,\1@GTK_DEP_LIBS@,' '$(1)/gtk+-2.0.pc.in' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
755
diff
changeset
|
29 $(SED) -i 's,^\(gtkbuiltincache\.h:\),_disabled_\1,' '$(1)/gtk/Makefile.in' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
755
diff
changeset
|
30 $(SED) -i 's,^\(install-data-local:.*\) install-libtool-import-lib,\1,' '$(1)/modules/other/gail/libgail-util/Makefile.in' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
755
diff
changeset
|
31 $(SED) -i 's,\(BUILT_SOURCES.*=.*\)test-inline-pixbufs.h,\1,' '$(1)/demos/Makefile.in' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
755
diff
changeset
|
32 $(SED) -i 's,"[^"]*must build as DLL[^"]*","(disabled warning)",' '$(1)/configure' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
755
diff
changeset
|
33 $(SED) -i 's,enable_static=no,enable_static=yes,' '$(1)/configure' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
755
diff
changeset
|
34 $(SED) -i 's,enable_shared=yes,enable_shared=no,' '$(1)/configure' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
755
diff
changeset
|
35 $(SED) -i 's,\(STATIC_LIB_DEPS="[^"]*\) \$$LIBJASPER,\1 $$LIBJASPER $$LIBJPEG,' '$(1)/configure' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
755
diff
changeset
|
36 $(SED) -i 's/-Wl,-luuid/-luuid/' '$(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 |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
755
diff
changeset
|
38 $(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(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= |
748
8af5942cc9ad
test program for package gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
59 |
8af5942cc9ad
test program for package gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
60 '$(TARGET)-gcc' \ |
8af5942cc9ad
test program for package gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
61 -W -Wall -Werror -ansi -pedantic \ |
755
7b15d99ad223
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
748
diff
changeset
|
62 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gtk.exe' \ |
7b15d99ad223
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
748
diff
changeset
|
63 `'$(TARGET)-pkg-config' gtk+-2.0 --cflags --libs` |
260
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
64 endef |