2010-10-23 17:48:31 +02:00
|
|
|
# Template build file for 'gdk-pixbuf'.
|
|
|
|
pkgname=gdk-pixbuf
|
2014-06-04 11:27:07 +02:00
|
|
|
version=2.30.8
|
2013-06-23 07:55:15 +02:00
|
|
|
revision=1
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2014-06-04 11:27:07 +02:00
|
|
|
configure_args="--without-libjasper --with-included-loaders=png --with-x11 gio_can_sniff=yes"
|
|
|
|
hostmakedepends="libtool perl pkg-config glib-devel"
|
2013-09-25 09:30:29 +02:00
|
|
|
makedepends="libglib-devel libpng-devel>=1.6 libjpeg-turbo-devel tiff-devel libX11-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
triggers="gtk-pixbuf-loaders"
|
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"
|
2014-06-04 11:27:07 +02:00
|
|
|
checksum=4853830616113db4435837992c0aebd94cbb993c44dc55063cee7f72a7bef8be
|
2013-05-06 14:28:34 +02:00
|
|
|
|
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2014-06-04 11:27:07 +02:00
|
|
|
pre_configure() {
|
|
|
|
libtoolize -f
|
|
|
|
}
|
|
|
|
|
|
|
|
gdk-pixbuf-xlib_package() {
|
|
|
|
replaces="${sourcepkg}<2.30.8"
|
|
|
|
short_desc+=" - xlib rendering library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/libgdk_pixbuf_xlib*.so.*
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-12 13:13:49 +02:00
|
|
|
gdk-pixbuf-devel_package() {
|
2014-06-04 11:27:07 +02:00
|
|
|
depends="libglib-devel libpng-devel>=1.6 ${sourcepkg}-xlib>=${version}_${revision} ${sourcepkg}>=${version}_${revision}"
|
2013-04-30 10:28:25 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 13:13:49 +02:00
|
|
|
pkg_install() {
|
2014-01-14 17:10:03 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 13:13:49 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|