gimp: fix cross builds

gimp was calling pkg-config assuming that it won't be a wrapper for
cross builds, which resulted in cross flags getting leaked into native
tools.
This commit is contained in:
John 2020-05-07 17:09:08 +02:00
parent 8a4edd90db
commit d1ad03a3c4
No known key found for this signature in database
GPG key ID: 5FDE97AF468A09B7

View file

@ -21,14 +21,12 @@ checksum=65bfe111e8eebffd3dde3016ccb507f9948d2663d9497cb438d9bb609e11d716
python_version=2 #unverified
lib32disabled=yes
case "$XBPS_TARGET_MACHINE" in
arm*) nocross="https://build.voidlinux.org/builders/armv6l_builder/builds/24795/steps/shell_3/logs/stdio" ;;
esac
pre_configure() {
NOCONFIGURE=1 autoreconf -fi
if [ "$CROSS_BUILD" ]; then
sed -i 's:^py_prefix=`:py_prefix='"$XBPS_CROSS_BASE"'`:' configure
rm "${XBPS_WRAPPERDIR}/pkg-config"
export PKG_CONFIG="${XBPS_WRAPPERDIR}/${XBPS_CROSS_TRIPLET}-pkg-config"
fi
}