pygtk: cross build support.

This commit is contained in:
Juan RP 2014-01-28 10:07:30 +01:00
parent c17c60478d
commit 6bf381436e
1 changed files with 12 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# Template file for 'pygtk'
pkgname=pygtk
version=2.24.0
revision=8
revision=9
build_style=gnu-configure
# XXX: missing python-numpy build dep
hostmakedepends="pkg-config"
hostmakedepends="pkg-config pygobject2-devel>=2.28.6_6"
makedepends="python-devel gtk+-devel libxml2-devel pygobject2-devel>=2.28.6_6"
depends="python pygobject2 py2cairo"
pycompile_module="gtk-2.0/gtk"
@ -15,6 +15,16 @@ maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="${GNOME_SITE}/$pkgname/2.24/$pkgname-$version.tar.bz2"
checksum=cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5363e0f82c896e649f206912
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}
export PATH=${wrksrc}:$PATH
fi
env PYTHON=python ./configure ${configure_args}
}
post_install() {
vinstall gtk/gtk-extrafuncs.defs 644 usr/share/pygtk/2.0/defs
}