sonic-visualiser: user qmake build-helper

This commit is contained in:
newbluemoon 2019-11-03 07:55:56 +01:00 committed by Helmut Pozimski
parent 41148719a9
commit 0af40c306c
1 changed files with 2 additions and 32 deletions

View File

@ -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
# Its 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