python-webkit: fix cross build
This commit is contained in:
parent
b4db4150a8
commit
6380c62179
|
@ -4,7 +4,7 @@ version=1.1.8
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc=pywebkitgtk-${version}
|
wrksrc=pywebkitgtk-${version}
|
||||||
build_style=gnu-configure
|
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"
|
makedepends="python-devel pygtk-devel GConf-devel libxslt-devel webkitgtk2-devel"
|
||||||
depends="pygtk"
|
depends="pygtk"
|
||||||
pycompile_module="webkit"
|
pycompile_module="webkit"
|
||||||
|
@ -14,3 +14,10 @@ license="GPL-2"
|
||||||
homepage="http://www.gnu.org/software/pythonwebkit/"
|
homepage="http://www.gnu.org/software/pythonwebkit/"
|
||||||
distfiles="${DEBIAN_SITE}/main/p/pywebkitgtk/pywebkitgtk_${version}.orig.tar.gz"
|
distfiles="${DEBIAN_SITE}/main/p/pywebkitgtk/pywebkitgtk_${version}.orig.tar.gz"
|
||||||
checksum=7092212933000f23b3042135f01a371bd6a8f980c6b8d8b9dc7e20a1101d699c
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue