mxe/src/gdk-pixbuf.mk

35 lines
1.2 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 := gdk-pixbuf
$(PKG)_IGNORE :=
2014-02-01 11:19:22 +00:00
$(PKG)_VERSION := 2.30.3
$(PKG)_CHECKSUM := 22d1e53be4ccecd49290d8f1ba188cc51dc4fe88
$(PKG)_SUBDIR := gdk-pixbuf-$($(PKG)_VERSION)
2012-06-04 16:59:36 +01:00
$(PKG)_FILE := gdk-pixbuf-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
$(PKG)_DEPS := gcc glib libpng jpeg tiff jasper libiconv
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://git.gnome.org/browse/gdk-pixbuf/refs/tags' | \
grep '<a href=' | \
$(SED) -n 's,.*<a[^>]*>\([0-9]*\.[0-9]*[02468]\.[^<]*\)<.*,\1,p' | \
grep -v '^2\.9' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && autoreconf -fi -I'$(PREFIX)/$(TARGET)/share/aclocal'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build="`config.guess`" \
2012-06-04 16:59:36 +01:00
--enable-static \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-modules \
--with-included-loaders \
2012-06-04 16:59:36 +01:00
--without-gdiplus \
LIBS="`'$(TARGET)-pkg-config' --libs libtiff-4`"
$(MAKE) -C '$(1)' -j '$(JOBS)' install
endef