2016-03-17 10:48:07 +00:00
|
|
|
# Template file for 'qt5-webkit'
|
|
|
|
pkgname=qt5-webkit
|
2016-10-23 14:44:34 +00:00
|
|
|
version=5.6.2
|
|
|
|
revision=1
|
2016-10-16 17:57:49 +00:00
|
|
|
nocross=yes
|
2016-03-17 10:48:07 +00:00
|
|
|
build_style=qmake
|
|
|
|
wrksrc=qtwebkit-opensource-src-${version}
|
2016-10-23 14:44:34 +00:00
|
|
|
hostmakedepends="bison flex gperf perl python ruby pkg-config qt5-qmake"
|
2016-06-23 09:46:23 +00:00
|
|
|
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"
|
|
|
|
short_desc="A cross-platform application and UI framework (Qt5) - WebKit2 component"
|
2016-03-17 10:48:07 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
|
|
license="GPL-3, LGPL-2.1"
|
2016-06-23 09:46:23 +00:00
|
|
|
homepage="https://www.qt.io/"
|
|
|
|
distfiles="https://download.qt.io/community_releases/${version%.*}/${version}/qtwebkit-opensource-src-${version}.tar.xz"
|
2016-10-23 14:44:34 +00:00
|
|
|
checksum=528a6b8b1c5095367b26e8ce4f3a46bb739e2e9913ff4dfc6ef58a04fcd73966
|
2016-03-17 10:48:07 +00:00
|
|
|
|
2016-10-25 21:19:58 +00:00
|
|
|
if [ ${XBPS_GCC_VERSION_MAJOR} -gt 5 ]; then
|
2016-09-25 08:19:01 +00:00
|
|
|
CXXFLAGS="-fno-delete-null-pointer-checks"
|
|
|
|
fi
|
|
|
|
|
2016-10-23 14:44:34 +00:00
|
|
|
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
|
|
|
|
|
2016-03-17 10:48:07 +00:00
|
|
|
pre_configure() {
|
|
|
|
# Generate headers
|
2016-10-23 14:44:34 +00:00
|
|
|
syncqt.pl-qt5 -version ${version} Source/sync.profile
|
2016-03-17 10:48:07 +00:00
|
|
|
}
|
2016-06-22 22:42:17 +00:00
|
|
|
post_install() {
|
|
|
|
# QMAKE_PRL_BUILD_DIR contains a reference the build dir; drop it
|
|
|
|
find ${DESTDIR}/usr/lib -type f -name '*.prl' -exec \
|
|
|
|
sed -i "{}" -e "/^QMAKE_PRL_BUILD_DIR/d" \;
|
|
|
|
}
|
|
|
|
|
2016-03-17 10:48:07 +00:00
|
|
|
qt5-webkit-devel_package() {
|
|
|
|
short_desc+=" (development)"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/*.so
|
|
|
|
vmove usr/lib/*.prl
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|