qt5: another fix for cross mkspecs with cmake

Closes #5059
This commit is contained in:
Juergen Buchmueller 2016-10-28 05:55:47 +02:00
parent 6e4153d52c
commit 0d969d4239
1 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'qt5'
pkgname=qt5
version=5.6.2
revision=3
revision=4
wrksrc="qt-everywhere-opensource-src-${version}"
homepage="http://qt.io/"
short_desc="A cross-platform application and UI framework (QT5)"
@ -86,7 +86,8 @@ _install_devel() {
# Remove QMAKE_PRL_BUILD_DIR from *.prl files because it is the internal builddir
find ${PKGDESTDIR} -iname "*.prl" -exec sed -i "{}" -e "/^QMAKE_PRL_BUILD_DIR/d" \;
find ${PKGDESTDIR} -iname "*.cmake" -exec sed -i "{}" \
-e "s;${wrksrc}/qtbase/host/;/usr/lib/qt5/;g" \;
-e "s;${wrksrc}/qtbase/host/;/usr/lib/qt5/;g" \
-e "s;devices/void-${XBPS_CROSS_TRIPLET}-g++;linux-g++;g" \;
}
_create_config() {
@ -708,7 +709,8 @@ qt5-devel_package() {
# Remove QMAKE_PRL_BUILD_DIR from *.prl files because it is the internal builddir
find ${PKGDESTDIR} -iname "*.prl" -exec sed -i "{}" -e "/^QMAKE_PRL_BUILD_DIR/d" \;
find ${PKGDESTDIR} -iname "*.cmake" -exec sed -i "{}" \
-e "s;${wrksrc}/qtbase/host/;/usr/lib/qt5/;g" \;
-e "s;${wrksrc}/qtbase/host/;/usr/lib/qt5/;g" \
-e "s;devices/void-${XBPS_CROSS_TRIPLET}-g++;linux-g++;g" \;
}
}