zynaddsubfx: fix cross

This commit is contained in:
John 2019-03-23 18:36:21 +01:00 committed by John Zimmermann
parent 0ef9dd9368
commit 90fa931205

View file

@ -14,7 +14,28 @@ license="GPL-2"
homepage="http://zynaddsubfx.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
checksum=3d48d1e49ee13a2a4bd6eed4b2729e8d2eb005706f3cf14887c11bd04157a4a2
nocross="Builds lv2-ttl-generator for the target, not host and fails to run it"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qemu-user-static"
fi
pre_configure() {
# The x86 assembler check is broken for cross compiling
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*);;
*) vsed -e '/-DASM_F2I_YES/d' -i src/CMakeLists.txt;;
esac
vsed -e 's/COMMAND.*lv2-ttl-generator/COMMAND lv2-ttl-generator/g' -i \
src/Plugin/AlienWah/CMakeLists.txt \
src/Plugin/Chorus/CMakeLists.txt \
src/Plugin/Distortion/CMakeLists.txt \
src/Plugin/DynamicFilter/CMakeLists.txt \
src/Plugin/Echo/CMakeLists.txt \
src/Plugin/Phaser/CMakeLists.txt \
src/Plugin/Reverb/CMakeLists.txt \
src/Plugin/ZynAddSubFX/CMakeLists.txt
}
post_build() {
local ext