void-packages/srcpkgs/gdk-pixbuf/template

56 lines
1.5 KiB
Text
Raw Normal View History

# Template build file for 'gdk-pixbuf'.
pkgname=gdk-pixbuf
2013-12-17 14:05:44 +00:00
version=2.30.2
2013-06-23 05:55:15 +00:00
revision=1
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"
triggers="gtk-pixbuf-loaders"
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"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
2013-12-17 14:05:44 +00:00
checksum=cababfa075a9a60426809309ec86b82ea28e83f44ef69c898e48c040b6feecbf
if [ "$CROSS_BUILD" ]; then
# needs glib-mkenums
2013-09-25 07:30:29 +00:00
hostmakedepends+=" libtool"
configure_args+=" gio_can_sniff=yes"
pre_configure() {
2013-09-25 07:30:29 +00:00
libtoolize -f
}
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
gdk-pixbuf-devel_package() {
depends="perl libpng-devel>=1.6 shared-mime-info ${sourcepkg}>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/lib/pkgconfig
vmove usr/include
vmove "usr/bin/*csource*"
vmove "usr/share/man/man1/*csource*"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove usr/share/gtk-doc
}
}