void-packages/srcpkgs/gdk-pixbuf/template

59 lines
1.6 KiB
Text
Raw Normal View History

# Template build file for 'gdk-pixbuf'.
pkgname=gdk-pixbuf
2014-09-22 15:47:09 +00:00
version=2.31.1
2013-06-23 05:55:15 +00:00
revision=1
build_style=gnu-configure
configure_args="--without-libjasper --with-included-loaders=png --with-x11 gio_can_sniff=yes"
hostmakedepends="libtool perl pkg-config glib-devel"
2013-09-25 07:30:29 +00:00
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"
2014-09-22 15:47:09 +00:00
checksum=25a75e3c61dac11e6ff6416ad846951ccafac6486b1c6a1bfb0b213b99db52cd
# 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
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.*
}
}
gdk-pixbuf-devel_package() {
depends="libglib-devel libpng-devel>=1.6 ${sourcepkg}-xlib>=${version}_${revision} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
2014-01-14 16:10:03 +00:00
vmove "usr/lib/*.so"
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
}
}