python-PyQt5: fix cross build

[ci skip]
This commit is contained in:
Peter Bui 2019-07-17 17:59:37 -04:00 committed by Helmut Pozimski
parent 0dfa9f08c1
commit 25fc1a7e19

View file

@ -21,7 +21,6 @@ homepage="https://riverbankcomputing.com/software/pyqt/intro"
license="GPL-3.0-only"
distfiles="https://www.riverbankcomputing.com/static/Downloads/PyQt5/${version}/PyQt5_gpl-${version}.tar.gz"
checksum=0cdbffe5135926527b61cc3692dd301cd0328dd87eeaf1313e610787c46faff9
nocross="https://build.voidlinux.org/builders/armv7l_builder/builds/18963/steps/shell_3/logs/stdio"
pre_build() {
mkdir -p pyqt5-${py2_ver}
@ -65,6 +64,12 @@ EOF
python${pyver} configure.py --confirm-license --assume-shared --no-dist-info $_sysroot $_configuration \
QMAKE_CC="${CC}" QMAKE_CFLAGS="${CFLAGS}" QMAKE_CXX="${CXX}" QMAKE_CXXFLAGS="${CXXFLAGS}" \
QMAKE_LINK="${CXX}" QMAKE_LINK_SHLIB="${CXX}" QMAKE_LFLAGS="${LDFLAGS}" QMAKE_STRIP=""
if [ "$CROSS_BUILD" ]; then
# Fix location of libraries
find . -name Makefile | xargs sed -i -E "s|(/usr/lib/libQt5[^ ]+so)|${XBPS_CROSS_BASE}\1|g"
fi
make ${makejobs}
done
}