2009-04-21 23:29:15 +02:00
|
|
|
# Template build file for 'libgsf'.
|
|
|
|
pkgname=libgsf
|
2013-08-07 10:16:54 +02:00
|
|
|
version=1.14.28
|
2014-02-16 10:36:46 +01:00
|
|
|
revision=2
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2014-02-16 10:36:46 +01:00
|
|
|
configure_args="--disable-static"
|
|
|
|
hostmakedepends="pkg-config intltool glib-devel"
|
2013-04-13 10:15:49 +02:00
|
|
|
makedepends="libglib-devel libxml2-devel gdk-pixbuf-devel"
|
2013-03-01 04:49:33 +01:00
|
|
|
short_desc="Structured File Library"
|
2009-04-21 23:29:15 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-12-17 17:57:04 +01:00
|
|
|
license="GPL-2, LGPL-2.1"
|
2012-09-12 20:47:16 +02:00
|
|
|
homepage="http://www.gnome.org/"
|
|
|
|
distfiles="${GNOME_SITE}/libgsf/1.14/$pkgname-$version.tar.xz"
|
2013-08-07 10:16:54 +02:00
|
|
|
checksum=ea94914f1fdaa5d4eb49149f0228ae6e41a54bdeb8caf52a7dd8acaa329fcbe4
|
2013-04-13 10:15:49 +02:00
|
|
|
|
2014-02-16 10:36:46 +01: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 10:15:49 +02:00
|
|
|
libgsf-devel_package() {
|
2014-02-16 10:36:46 +01:00
|
|
|
depends="libglib-devel libxml2-devel ${sourcepkg}>=${version}_${revision}"
|
2013-06-24 10:31:42 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-08-07 10:16:54 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 10:15:49 +02:00
|
|
|
vmove usr/share/gtk-doc
|
2014-02-16 10:36:46 +01:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
|
|
|
}
|