mxe/src/gtk2.mk

48 lines
1.7 KiB
Makefile
Raw Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := gtk2
2017-03-04 10:33:47 +00:00
$(PKG)_WEBSITE := https://gtk.org/
$(PKG)_DESCR := GTK+
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.24.29
$(PKG)_CHECKSUM := 0741c59600d3d810a223866453dc2bbb18ce4723828681ba24aa6519c37631b8
$(PKG)_SUBDIR := gtk+-$($(PKG)_VERSION)
2012-06-04 17:02:24 +01:00
$(PKG)_FILE := gtk+-$($(PKG)_VERSION).tar.xz
2017-03-04 10:33:47 +00:00
$(PKG)_URL := https://download.gnome.org/sources/gtk+/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
$(PKG)_DEPS := cc atk cairo gdk-pixbuf gettext glib jasper jpeg libpng pango tiff
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://gitlab.gnome.org/GNOME/gtk+/tags' | \
$(SED) -n "s,.*<a [^>]\+>v\?\([0-9]\+\.[0-9.]\+\)<.*,\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 '$(BUILD_DIR)' && '$(SOURCE_DIR)/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 '$(BUILD_DIR)' -j '$(JOBS)' $(MXE_DISABLE_CRUFT) EXTRA_DIST=
$(MAKE) -C '$(BUILD_DIR)' -j 1 install $(MXE_DISABLE_CRUFT) EXTRA_DIST=
# cleanup to avoid gtk2/3 conflicts (EXTRA_DIST doesn't exclude it)
# and *.def files aren't really relevant for MXE
rm -f '$(PREFIX)/$(TARGET)/lib/gailutil.def'
2010-02-15 23:48:52 +00:00
'$(TARGET)-gcc' \
2012-11-21 09:08:37 +00:00
-W -Wall -Werror -ansi \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-gtk2.exe' \
`'$(TARGET)-pkg-config' gtk+-2.0 gmodule-2.0 --cflags --libs`
endef
$(PKG)_BUILD_SHARED =