python-gobject2: update cross fix

This commit is contained in:
Alessio Sergi 2018-09-02 20:11:40 +02:00
parent 25855ae176
commit 1e7c6779be

View file

@ -20,8 +20,7 @@ checksum=bb9d25a3442ca7511385a7c01b057492095c263784ef31231ffe589d83a96a5a
pre_configure() {
NOCONFIGURE=1 autoreconf -fi
if [ "$CROSS_BUILD" ]; then
# Fix path to the python-config wrapper.
sed -e "s,^PYTHON_CONFIG=.*,PYTHON_CONFIG=${XBPS_WRAPPERDIR}/python-config,g" -i configure
sed -i "s,\(PYTHON_INCLUDES\)=.*,\1=-I${XBPS_CROSS_BASE}/usr/include/python2.7,g" configure
fi
}