2010-01-16 22:02:02 +00:00
|
|
|
# This file is part of mingw-cross-env.
|
2010-02-07 23:58:06 +00:00
|
|
|
# See doc/index.html for further information.
|
2009-02-28 21:44:12 +00:00
|
|
|
|
2009-08-21 05:58:11 +01:00
|
|
|
# GTK+
|
2009-04-05 13:00:17 +01:00
|
|
|
PKG := gtk
|
2009-12-02 16:41:15 +00:00
|
|
|
$(PKG)_IGNORE :=
|
2010-11-28 18:07:21 +00:00
|
|
|
$(PKG)_VERSION := 2.22.1
|
|
|
|
$(PKG)_CHECKSUM := c88d8be4aebd6e59d6ca44d57f6acd18e2be1c08
|
2009-04-05 13:00:17 +01:00
|
|
|
$(PKG)_SUBDIR := gtk+-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := gtk+-$($(PKG)_VERSION).tar.bz2
|
|
|
|
$(PKG)_WEBSITE := http://www.gtk.org/
|
|
|
|
$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/gtk+/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
|
2010-09-24 15:33:16 +01:00
|
|
|
$(PKG)_DEPS := gcc gettext libpng jpeg tiff jasper glib atk pango cairo gdk-pixbuf
|
2009-02-28 21:44:12 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2010-04-21 00:15:03 +01:00
|
|
|
wget -q -O- 'http://git.gnome.org/browse/gtk+/refs/tags' | \
|
2009-10-21 12:24:44 +01:00
|
|
|
grep '<a href=' | \
|
2010-04-26 14:09:34 +01:00
|
|
|
$(SED) -n 's,.*<a[^>]*>\([0-9]*\.[0-9]*[02468]\.[^<]*\)<.*,\1,p' | \
|
2010-05-13 16:32:58 +01:00
|
|
|
grep -v '^2\.9' | \
|
2009-02-28 21:44:12 +00:00
|
|
|
head -1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
|
|
|
cd '$(1)' && ./configure \
|
|
|
|
--host='$(TARGET)' \
|
|
|
|
--disable-shared \
|
|
|
|
--prefix='$(PREFIX)/$(TARGET)' \
|
|
|
|
--enable-explicit-deps \
|
|
|
|
--disable-gdiplus \
|
|
|
|
--disable-glibtest \
|
|
|
|
--disable-modules \
|
|
|
|
--disable-cups \
|
|
|
|
--disable-test-print-backend \
|
|
|
|
--disable-gtk-doc \
|
|
|
|
--disable-man \
|
|
|
|
--with-libpng \
|
|
|
|
--with-libjpeg \
|
|
|
|
--with-libtiff \
|
|
|
|
--with-libjasper \
|
|
|
|
--with-included-loaders \
|
|
|
|
--with-included-immodules \
|
|
|
|
--without-x
|
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
|
2010-02-15 23:48:52 +00:00
|
|
|
|
|
|
|
'$(TARGET)-gcc' \
|
|
|
|
-W -Wall -Werror -ansi -pedantic \
|
2010-02-16 02:49:06 +00:00
|
|
|
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gtk.exe' \
|
2010-09-29 01:00:35 +01:00
|
|
|
`'$(TARGET)-pkg-config' gtk+-2.0 --cflags --libs`
|
2009-02-28 21:44:12 +00:00
|
|
|
endef
|