sonic-visualiser: user qmake build-helper
This commit is contained in:
parent
41148719a9
commit
0af40c306c
|
@ -3,6 +3,7 @@ pkgname=sonic-visualiser
|
||||||
version=4.0
|
version=4.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
build_helper=qmake
|
||||||
hostmakedepends="pkg-config capnproto-devel"
|
hostmakedepends="pkg-config capnproto-devel"
|
||||||
makedepends="capnproto-devel jack-devel libfishsound-devel libid3tag-devel
|
makedepends="capnproto-devel jack-devel libfishsound-devel libid3tag-devel
|
||||||
liblo-devel liblrdf-devel libmad-devel liboggz-devel libsamplerate-devel
|
liblo-devel liblrdf-devel libmad-devel liboggz-devel libsamplerate-devel
|
||||||
|
@ -22,6 +23,7 @@ esac
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" qt5-qmake qt5-svg-devel"
|
hostmakedepends+=" qt5-qmake qt5-svg-devel"
|
||||||
|
configure_args+=" ac_cv_prog_QMAKE=${XBPS_WRAPPERDIR}/qmake"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
|
@ -32,38 +34,6 @@ post_extract() {
|
||||||
test-svcore-data-fileio.pro \
|
test-svcore-data-fileio.pro \
|
||||||
test-svcore-data-model.pro \
|
test-svcore-data-model.pro \
|
||||||
test-svcore-system.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
|
fi
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
|
Loading…
Reference in New Issue