python-webkit: fix cross build

This commit is contained in:
Michael Gehring 2016-05-03 11:19:00 +02:00
parent b4db4150a8
commit 6380c62179
1 changed files with 8 additions and 1 deletions

View File

@ -4,7 +4,7 @@ version=1.1.8
revision=1
wrksrc=pywebkitgtk-${version}
build_style=gnu-configure
hostmakedepends="pkg-config python-devel"
hostmakedepends="pkg-config pygtk-devel"
makedepends="python-devel pygtk-devel GConf-devel libxslt-devel webkitgtk2-devel"
depends="pygtk"
pycompile_module="webkit"
@ -14,3 +14,10 @@ license="GPL-2"
homepage="http://www.gnu.org/software/pythonwebkit/"
distfiles="${DEBIAN_SITE}/main/p/pywebkitgtk/pywebkitgtk_${version}.orig.tar.gz"
checksum=7092212933000f23b3042135f01a371bd6a8f980c6b8d8b9dc7e20a1101d699c
pre_configure() {
if [ "$CROSS_BUILD" ]; then
sed -i "s,PYTHON_INCLUDES=.*,PYTHON_INCLUDES=-I${XBPS_CROSS_BASE}/usr/include/python2.7,g" configure
fi
}