libgxps: added gir build option for cross builds.
This commit is contained in:
parent
b9918700c0
commit
6524059e69
1 changed files with 21 additions and 4 deletions
|
@ -1,11 +1,11 @@
|
|||
# Template file for 'libgxps'
|
||||
pkgname=libgxps
|
||||
version=0.2.2
|
||||
revision=6
|
||||
revision=7
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-static"
|
||||
hostmakedepends="pkg-config gobject-introspection"
|
||||
makedepends="libglib-devel libjpeg-turbo-devel libpng-devel>=1.6
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="cairo-devel libglib-devel libjpeg-turbo-devel libpng-devel>=1.6
|
||||
tiff-devel lcms2-devel libarchive-devel>=3.1.2 freetype-devel"
|
||||
short_desc="GObject base library for XPS documents"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
@ -14,12 +14,29 @@ homepage="http://live.gnome.org/libgxps"
|
|||
distfiles="${GNOME_SITE}/$pkgname/0.2/$pkgname-$version.tar.xz"
|
||||
checksum=39d104739bf0db43905c315de1d8002460f1a098576f4418f69294013a5820be
|
||||
|
||||
# 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
|
||||
|
||||
libgxps-devel_package() {
|
||||
depends="libglib-devel libarchive-devel cairo-devel libgxps>=$version"
|
||||
depends="libglib-devel libarchive-devel cairo-devel ${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove usr/share
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove usr/lib/*.so
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue