From 219aba2aca98dc60fa2120621b884522d2ca708c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 4 Feb 2014 05:19:22 +0100 Subject: [PATCH] gupnp-igd: cross build support; added gir build option. --- srcpkgs/gupnp-igd/template | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/srcpkgs/gupnp-igd/template b/srcpkgs/gupnp-igd/template index 7be4c7bc84f..5ac44187210 100644 --- a/srcpkgs/gupnp-igd/template +++ b/srcpkgs/gupnp-igd/template @@ -1,25 +1,41 @@ # Template file for 'gupnp-igd' pkgname=gupnp-igd version=0.2.2 -revision=2 +revision=3 build_style=gnu-configure configure_args="--disable-python --disable-static" -makedepends="pkg-config glib-devel libxml2-devel libsoup-devel gssdp-devel gupnp-devel" +hostmakedepends="pkg-config glib-devel" +makedepends="libglib-devel libxml2-devel libsoup-devel gssdp-devel gupnp-devel" short_desc="Library to handle UPnP IGD port mapping" maintainer="Juan RP " license="LGPL-2.1" homepage="http://gupnp.org" distfiles="${GNOME_SITE}/$pkgname/0.2/$pkgname-$version.tar.xz" checksum=73b6a98a0f13b29b34c3bfc07f99f78b1319211cb95a8585752873af2b9067d3 -long_desc=" - GUPNP-igd is is a library to handle UPnP IGD port mapping." + +# 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 gupnp-igd-devel_package() { - depends="gupnp-devel gupnp-igd>=${version}" + depends="gupnp-devel ${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/share vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" } }