2010-10-23 17:48:31 +02:00
|
|
|
# Template build file for 'gdk-pixbuf'.
|
|
|
|
pkgname=gdk-pixbuf
|
2013-04-17 21:26:34 +02:00
|
|
|
version=2.28.1
|
2013-05-06 14:28:34 +02:00
|
|
|
revision=3
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2012-02-08 10:56:41 +01:00
|
|
|
configure_args="--without-libjasper --with-included-loaders=png --with-x11"
|
2013-03-28 06:51:01 +01:00
|
|
|
hostmakedepends="perl pkg-config"
|
2013-05-06 14:28:34 +02:00
|
|
|
makedepends="glib-devel libpng-devel>=1.6 libjpeg-turbo-devel
|
|
|
|
tiff-devel libX11-devel"
|
2010-10-23 17:48:31 +02:00
|
|
|
short_desc="An Image loading library for The GTK+ toolkit (v2)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-08-27 11:08:41 +02:00
|
|
|
homepage="http://www.gtk.org/"
|
|
|
|
license="GPL-2"
|
2012-06-06 00:15:20 +02:00
|
|
|
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
2013-04-17 21:26:34 +02:00
|
|
|
checksum=bea0b743fdb5c3c8e23210f73623ec5f18f9ead2522942897fe739d80b50c2bb
|
2013-04-12 13:13:49 +02:00
|
|
|
|
2013-05-06 14:28:34 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# needs glib-mkenums
|
|
|
|
hostmakedepends+=" automake libtool gtk-doc gettext-devel glib-devel"
|
|
|
|
configure_args+=" gio_can_sniff=yes"
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
desc_option_gir="Enable support for building gobject introspection data"
|
|
|
|
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
makedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
|
|
|
|
2013-04-12 13:13:49 +02:00
|
|
|
gdk-pixbuf-devel_package() {
|
2013-04-30 10:28:25 +02:00
|
|
|
depends="perl libpng-devel>=1.6 shared-mime-info ${sourcepkg}>=${version}"
|
|
|
|
short_desc+=" - development files"
|
2013-04-12 13:13:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/bin/*csource*"
|
|
|
|
vmove "usr/share/man/man1/*csource*"
|
2013-05-06 14:28:34 +02:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
2013-04-12 13:13:49 +02:00
|
|
|
vmove usr/share/gtk-doc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gdk-pixbuf_package() {
|
|
|
|
triggers="gtk-pixbuf-loaders"
|
|
|
|
pkg_install() {
|
2013-05-06 14:28:34 +02:00
|
|
|
vmove all
|
2013-04-12 13:13:49 +02:00
|
|
|
}
|
|
|
|
}
|