mxe/src/gtk2.mk

44 lines
1.4 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
PKG := gtk2
$(PKG)_IGNORE :=
2013-11-10 04:18:56 +00:00
$(PKG)_VERSION := 2.24.22
$(PKG)_CHECKSUM := 2175e25041244dc321e35dbdcf9cb5c371b455da
$(PKG)_SUBDIR := gtk+-$($(PKG)_VERSION)
2012-06-04 17:02:24 +01:00
$(PKG)_FILE := gtk+-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/gtk+/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
$(PKG)_DEPS := gcc gettext libpng jpeg tiff jasper glib atk pango cairo gdk-pixbuf
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://git.gnome.org/browse/gtk+/refs/tags' | \
grep '<a href=' | \
2011-04-23 14:50:33 +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' | \
2011-04-23 14:50:33 +01:00
grep '^2\.' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build="`config.guess`" \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-explicit-deps \
--disable-glibtest \
--disable-modules \
--disable-cups \
--disable-test-print-backend \
--disable-gtk-doc \
--disable-man \
--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' \
2012-11-21 09:08:37 +00:00
-W -Wall -Werror -ansi \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gtk2.exe' \
`'$(TARGET)-pkg-config' gtk+-2.0 --cflags --libs`
endef