From 4868c21b803c066c85b5ee29653b23e4431e3fec Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 30 Oct 2023 00:12:23 +0100 Subject: [PATCH] Fix macOS builds for a few plugins Signed-off-by: falkTX --- .../caps-lv2/005_fix-macos-build.patch | 1442 +++++++++++++++++ .../package/gxquack/01_fix-macos-build.patch | 18 + .../mod-audio-mixers/02_fix-mac-build.patch | 14 + .../mod-cv-plugins/01_fix-macos-build.patch | 14 + .../mod-pitchshifter/02_fix-macos-build.patch | 19 + plugins/package/setbfree-mod/setbfree-mod.mk | 2 +- plugins/package/setbfree/setbfree.mk | 10 +- .../01_fix-win-mac-build.patch | 8 +- 8 files changed, 1517 insertions(+), 10 deletions(-) create mode 100644 plugins/package/caps-lv2/005_fix-macos-build.patch create mode 100644 plugins/package/gxquack/01_fix-macos-build.patch create mode 100644 plugins/package/mod-audio-mixers/02_fix-mac-build.patch create mode 100644 plugins/package/mod-cv-plugins/01_fix-macos-build.patch create mode 100644 plugins/package/mod-pitchshifter/02_fix-macos-build.patch diff --git a/plugins/package/caps-lv2/005_fix-macos-build.patch b/plugins/package/caps-lv2/005_fix-macos-build.patch new file mode 100644 index 00000000..78bbb6dd --- /dev/null +++ b/plugins/package/caps-lv2/005_fix-macos-build.patch @@ -0,0 +1,1442 @@ +diff --git a/Makefile.single b/Makefile.single +index 5343035..a19dea8 100644 +--- a/Makefile.single ++++ b/Makefile.single +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = __SOURCES__ + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MD $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/dsp/v4f.h b/dsp/v4f.h +index ac3e1cc..6f8a0fa 100644 +--- a/dsp/v4f.h ++++ b/dsp/v4f.h +@@ -88,6 +88,14 @@ v4f_t v4f_map (v4f_t x) + #define v4f_pi ((v4f_t) {M_PI, M_PI, M_PI, M_PI}) + #define v4f_2pi ((v4f_t) {2*M_PI, 2*M_PI, 2*M_PI, 2*M_PI}) + ++#ifdef __APPLE__ ++inline float _cosf(float v) { return __builtin_cosf(v); } ++inline float _sinf(float v) { return __builtin_sinf(v); } ++#else ++#define _cosf __builtin_cosf ++#define _sinf __builtin_sinf ++#endif ++ + template + class V4fArray + { +@@ -150,10 +158,10 @@ class Sin4f + { + v4f_t *y = data(); + v4f_t w = -v4f_pi * f; +- y[0] = v4f_map<__builtin_sinf> (w); +- y[1] = v4f_map<__builtin_sinf> (v4f_2 * w); ++ y[0] = v4f_map<_sinf> (w); ++ y[1] = v4f_map<_sinf> (v4f_2 * w); + /* b in above scalar implementation is y[2] in the flat data */ +- y[2] = v4f_2 * v4f_map<__builtin_cosf> (w); /* b */ ++ y[2] = v4f_2 * v4f_map<_cosf> (w); /* b */ + z = 0; + } + +diff --git a/dsp/v4f_IIR2.h b/dsp/v4f_IIR2.h +index fd7d96b..01536e4 100644 +--- a/dsp/v4f_IIR2.h ++++ b/dsp/v4f_IIR2.h +@@ -47,8 +47,8 @@ class RBJv4 + { + v4f_t w = v4f_2pi * f; + +- sin = v4f_map<__builtin_sinf> (w); +- cos = v4f_map<__builtin_cosf> (w); ++ sin = v4f_map<_sinf> (w); ++ cos = v4f_map<_cosf> (w); + + alpha = sin / (v4f_2 * Q); + } +@@ -551,9 +551,9 @@ class Resonator4fBank + { + v4f_t * a = state + i*Item; + f *= v4f_2pi; +- a[0] = v4f_map<__builtin_sinf> (f); ++ a[0] = v4f_map<_sinf> (f); + a[0] *= gain; +- a[5] = v4f_map<__builtin_cosf> (f); ++ a[5] = v4f_map<_cosf> (f); + set_r (i, r); + } + void set_r (int i, v4f_t r) +diff --git a/make_single_plugins.py b/make_single_plugins.py +index e35b587..ea39da9 100755 +--- a/make_single_plugins.py ++++ b/make_single_plugins.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + + import os, sys, glob + +diff --git a/plugins/mod-caps-AmpVTS.lv2/Makefile b/plugins/mod-caps-AmpVTS.lv2/Makefile +index 4341637..d3d4105 100644 +--- a/plugins/mod-caps-AmpVTS.lv2/Makefile ++++ b/plugins/mod-caps-AmpVTS.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Amp.cc ../../ToneStack.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-AutoFilter.lv2/Makefile b/plugins/mod-caps-AutoFilter.lv2/Makefile +index f76d778..f98e953 100644 +--- a/plugins/mod-caps-AutoFilter.lv2/Makefile ++++ b/plugins/mod-caps-AutoFilter.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../AutoFilter.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-CEO.lv2/Makefile b/plugins/mod-caps-CEO.lv2/Makefile +index 3e578fb..a0dcd05 100644 +--- a/plugins/mod-caps-CEO.lv2/Makefile ++++ b/plugins/mod-caps-CEO.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Click.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-CabinetIII.lv2/Makefile b/plugins/mod-caps-CabinetIII.lv2/Makefile +index 4cae8da..df3de8f 100644 +--- a/plugins/mod-caps-CabinetIII.lv2/Makefile ++++ b/plugins/mod-caps-CabinetIII.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../CabIII.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-CabinetIV.lv2/Makefile b/plugins/mod-caps-CabinetIV.lv2/Makefile +index 696fd63..e49be66 100644 +--- a/plugins/mod-caps-CabinetIV.lv2/Makefile ++++ b/plugins/mod-caps-CabinetIV.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../CabIV.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-ChorusI.lv2/Makefile b/plugins/mod-caps-ChorusI.lv2/Makefile +index ff61ee5..9696efe 100644 +--- a/plugins/mod-caps-ChorusI.lv2/Makefile ++++ b/plugins/mod-caps-ChorusI.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Chorus.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-Click.lv2/Makefile b/plugins/mod-caps-Click.lv2/Makefile +index 09fca5e..72cd847 100644 +--- a/plugins/mod-caps-Click.lv2/Makefile ++++ b/plugins/mod-caps-Click.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Click.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-Compress.lv2/Makefile b/plugins/mod-caps-Compress.lv2/Makefile +index 63d2eb1..e0f4920 100644 +--- a/plugins/mod-caps-Compress.lv2/Makefile ++++ b/plugins/mod-caps-Compress.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Compress.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-CompressX2.lv2/Makefile b/plugins/mod-caps-CompressX2.lv2/Makefile +index ffe80ae..89a52ec 100644 +--- a/plugins/mod-caps-CompressX2.lv2/Makefile ++++ b/plugins/mod-caps-CompressX2.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Compress.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-Eq10.lv2/Makefile b/plugins/mod-caps-Eq10.lv2/Makefile +index a6c8f70..e542688 100644 +--- a/plugins/mod-caps-Eq10.lv2/Makefile ++++ b/plugins/mod-caps-Eq10.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Eq.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-Eq10X2.lv2/Makefile b/plugins/mod-caps-Eq10X2.lv2/Makefile +index bd9a50a..77f22aa 100644 +--- a/plugins/mod-caps-Eq10X2.lv2/Makefile ++++ b/plugins/mod-caps-Eq10X2.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Eq.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-Eq4p.lv2/Makefile b/plugins/mod-caps-Eq4p.lv2/Makefile +index 930ae9b..4f5f3e3 100644 +--- a/plugins/mod-caps-Eq4p.lv2/Makefile ++++ b/plugins/mod-caps-Eq4p.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Eq.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-EqFA4p.lv2/Makefile b/plugins/mod-caps-EqFA4p.lv2/Makefile +index 788c213..38c0535 100644 +--- a/plugins/mod-caps-EqFA4p.lv2/Makefile ++++ b/plugins/mod-caps-EqFA4p.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Eq.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-Fractal.lv2/Makefile b/plugins/mod-caps-Fractal.lv2/Makefile +index 39a00ac..c05391e 100644 +--- a/plugins/mod-caps-Fractal.lv2/Makefile ++++ b/plugins/mod-caps-Fractal.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Fractals.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-Narrower.lv2/Makefile b/plugins/mod-caps-Narrower.lv2/Makefile +index a46e15b..885be07 100644 +--- a/plugins/mod-caps-Narrower.lv2/Makefile ++++ b/plugins/mod-caps-Narrower.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Pan.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-Noisegate.lv2/Makefile b/plugins/mod-caps-Noisegate.lv2/Makefile +index a07c456..a71b3a6 100644 +--- a/plugins/mod-caps-Noisegate.lv2/Makefile ++++ b/plugins/mod-caps-Noisegate.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Noisegate.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-PhaserII.lv2/Makefile b/plugins/mod-caps-PhaserII.lv2/Makefile +index 45c9c64..5131258 100644 +--- a/plugins/mod-caps-PhaserII.lv2/Makefile ++++ b/plugins/mod-caps-PhaserII.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Phaser.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-Plate.lv2/Makefile b/plugins/mod-caps-Plate.lv2/Makefile +index ddfc50e..21fc9ee 100644 +--- a/plugins/mod-caps-Plate.lv2/Makefile ++++ b/plugins/mod-caps-Plate.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Reverb.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-PlateX2.lv2/Makefile b/plugins/mod-caps-PlateX2.lv2/Makefile +index f1d6f71..df2741e 100644 +--- a/plugins/mod-caps-PlateX2.lv2/Makefile ++++ b/plugins/mod-caps-PlateX2.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Reverb.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-Saturate.lv2/Makefile b/plugins/mod-caps-Saturate.lv2/Makefile +index 4491443..42feeed 100644 +--- a/plugins/mod-caps-Saturate.lv2/Makefile ++++ b/plugins/mod-caps-Saturate.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Saturate.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-Scape.lv2/Makefile b/plugins/mod-caps-Scape.lv2/Makefile +index a659302..27e6d56 100644 +--- a/plugins/mod-caps-Scape.lv2/Makefile ++++ b/plugins/mod-caps-Scape.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Scape.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-Sin.lv2/Makefile b/plugins/mod-caps-Sin.lv2/Makefile +index d6e3a8c..800025b 100644 +--- a/plugins/mod-caps-Sin.lv2/Makefile ++++ b/plugins/mod-caps-Sin.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Sin.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-Spice.lv2/Makefile b/plugins/mod-caps-Spice.lv2/Makefile +index 85bdc59..dad9935 100644 +--- a/plugins/mod-caps-Spice.lv2/Makefile ++++ b/plugins/mod-caps-Spice.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Saturate.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-SpiceX2.lv2/Makefile b/plugins/mod-caps-SpiceX2.lv2/Makefile +index 0a67989..7311440 100644 +--- a/plugins/mod-caps-SpiceX2.lv2/Makefile ++++ b/plugins/mod-caps-SpiceX2.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Saturate.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-ToneStack.lv2/Makefile b/plugins/mod-caps-ToneStack.lv2/Makefile +index dfde69f..0c3404a 100644 +--- a/plugins/mod-caps-ToneStack.lv2/Makefile ++++ b/plugins/mod-caps-ToneStack.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../ToneStack.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-White.lv2/Makefile b/plugins/mod-caps-White.lv2/Makefile +index a4634e7..82133de 100644 +--- a/plugins/mod-caps-White.lv2/Makefile ++++ b/plugins/mod-caps-White.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../White.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend +diff --git a/plugins/mod-caps-Wider.lv2/Makefile b/plugins/mod-caps-Wider.lv2/Makefile +index 991f4f6..9e8427c 100644 +--- a/plugins/mod-caps-Wider.lv2/Makefile ++++ b/plugins/mod-caps-Wider.lv2/Makefile +@@ -11,11 +11,16 @@ OPTS = -g -DDEBUG + else + # OPTS = -O2 -Wall -fPIC -DPIC + OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC ++ifneq ($(MACOS),true) + LDFLAGS += -Wl,--strip-all + endif ++endif + + CXXFLAGS += $(OPTS) -I../.. +-LDFLAGS += -shared -Wl,--no-undefined ++LDFLAGS += -shared ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,--no-undefined ++endif + + SOURCES = ../../Pan.cc ../../dsp/polynomials.cc interface.cc + OBJECTS = $(SOURCES:.cc=.o) +@@ -30,7 +35,7 @@ endif + + # targets following ------------------------------------------------------------- + +-all: .depend $(PLUG).so ++all: $(PLUG).so + + $(PLUG).so: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ +@@ -38,7 +43,7 @@ $(PLUG).so: $(OBJECTS) + .cc.s: + $(CXX) $< $(CXXFLAGS) -S + +-.cc.o: .depend ++.cc.o: + $(CXX) $< $(CXXFLAGS) -o $@ -c + + install: all +@@ -51,8 +56,3 @@ uninstall: + + clean: + rm -f $(OBJECTS) $(PLUG).so *.s .depend +- +-.depend: $(SOURCES) +- $(CXX) -MM $(CXXFLAGS) $(SOURCES) > .depend +- +--include .depend diff --git a/plugins/package/gxquack/01_fix-macos-build.patch b/plugins/package/gxquack/01_fix-macos-build.patch new file mode 100644 index 00000000..a80f8c3f --- /dev/null +++ b/plugins/package/gxquack/01_fix-macos-build.patch @@ -0,0 +1,18 @@ +diff --git a/plugin/gx_quack.cpp b/plugin/gx_quack.cpp +index f416239..c68aac9 100644 +--- a/plugin/gx_quack.cpp ++++ b/plugin/gx_quack.cpp +@@ -26,8 +26,13 @@ + + ///////////////////////// MACRO SUPPORT //////////////////////////////// + ++#ifndef __APPLE__ + #define __rt_func __attribute__((section(".rt.text"))) + #define __rt_data __attribute__((section(".rt.data"))) ++#else ++#define __rt_func ++#define __rt_data ++#endif + + ///////////////////////// FAUST SUPPORT //////////////////////////////// + diff --git a/plugins/package/mod-audio-mixers/02_fix-mac-build.patch b/plugins/package/mod-audio-mixers/02_fix-mac-build.patch new file mode 100644 index 00000000..60d46d45 --- /dev/null +++ b/plugins/package/mod-audio-mixers/02_fix-mac-build.patch @@ -0,0 +1,14 @@ +diff --git a/Makefile b/Makefile +index 4afe655..9cd20b5 100644 +--- a/Makefile ++++ b/Makefile +@@ -33,9 +33,6 @@ gen: plugins dpf/utils/lv2_ttl_generator + #@$(CURDIR)/dpf/utils/generate-ttl.sh + cp plugins/$(MIXER_MONO)/lv2-data/* bin/$(MIXER_MONO).lv2/ + cp plugins/$(MIXER_STEREO)/lv2-data/* bin/$(MIXER_STEREO).lv2/ +-ifeq ($(MACOS),true) +- @$(CURDIR)/dpf/utils/generate-vst-bundles.sh +-endif + + dpf/utils/lv2_ttl_generator: + $(MAKE) -C dpf/utils/lv2-ttl-generator diff --git a/plugins/package/mod-cv-plugins/01_fix-macos-build.patch b/plugins/package/mod-cv-plugins/01_fix-macos-build.patch new file mode 100644 index 00000000..f5adc8d8 --- /dev/null +++ b/plugins/package/mod-cv-plugins/01_fix-macos-build.patch @@ -0,0 +1,14 @@ +diff --git a/source/mod-logic-operators/Makefile b/source/mod-logic-operators/Makefile +index 73645f2..21bb552 100644 +--- a/source/mod-logic-operators/Makefile ++++ b/source/mod-logic-operators/Makefile +@@ -25,9 +25,6 @@ ifneq ($(CROSS_COMPILING),true) + gen: plugins dpf/utils/lv2_ttl_generator + #@$(CURDIR)/dpf/utils/generate-ttl.sh + cp -r plugins/logic-operators/lv2-data/* bin/logic-operators.lv2/ +-ifeq ($(MACOS),true) +- @$(CURDIR)/dpf/utils/generate-vst-bundles.sh +-endif + + dpf/utils/lv2_ttl_generator: + $(MAKE) -C dpf/utils/lv2-ttl-generator diff --git a/plugins/package/mod-pitchshifter/02_fix-macos-build.patch b/plugins/package/mod-pitchshifter/02_fix-macos-build.patch new file mode 100644 index 00000000..cbf55f94 --- /dev/null +++ b/plugins/package/mod-pitchshifter/02_fix-macos-build.patch @@ -0,0 +1,19 @@ +diff --git a/Makefile.mk b/Makefile.mk +index edb804b..0e9d6d8 100644 +--- a/Makefile.mk ++++ b/Makefile.mk +@@ -3,8 +3,12 @@ + CXX ?= g++ + + # flags +-CXXFLAGS += -O3 -ffast-math -Wall -fPIC -DPIC $(shell pkg-config --cflags fftw3f) -I. -I../Shared_files +-LDFLAGS += -shared -Wl,-O1 -Wl,--as-needed -Wl,--no-undefined -Wl,--strip-all $(shell pkg-config --libs fftw3f) -larmadillo -lm ++CXXFLAGS += -O3 -ffast-math -Wall -fPIC -DPIC $(shell pkg-config --cflags fftw3f) -I. -I../Shared_files -std=gnu++11 ++LDFLAGS += -shared $(shell pkg-config --libs fftw3f) -larmadillo -lm ++ ++ifneq ($(MACOS),true) ++LDFLAGS += -Wl,-O1,--as-needed,--no-undefined,--strip-all ++endif + + ifneq ($(NOOPT),true) + CXXFLAGS += -mtune=generic -msse -msse2 -mfpmath=sse diff --git a/plugins/package/setbfree-mod/setbfree-mod.mk b/plugins/package/setbfree-mod/setbfree-mod.mk index ece7cfeb..22bbe6ff 100644 --- a/plugins/package/setbfree-mod/setbfree-mod.mk +++ b/plugins/package/setbfree-mod/setbfree-mod.mk @@ -19,8 +19,8 @@ define SETBFREE_MOD_INSTALL_TARGET_CMDS $(SETBFREE_MOD_TARGET_MAKE) install DESTDIR=$(TARGET_DIR) install -d $(TARGET_DIR)/usr/lib/lv2/b_whirl_mod + cp $(TARGET_DIR)/usr/lib/lv2/b_whirl/*.* $(TARGET_DIR)/usr/lib/lv2/b_whirl_mod/ cp -rL $($(PKG)_PKGDIR)/b_whirl_mod/* $(TARGET_DIR)/usr/lib/lv2/b_whirl_mod/ - cp $(TARGET_DIR)/usr/lib/lv2/b_whirl/*.so $(TARGET_DIR)/usr/lib/lv2/b_whirl_mod/ endef $(eval $(generic-package)) diff --git a/plugins/package/setbfree/setbfree.mk b/plugins/package/setbfree/setbfree.mk index 536b5d84..0264426c 100644 --- a/plugins/package/setbfree/setbfree.mk +++ b/plugins/package/setbfree/setbfree.mk @@ -17,14 +17,14 @@ endef define SETBFREE_INSTALL_TARGET_CMDS $(SETBFREE_TARGET_MAKE) install DESTDIR=$(TARGET_DIR) - cp -rL $($(PKG)_PKGDIR)/b_synth/* $(TARGET_DIR)/usr/lib/lv2/b_synth/ + cp -rL $($(PKG)_PKGDIR)/b_synth/* $(TARGET_DIR)/usr/lib/lv2/b_synth/ # b_whirl has been manually splitted into separate bundles - mv $(TARGET_DIR)/usr/lib/lv2/b_whirl/b_whirl.so $(TARGET_DIR)/usr/lib/lv2/b_whirl.so + mv $(TARGET_DIR)/usr/lib/lv2/b_whirl/b_whirl.* $(TARGET_DIR)/usr/lib/lv2/ rm -rf $(TARGET_DIR)/usr/lib/lv2/b_whirl/ - cp -rL $($(PKG)_PKGDIR)/b_whirl $(TARGET_DIR)/usr/lib/lv2/ - cp $(TARGET_DIR)/usr/lib/lv2/b_whirl.so $(TARGET_DIR)/usr/lib/lv2/b_whirl/ - rm $(TARGET_DIR)/usr/lib/lv2/b_whirl.so + cp -rL $($(PKG)_PKGDIR)/b_whirl $(TARGET_DIR)/usr/lib/lv2/ + cp $(TARGET_DIR)/usr/lib/lv2/b_whirl.* $(TARGET_DIR)/usr/lib/lv2/b_whirl/ + rm $(TARGET_DIR)/usr/lib/lv2/b_whirl.* endef $(eval $(generic-package)) diff --git a/plugins/package/sooperlooper-lv2/01_fix-win-mac-build.patch b/plugins/package/sooperlooper-lv2/01_fix-win-mac-build.patch index 18129b38..a2908f9b 100644 --- a/plugins/package/sooperlooper-lv2/01_fix-win-mac-build.patch +++ b/plugins/package/sooperlooper-lv2/01_fix-win-mac-build.patch @@ -27,8 +27,8 @@ index 3bfcf9c..f33a527 100644 #include #include #include -+#ifdef _WIN64 -+#define MAXLONG UINT32_MAX ++#if defined(__APPLE__) || defined(_WIN32) ++#define MAXLONG (sizeof(long)-1U) +#else +#include +#endif @@ -64,8 +64,8 @@ index 6798a04..27ee190 100644 #include #include #include -+#ifdef _WIN64 -+#define MAXLONG UINT32_MAX ++#if defined(__APPLE__) || defined(_WIN32) ++#define MAXLONG (sizeof(long)-1U) +#else +#include +#endif