blob: 1a98eff931cbd63aba931c8a869ce4dac36a67dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# This file is part of MXE.
# See index.html for further information.
PKG := gtk2
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.24.22
$(PKG)_CHECKSUM := 2175e25041244dc321e35dbdcf9cb5c371b455da
$(PKG)_SUBDIR := gtk+-$($(PKG)_VERSION)
$(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=' | \
$(SED) -n 's,.*<a[^>]*>\([0-9]*\.[0-9]*[02468]\.[^<]*\)<.*,\1,p' | \
grep -v '^2\.9' | \
grep '^2\.' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--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=
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gtk2.exe' \
`'$(TARGET)-pkg-config' gtk+-2.0 gmodule-2.0 --cflags --libs`
endef
$(PKG)_BUILD_SHARED =
|