2011-10-21 20:31:18 +00:00
|
|
|
# Template file for 'libgxps'
|
|
|
|
pkgname=libgxps
|
2012-03-19 14:33:01 +00:00
|
|
|
version=0.2.2
|
2014-05-10 07:38:28 +00:00
|
|
|
revision=7
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2011-10-21 20:31:18 +00:00
|
|
|
configure_args="--disable-static"
|
2014-05-10 07:38:28 +00:00
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="cairo-devel libglib-devel libjpeg-turbo-devel libpng-devel>=1.6
|
2013-04-13 08:15:49 +00:00
|
|
|
tiff-devel lcms2-devel libarchive-devel>=3.1.2 freetype-devel"
|
2011-10-21 20:31:18 +00:00
|
|
|
short_desc="GObject base library for XPS documents"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="LGPL-2.1"
|
2012-06-06 06:17:21 +00:00
|
|
|
homepage="http://live.gnome.org/libgxps"
|
|
|
|
distfiles="${GNOME_SITE}/$pkgname/0.2/$pkgname-$version.tar.xz"
|
2012-03-19 14:33:01 +00:00
|
|
|
checksum=39d104739bf0db43905c315de1d8002460f1a098576f4418f69294013a5820be
|
2013-04-13 08:15:49 +00:00
|
|
|
|
2014-05-10 07:38:28 +00:00
|
|
|
# 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-13 08:15:49 +00:00
|
|
|
libgxps-devel_package() {
|
2014-05-10 07:38:28 +00:00
|
|
|
depends="libglib-devel libarchive-devel cairo-devel ${sourcepkg}>=${version}_${revision}"
|
2013-04-30 09:32:22 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-05-10 07:38:28 +00:00
|
|
|
vmove usr/lib/*.so
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|