2010-10-23 15:48:31 +00:00
|
|
|
# Template build file for 'gdk-pixbuf'.
|
|
|
|
pkgname=gdk-pixbuf
|
2014-01-14 16:10:03 +00:00
|
|
|
version=2.30.3
|
2013-06-23 05:55:15 +00:00
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2012-02-08 09:56:41 +00:00
|
|
|
configure_args="--without-libjasper --with-included-loaders=png --with-x11"
|
2013-09-25 07:30:29 +00:00
|
|
|
hostmakedepends="perl pkg-config glib-devel"
|
|
|
|
makedepends="libglib-devel libpng-devel>=1.6 libjpeg-turbo-devel tiff-devel libX11-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
triggers="gtk-pixbuf-loaders"
|
2010-10-23 15:48:31 +00:00
|
|
|
short_desc="An Image loading library for The GTK+ toolkit (v2)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-08-27 09:08:41 +00:00
|
|
|
homepage="http://www.gtk.org/"
|
|
|
|
license="GPL-2"
|
2012-06-05 22:15:20 +00:00
|
|
|
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
2014-01-14 16:10:03 +00:00
|
|
|
checksum=c229c53f59573eab9410b53690a4b9db770312c80a4d84ecd6295aa894574494
|
2013-04-12 11:13:49 +00:00
|
|
|
|
2013-05-06 12:28:34 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# needs glib-mkenums
|
2013-09-25 07:30:29 +00:00
|
|
|
hostmakedepends+=" libtool"
|
2013-05-06 12:28:34 +00:00
|
|
|
configure_args+=" gio_can_sniff=yes"
|
|
|
|
pre_configure() {
|
2013-09-25 07:30:29 +00:00
|
|
|
libtoolize -f
|
2013-05-06 12:28:34 +00:00
|
|
|
}
|
|
|
|
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 11:13:49 +00:00
|
|
|
gdk-pixbuf-devel_package() {
|
2014-01-14 16:10:03 +00:00
|
|
|
depends="perl libpng-devel>=1.6 shared-mime-info ${sourcepkg}>=${version}_${revision}"
|
2013-04-30 08:28:25 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 11:13:49 +00:00
|
|
|
pkg_install() {
|
2014-01-14 16:10:03 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 11:13:49 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/bin/*csource*"
|
|
|
|
vmove "usr/share/man/man1/*csource*"
|
2013-05-06 12:28:34 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
2013-04-12 11:13:49 +00:00
|
|
|
vmove usr/share/gtk-doc
|
|
|
|
}
|
|
|
|
}
|