pygobject2: cross build support.

This commit is contained in:
Juan RP 2014-01-28 09:58:31 +01:00
parent 496fe763ab
commit c17c60478d
1 changed files with 17 additions and 3 deletions

View File

@ -1,11 +1,11 @@
# Template file for 'pygobject2'
pkgname=pygobject2
version=2.28.6
revision=7
revision=8
wrksrc=${pkgname%2}-${version}
build_style=gnu-configure
configure_args="--disable-introspection"
hostmakedepends="pkg-config"
hostmakedepends="automake libtool pkg-config python-devel which glib-devel"
makedepends="libffi-devel libglib-devel cairo-devel python-devel py2cairo-devel"
depends="cairo python py2cairo"
pycompile_module="glib gobject gtk-2.0 pygtk"
@ -17,8 +17,22 @@ maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="${GNOME_SITE}/${pkgname%2}/2.28/${pkgname%2}-$version.tar.xz"
checksum=fb8a1d4f665130a125011659bd347c7339c944232163dbb9a34fd0686577adb8
pre_configure() {
NOCONFIGURE=1 autoreconf -fi
}
do_configure() {
if [ "$CROSS_BUILD" ]; then
# XXX share python-config wrapper for all pkgs.
# create a python-config wrapper to fake --includes
install -m755 ${XBPS_SRCPKGDIR}/py2cairo/files/python-config ${wrksrc}
sed -e 's,^PYTHON_CONFIG=.*,PYTHON_CONFIG=./python-config,g' -i configure
fi
./configure ${configure_args}
}
pygobject2-devel_package() {
depends="libffi-devel libglib-devel py2cairo-devel pygobject2>=${version}"
depends="libffi-devel libglib-devel py2cairo-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pycompile_module="usr/share/pygobject/2.0/codegen"
replaces="pygobject-devel<3.0.0"