summaryrefslogtreecommitdiff
path: root/skip/zynaddsubfx
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
parentf13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (diff)
added lf and iptables
Diffstat (limited to 'skip/zynaddsubfx')
-rw-r--r--skip/zynaddsubfx/cmake-build-type-none.patch47
-rw-r--r--skip/zynaddsubfx/fix-bogus-strstr.patch16
-rw-r--r--skip/zynaddsubfx/fix-memset.patch11
-rw-r--r--skip/zynaddsubfx/zynaddsubfx.xibuild51
4 files changed, 125 insertions, 0 deletions
diff --git a/skip/zynaddsubfx/cmake-build-type-none.patch b/skip/zynaddsubfx/cmake-build-type-none.patch
new file mode 100644
index 0000000..74e64a7
--- /dev/null
+++ b/skip/zynaddsubfx/cmake-build-type-none.patch
@@ -0,0 +1,47 @@
+Index: src/CMakeLists.txt
+===================================================================
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -185,7 +185,6 @@ option (BuildForDebug "Include gdb debug
+ option (IncludeWhatYouUse "Check for useless includes" OFF)
+ mark_as_advanced(IncludeWhatYouUse)
+
+-set(CMAKE_BUILD_TYPE "Release")
+
+
+ set (BuildOptions_x86_64AMD
+@@ -321,34 +320,6 @@ if(NOT AVOID_ASM)
+ add_definitions(-DASM_F2I_YES)
+ endif()
+
+-if (BuildForDebug)
+- set (CMAKE_BUILD_TYPE "Debug")
+- set (CMAKE_CXX_FLAGS_DEBUG ${BuildOptionsDebug})
+- message (STATUS "Building for ${CMAKE_BUILD_TYPE}, flags: ${CMAKE_CXX_FLAGS_DEBUG}")
+-else (BuildForDebug)
+- set (CMAKE_BUILD_TYPE "Release")
+-
+- set (CMAKE_CXX_FLAGS_RELEASE ${BuildOptionsBasic})
+-
+- if (BuildForAMD_X86_64)
+- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${BuildOptions_x86_64AMD}")
+- endif (BuildForAMD_X86_64)
+-
+- if (BuildForCore2_X86_64)
+- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${BuildOptions_X86_64Core2}")
+- endif (BuildForCore2_X86_64)
+-
+- if (SUPPORT_SSE)
+- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${BuildOptions_SSE}")
+- endif (SUPPORT_SSE)
+-
+- if (SUPPORT_NEON AND NOT NoNeonPlease)
+- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${BuildOptions_NEON}")
+- endif (SUPPORT_NEON AND NOT NoNeonPlease)
+-
+- message (STATUS "Building for ${CMAKE_BUILD_TYPE}, flags: ${CMAKE_CXX_FLAGS_RELEASE}")
+-endif (BuildForDebug)
+-
+ if(NOT (${CMAKE_SYSTEM_NAME} STREQUAL "Windows"))
+ add_definitions(-fPIC)
+ endif()
diff --git a/skip/zynaddsubfx/fix-bogus-strstr.patch b/skip/zynaddsubfx/fix-bogus-strstr.patch
new file mode 100644
index 0000000..8588045
--- /dev/null
+++ b/skip/zynaddsubfx/fix-bogus-strstr.patch
@@ -0,0 +1,16 @@
+Source: @pullmoll
+Upstream: no
+Reason: This piece of code is ill-conceived and cannot work. Remove it.
+
+--- a/rtosc/src/dispatch.c 2019-03-10 17:16:45.000000000 +0100
++++ b/rtosc/src/dispatch.c 2020-03-29 09:02:42.916119722 +0200
+@@ -289,8 +289,7 @@
+ return false;
+ } else if(type == 4) {
+ //extract substring
+- const char *sub=NULL;
+- return strstr(a,sub);
++ return false;
+ } else if(type == RTOSC_MATCH_OPTIONS || type == 6) {
+ return false;
+ } else if(type == RTOSC_MATCH_ENUMERATED) {
diff --git a/skip/zynaddsubfx/fix-memset.patch b/skip/zynaddsubfx/fix-memset.patch
new file mode 100644
index 0000000..1439804
--- /dev/null
+++ b/skip/zynaddsubfx/fix-memset.patch
@@ -0,0 +1,11 @@
+--- a/src/globals.h 2015-06-28 00:25:59.000000000 +0200
++++ b/src/globals.h 2015-10-03 15:34:18.914712672 +0200
+@@ -25,6 +25,8 @@
+ #ifndef GLOBALS_H
+ #define GLOBALS_H
+
++#include <string.h> /* memset(3) */
++
+ #if defined(__clang__)
+ #define REALTIME __attribute__((annotate("realtime")))
+ #define NONREALTIME __attribute__((annotate("nonrealtime")))
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
+}