diff --git a/srcpkgs/qt5-webkit/template b/srcpkgs/qt5-webkit/template index 866971a540a..e970f747171 100644 --- a/srcpkgs/qt5-webkit/template +++ b/srcpkgs/qt5-webkit/template @@ -1,11 +1,11 @@ # Template file for 'qt5-webkit' pkgname=qt5-webkit -version=5.6.1 -revision=3 +version=5.6.2 +revision=1 nocross=yes build_style=qmake wrksrc=qtwebkit-opensource-src-${version} -hostmakedepends="bison flex gperf perl python ruby pkg-config" +hostmakedepends="bison flex gperf perl python ruby pkg-config qt5-qmake" makedepends="libwebp-devel libxslt-devel libXcomposite-devel sqlite-devel gst-plugins-base1-devel qt5-declarative-devel qt5-location-devel qt5-sensors-devel qt5-webchannel-devel" @@ -14,16 +14,22 @@ maintainer="Juan RP " license="GPL-3, LGPL-2.1" homepage="https://www.qt.io/" distfiles="https://download.qt.io/community_releases/${version%.*}/${version}/qtwebkit-opensource-src-${version}.tar.xz" -checksum=f5cfbfa5fad2b65a9be907d426f99694b86a04c3bb5a8814b21bd0ade4c672aa +checksum=528a6b8b1c5095367b26e8ce4f3a46bb739e2e9913ff4dfc6ef58a04fcd73966 _gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }') if [ "${_gccver%%.*}" -gt 5 ]; then CXXFLAGS="-fno-delete-null-pointer-checks" fi +if [ -n "$CROSS_BUILD" ]; then + CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/qt5 -I${XBPS_CROSS_BASE}/usr/include/qt5/QtCore" + CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/qt5 -I${XBPS_CROSS_BASE}/usr/include/qt5/QtCore" + export QT_SYSROOT=${XBPS_CROSS_BASE} +fi + pre_configure() { # Generate headers - syncqt.pl-qt5 -version 5.6.0 Source/sync.profile + syncqt.pl-qt5 -version ${version} Source/sync.profile } post_install() { # QMAKE_PRL_BUILD_DIR contains a reference the build dir; drop it