61 lines
1.9 KiB
Bash
61 lines
1.9 KiB
Bash
# Template file for 'zynaddsubfx'
|
|
pkgname=zynaddsubfx
|
|
version=3.0.5
|
|
revision=2
|
|
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"
|
|
depends="zynaddsubfx-data>=0"
|
|
short_desc="Open Source software synthesizer"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="GPL-2"
|
|
homepage="http://zynaddsubfx.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
|
|
checksum=7447322268114a1e0ac5f281ac37a09a78e761a7be61999caf79100049789f63
|
|
|
|
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
|
|
for ext in Spliter Controller; do
|
|
cd ${wrksrc}/ExternalPrograms/${ext}
|
|
sed -i Makefile \
|
|
-e 's;`fltk-config --cflags`;& ${CFLAGS};' \
|
|
-e 's;`fltk-config --ldflags`;& ${LDFLAGS};' \
|
|
-e 's;gcc ;${CC} ;'
|
|
# Build external program
|
|
make ${makejobs}
|
|
done
|
|
}
|
|
post_install() {
|
|
# Install external programs
|
|
vbin ${wrksrc}/ExternalPrograms/Spliter/spliter
|
|
vdoc ${wrksrc}/ExternalPrograms/Spliter/readme.txt SPLITER.txt
|
|
vbin ${wrksrc}/ExternalPrograms/Controller/controller
|
|
}
|
|
zynaddsubfx-data_package() {
|
|
short_desc+=" - data"
|
|
archs=noarch
|
|
pkg_install() {
|
|
vmove usr/share/${sourcepkg}
|
|
}
|
|
}
|