void-packages/srcpkgs/gdk-pixbuf/template

53 lines
1.5 KiB
Bash
Raw Normal View History

# Template build file for 'gdk-pixbuf'.
pkgname=gdk-pixbuf
2015-05-13 07:51:39 +02:00
version=2.31.4
2013-06-23 07:55:15 +02:00
revision=1
build_style=gnu-configure
2014-11-24 09:03:21 +01:00
configure_args="$(vopt_enable gir introspection) --without-libjasper
--with-included-loaders=png --with-x11 gio_can_sniff=yes"
hostmakedepends="automake libtool perl pkg-config gettext-devel
glib-devel $(vopt_if gir gobject-introspection)"
makedepends="libglib-devel libpng-devel 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@voidlinux.eu>"
2011-08-27 11:08:41 +02:00
homepage="http://www.gtk.org/"
license="GPL-2"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
2015-05-13 07:51:39 +02:00
checksum=e5d9977493f8188baa6f432c5015c9937f0f67d29e0b6bccd3fae23126a47a15
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
pre_configure() {
2014-11-24 09:03:21 +01:00
autoreconf -fi
}
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 17:10:03 +01: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
}
}