Mercurial > mxe-octave
annotate src/gtk.mk @ 1212:84cc482e2b06
tidy up handling of staic library dependencies
-ldnsapi provided by pkgconfig/gio-2.0.pc.
-lwinspool -lcomctl32 -lcomdlg32 provided by pkgconfig/gtk+-2.0.pc
Don't need to explicitly mention these building test programs.
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Wed, 29 Sep 2010 02:00:35 +0200 |
parents | 821fabe85a36 |
children | 8d43a215ea43 |
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 := |
1190
821fabe85a36
upgrade packages: glib gtk. new package: gdk-pixbuf
Mark Brand <mabrand@mabrand.nl>
parents:
959
diff
changeset
|
7 $(PKG)_VERSION := 2.22.0 |
821fabe85a36
upgrade packages: glib gtk. new package: gdk-pixbuf
Mark Brand <mabrand@mabrand.nl>
parents:
959
diff
changeset
|
8 $(PKG)_CHECKSUM := 3af12d8eb3520516b25fa82873f87473dfb42cc0 |
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) |
1190
821fabe85a36
upgrade packages: glib gtk. new package: gdk-pixbuf
Mark Brand <mabrand@mabrand.nl>
parents:
959
diff
changeset
|
13 $(PKG)_DEPS := gcc gettext libpng jpeg tiff jasper glib atk pango cairo gdk-pixbuf |
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 |
891
0ed1ba56ce8e
improved version recognition of packages atk, glib, gtk, libxml2, libxslt and pango
Volker Grabsch <vog@notjusthosting.com>
parents:
842
diff
changeset
|
16 wget -q -O- 'http://git.gnome.org/browse/gtk+/refs/tags' | \ |
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
|
17 grep '<a href=' | \ |
910
f0e89176cc72
avoid beta versions of packages glib and gtk (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
904
diff
changeset
|
18 $(SED) -n 's,.*<a[^>]*>\([0-9]*\.[0-9]*[02468]\.[^<]*\)<.*,\1,p' | \ |
959
1d94aad6a410
ignore beta versions of package gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
956
diff
changeset
|
19 grep -v '^2\.9' | \ |
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 |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 cd '$(1)' && ./configure \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 --host='$(TARGET)' \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 --disable-shared \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 --prefix='$(PREFIX)/$(TARGET)' \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 --enable-explicit-deps \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 --disable-gdiplus \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 --disable-glibtest \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 --disable-modules \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 --disable-cups \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 --disable-test-print-backend \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 --disable-gtk-doc \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 --disable-man \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 --with-libpng \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 --with-libjpeg \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
38 --with-libtiff \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
39 --with-libjasper \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
40 --with-included-loaders \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
41 --with-included-immodules \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
42 --without-x |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
43 $(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
|
44 |
8af5942cc9ad
test program for package gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
45 '$(TARGET)-gcc' \ |
8af5942cc9ad
test program for package gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
741
diff
changeset
|
46 -W -Wall -Werror -ansi -pedantic \ |
755
7b15d99ad223
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
748
diff
changeset
|
47 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gtk.exe' \ |
1212
84cc482e2b06
tidy up handling of staic library dependencies
Mark Brand <mabrand@mabrand.nl>
parents:
1190
diff
changeset
|
48 `'$(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
|
49 endef |