void-packages/srcpkgs/zynaddsubfx/template

57 lines
1.9 KiB
Bash

# Template file for 'zynaddsubfx'
pkgname=zynaddsubfx
version=3.0.5
revision=3
build_style=cmake
build_helper=qemu
configure_args="-DDefaultOutput=jack -DDefaultInput=jack -DGuiModule=fltk"
hostmakedepends="doxygen fltk pkg-config"
makedepends="fltk-devel fftw-devel liblo-devel libXpm-devel mxml-devel
jack-devel portaudio-devel"
short_desc="Open Source software synthesizer"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2.0-or-later"
homepage="http://zynaddsubfx.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
checksum=7447322268114a1e0ac5f281ac37a09a78e761a7be61999caf79100049789f63
replaces="zynaddsubfx-data>=0"
case "$XBPS_TARGET_MACHINE" in
armv5*) configure_args+=" -DSUPPORT_NEON=NO";;
esac
post_patch() {
# 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
vsed -i -e 's;gcc ;${CC} ;' \
-e 's;.fltk-config --cflags.;& ${CFLAGS};' \
-e 's;.fltk-config --ldflags.;& ${LDFLAGS};' \
ExternalPrograms/Spliter/Makefile \
ExternalPrograms/Controller/Makefile
}
post_build() {
# Build external program
make ${makejobs} -C ExternalPrograms/Spliter
make ${makejobs} -C ExternalPrograms/Controller
}
post_install() {
# Install external programs
vbin ${wrksrc}/ExternalPrograms/Spliter/spliter
vdoc ${wrksrc}/ExternalPrograms/Spliter/readme.txt SPLITER.txt
vbin ${wrksrc}/ExternalPrograms/Controller/controller
}