From 0af40c306cd8d177315673ad33f70166b318aebf Mon Sep 17 00:00:00 2001 From: newbluemoon Date: Sun, 3 Nov 2019 07:55:56 +0100 Subject: [PATCH] sonic-visualiser: user qmake build-helper --- srcpkgs/sonic-visualiser/template | 34 ++----------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/srcpkgs/sonic-visualiser/template b/srcpkgs/sonic-visualiser/template index 30b859e38f9..66d6028c7ad 100644 --- a/srcpkgs/sonic-visualiser/template +++ b/srcpkgs/sonic-visualiser/template @@ -3,6 +3,7 @@ pkgname=sonic-visualiser version=4.0 revision=1 build_style=gnu-configure +build_helper=qmake hostmakedepends="pkg-config capnproto-devel" makedepends="capnproto-devel jack-devel libfishsound-devel libid3tag-devel liblo-devel liblrdf-devel libmad-devel liboggz-devel libsamplerate-devel @@ -22,6 +23,7 @@ esac if [ "$CROSS_BUILD" ]; then hostmakedepends+=" qt5-qmake qt5-svg-devel" + configure_args+=" ac_cv_prog_QMAKE=${XBPS_WRAPPERDIR}/qmake" fi post_extract() { @@ -32,38 +34,6 @@ post_extract() { test-svcore-data-fileio.pro \ test-svcore-data-model.pro \ test-svcore-system.pro - - # It’s a mixed build-style: gnu-configure calls qmake: - # create the cross-qt.conf file from the qmake build-style - # and make qmake use it - cat > "${wrksrc}/qt.conf" <<_EOF -[Paths] -Sysroot=${XBPS_CROSS_BASE} -Prefix=${XBPS_CROSS_BASE}/usr -ArchData=${XBPS_CROSS_BASE}/usr/lib/qt5 -Data=${XBPS_CROSS_BASE}/usr/share/qt5 -Documentation=${XBPS_CROSS_BASE}/usr/share/doc/qt5 -Headers=${XBPS_CROSS_BASE}/usr/include/qt5 -Libraries=${XBPS_CROSS_BASE}/usr/lib -LibraryExecutables=/usr/lib/qt5/libexec -Binaries=/usr/lib/qt5/bin -Tests=${XBPS_CROSS_BASE}/usr/tests -Plugins=/usr/lib/qt5/plugins -Imports=${XBPS_CROSS_BASE}/usr/lib/qt5/imports -Qml2Imports=${XBPS_CROSS_BASE}/usr/lib/qt5/qml -Translations=${XBPS_CROSS_BASE}/usr/share/qt5/translations -Settings=${XBPS_CROSS_BASE}/etc/xdg -Examples=${XBPS_CROSS_BASE}/usr/share/qt5/examples -HostPrefix=/usr -HostData=/usr/lib/qt5 -HostBinaries=/usr/lib/qt5/bin -HostLibraries=/usr/lib -Spec=linux-g++ -TargetSpec=linux-g++ -_EOF - - sed -i -e "s;\(\$QMAKE -r\) \(sonic-visualiser.pro\);\1 -qtconf ${wrksrc}/qt.conf \2;" \ - configure fi case "$XBPS_TARGET_MACHINE" in