summaryrefslogtreecommitdiff
path: root/skip/zynaddsubfx/zynaddsubfx.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
committerdavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
commitf6332a43c35387c4a2dea1746be5fd092890ae0e (patch)
treed6599f63de04096f3fc21a98e0b3bb39d55a3531 /skip/zynaddsubfx/zynaddsubfx.xibuild
parentf13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (diff)
added lf and iptables
Diffstat (limited to 'skip/zynaddsubfx/zynaddsubfx.xibuild')
-rw-r--r--skip/zynaddsubfx/zynaddsubfx.xibuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/skip/zynaddsubfx/zynaddsubfx.xibuild b/skip/zynaddsubfx/zynaddsubfx.xibuild
new file mode 100644
index 0000000..228806b
--- /dev/null
+++ b/skip/zynaddsubfx/zynaddsubfx.xibuild
@@ -0,0 +1,51 @@
+#!/bin/sh
+
+NAME="zynaddsubfx"
+DESC="Opensource software synthesizer capable of making a countless number of instruments."
+
+MAKEDEPS="cmake jack fltk portaudio mxml sndio bash-completion liblo libxpm"
+DEPS="less "
+
+PKG_VER=3.0.5
+SOURCE="https://downloads.sourceforge.net/project/zynaddsubfx/zynaddsubfx/$PKG_VER/zynaddsubfx-$PKG_VER.tar.bz2"
+ADDITIONAL="
+cmake-build-type-none.patch
+fix-bogus-strstr.patch
+fix-memset.patch
+"
+prepare () {
+ apply_patches
+ sed -e '/-DASM_F2I_YES/d' -i src/CMakeLists.txt
+
+ sed -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
+
+ sed -i -e 's;gcc ;${CC} ;' \
+ -e 's;.fltk-config --cflags.;& ${CFLAGS};' \
+ -e 's;.fltk-config --ldflags.;& ${LDFLAGS};' \
+ ExternalPrograms/Spliter/Makefile \
+ ExternalPrograms/Controller/Makefile
+}
+
+build () {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DDefaultOutput=jack \
+ -DDefaultInput=jack \
+ -DGuiModule=fltk
+ cmake --build build &&
+ make -C ExternalPrograms/Spliter &&
+ make -C ExternalPrograms/Controller
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}