mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 22:53:51 +02:00
qsynth: fix cross compilation
This commit is contained in:
parent
e504f43c3c
commit
4f541464fa
1 changed files with 16 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'qsynth'
|
# Template file for 'qsynth'
|
||||||
pkgname=qsynth
|
pkgname=qsynth
|
||||||
version=0.4.4
|
version=0.4.4
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config qt5-qmake qt5-tools"
|
hostmakedepends="pkg-config qt5-qmake qt5-tools"
|
||||||
makedepends="qt5-x11extras-devel jack-devel fluidsynth-devel"
|
makedepends="qt5-x11extras-devel jack-devel fluidsynth-devel"
|
||||||
|
@ -13,4 +13,18 @@ homepage="http://qsynth.sourceforge.net"
|
||||||
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
|
||||||
checksum=0ef914447b1f3a3ecd9c38101f06fc9c67e1d8367202a3f7a494f5d167b40e62
|
checksum=0ef914447b1f3a3ecd9c38101f06fc9c67e1d8367202a3f7a494f5d167b40e62
|
||||||
|
|
||||||
nocross="https://build.voidlinux.eu/builders/aarch64-musl_builder/builds/2580"
|
if [ -n "${CROSS_BUILD}" ]; then
|
||||||
|
hostmakedepends+=" qt5-x11extras-devel qt5-host-tools"
|
||||||
|
fi
|
||||||
|
|
||||||
|
post_configure() {
|
||||||
|
# make qmake use the right compiler when cross compiling, flags are recognized
|
||||||
|
sed -i -e "s/\(export QMAKE = .\+\)/\1 QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX/" Makefile
|
||||||
|
}
|
||||||
|
|
||||||
|
pre_install() {
|
||||||
|
# revert previous changes else installation aborts with
|
||||||
|
# “Could not find qmake configuration file default.”
|
||||||
|
sed -i -e "s/\(export QMAKE = .\+\) QMAKE_CC.\+/\1/" Makefile
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue