65 lines
1.9 KiB
Bash
65 lines
1.9 KiB
Bash
# Template file for 'zynaddsubfx'
|
|
pkgname=zynaddsubfx
|
|
version=3.0.4
|
|
revision=1
|
|
build_style=cmake
|
|
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=3d48d1e49ee13a2a4bd6eed4b2729e8d2eb005706f3cf14887c11bd04157a4a2
|
|
|
|
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
|
|
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}
|
|
}
|
|
}
|