diff options
Diffstat (limited to 'media-plugins/cmt-plugins/files')
7 files changed, 257 insertions, 0 deletions
diff --git a/media-plugins/cmt-plugins/files/cmt-plugins-1.16-darwin.patch b/media-plugins/cmt-plugins/files/cmt-plugins-1.16-darwin.patch new file mode 100644 index 000000000000..f4352bfdcb91 --- /dev/null +++ b/media-plugins/cmt-plugins/files/cmt-plugins-1.16-darwin.patch @@ -0,0 +1,12 @@ +diff -u src-org/makefile src/makefile +--- src-org/makefile Thu Oct 28 19:22:56 2004 ++++ src/makefile Thu Oct 28 19:28:16 2004 +@@ -68,7 +68,7 @@ + targets: $(PLUGIN_LIB) + + $(PLUGIN_LIB): $(PLUGIN_OBJECTS) +- $(CXX) -shared \ ++ $(CXX) -dynamiclib -ldl \ + -o $(PLUGIN_LIB) \ + $(PLUGIN_OBJECTS) + diff --git a/media-plugins/cmt-plugins/files/cmt-plugins-1.16-mallocstdlib.patch b/media-plugins/cmt-plugins/files/cmt-plugins-1.16-mallocstdlib.patch new file mode 100644 index 000000000000..f4e7663282c6 --- /dev/null +++ b/media-plugins/cmt-plugins/files/cmt-plugins-1.16-mallocstdlib.patch @@ -0,0 +1,75 @@ +Index: cmt/src/analogue.cpp +=================================================================== +--- cmt.orig/src/analogue.cpp ++++ cmt/src/analogue.cpp +@@ -24,7 +24,6 @@ + + /*****************************************************************************/ + +-#include <malloc.h> + #include <math.h> + #include <stdlib.h> + #include "cmt.h" +Index: cmt/src/canyondelay.cpp +=================================================================== +--- cmt.orig/src/canyondelay.cpp ++++ cmt/src/canyondelay.cpp +@@ -25,7 +25,7 @@ + /*****************************************************************************/ + + +-#include <malloc.h> ++#include <stdlib.h> + #include <math.h> + #include "cmt.h" + +Index: cmt/src/lofi.cpp +=================================================================== +--- cmt.orig/src/lofi.cpp ++++ cmt/src/lofi.cpp +@@ -24,7 +24,6 @@ + + /*****************************************************************************/ + +-#include <malloc.h> + #include <math.h> + #include <stdlib.h> + #include "cmt.h" +Index: cmt/src/phasemod.cpp +=================================================================== +--- cmt.orig/src/phasemod.cpp ++++ cmt/src/phasemod.cpp +@@ -24,7 +24,6 @@ + + /*****************************************************************************/ + +-#include <malloc.h> + #include <math.h> + #include <stdlib.h> + #include "cmt.h" +Index: cmt/src/syndrum.cpp +=================================================================== +--- cmt.orig/src/syndrum.cpp ++++ cmt/src/syndrum.cpp +@@ -24,7 +24,7 @@ + + /*****************************************************************************/ + +-#include <malloc.h> ++#include <stdlib.h> + #include <math.h> + #include "cmt.h" + +Index: cmt/src/vcf303.cpp +=================================================================== +--- cmt.orig/src/vcf303.cpp ++++ cmt/src/vcf303.cpp +@@ -26,7 +26,7 @@ + /*****************************************************************************/ + + +-#include <malloc.h> ++#include <stdlib.h> + #include <math.h> + #include "cmt.h" + diff --git a/media-plugins/cmt-plugins/files/cmt-plugins-1.16-respect-ldflags.patch b/media-plugins/cmt-plugins/files/cmt-plugins-1.16-respect-ldflags.patch new file mode 100644 index 000000000000..e851c2a781ed --- /dev/null +++ b/media-plugins/cmt-plugins/files/cmt-plugins-1.16-respect-ldflags.patch @@ -0,0 +1,14 @@ +https://bugs.gentoo.org/show_bug.cgi?id=334711 + +--- cmt/src/makefile.old 2010-09-13 16:43:26.000000000 +0100 ++++ cmt/src/makefile 2010-09-13 16:45:08.000000000 +0100 +@@ -66,7 +66,8 @@ + targets: $(PLUGIN_LIB) + + $(PLUGIN_LIB): $(PLUGIN_OBJECTS) +- $(CXX) -shared \ ++ $(CXX) $(LDFLAGS) \ ++ -shared \ + -o $(PLUGIN_LIB) \ + $(PLUGIN_OBJECTS) + diff --git a/media-plugins/cmt-plugins/files/cmt-plugins-1.16-sa.patch b/media-plugins/cmt-plugins/files/cmt-plugins-1.16-sa.patch new file mode 100644 index 000000000000..161c06d27eed --- /dev/null +++ b/media-plugins/cmt-plugins/files/cmt-plugins-1.16-sa.patch @@ -0,0 +1,18 @@ +Fix strict aliasing warnings: reeverb/Components/allpass.h:36:2: warning: +dereferencing type-punned pointer will break strict-aliasing rules + +https://bugs.gentoo.org/show_bug.cgi?id=307563 + +Index: cmt/src/freeverb/Components/denormals.h +=================================================================== +--- cmt.orig/src/freeverb/Components/denormals.h ++++ cmt/src/freeverb/Components/denormals.h +@@ -8,7 +8,7 @@ + #ifndef _denormals_
+ #define _denormals_
+
+-#define undenormalise(sample) if(((*(unsigned int*)&sample)&0x7f800000)==0) sample=0.0f
++#define undenormalise(sample) if((((unsigned int)sample)&0x7f800000)==0) sample=0.0f
+
+ #endif//_denormals_
+
diff --git a/media-plugins/cmt-plugins/files/cmt-plugins-1.17-darwin.patch b/media-plugins/cmt-plugins/files/cmt-plugins-1.17-darwin.patch new file mode 100644 index 000000000000..ab2733373f01 --- /dev/null +++ b/media-plugins/cmt-plugins/files/cmt-plugins-1.17-darwin.patch @@ -0,0 +1,13 @@ +diff --git a/src/Makefile b/src/Makefile +index ec6a524..700ff75 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -67,7 +67,7 @@ targets: $(PLUGIN_LIB) + + $(PLUGIN_LIB): $(PLUGIN_OBJECTS) gcc_exports.map + $(CXX) $(LDFLAGS) \ +- -shared \ ++ -dynamiclib -ldl \ + $(CFLAGS) \ + -fvisibility=hidden \ + -fvisibility-inlines-hidden \ diff --git a/media-plugins/cmt-plugins/files/cmt-plugins-1.17-makefile.patch b/media-plugins/cmt-plugins/files/cmt-plugins-1.17-makefile.patch new file mode 100644 index 000000000000..ca76e859b5f7 --- /dev/null +++ b/media-plugins/cmt-plugins/files/cmt-plugins-1.17-makefile.patch @@ -0,0 +1,34 @@ +diff --git a/src/Makefile b/src/Makefile +index 159dd46..5c2c0f4 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -11,8 +11,6 @@ INSTALL_PLUGINS_DIR = /usr/lib/ladspa/ + # GENERAL + # + +-CFLAGS = $(INCLUDES) -Wall -Werror -O2 -fPIC +-CXXFLAGS = $(CFLAGS) + PLUGIN_LIB = ../plugins/cmt.so + + ############################################################################### +@@ -63,14 +61,18 @@ PLUGIN_OBJECTS = \ + + plugin: $(PLUGIN_LIB) + ++%.o: %.cpp ++ $(CXX) $(INCLUDES) $(CFLAGS) -c -o $*.o $*.cpp ++ ++ + targets: $(PLUGIN_LIB) + + $(PLUGIN_LIB): $(PLUGIN_OBJECTS) gcc_exports.map +- $(CXX) -shared \ ++ $(CXX) $(LDFLAGS) \ ++ -shared \ + $(CFLAGS) \ + -fvisibility=hidden \ + -fvisibility-inlines-hidden \ +- -s \ + -Wl,--version-script=gcc_exports.map \ + -o $(PLUGIN_LIB) \ + $(PLUGIN_OBJECTS) diff --git a/media-plugins/cmt-plugins/files/cmt.rdf b/media-plugins/cmt-plugins/files/cmt.rdf new file mode 100644 index 000000000000..c63fd9249a1b --- /dev/null +++ b/media-plugins/cmt-plugins/files/cmt.rdf @@ -0,0 +1,91 @@ +<?xml version='1.0' encoding='ISO-8859-1'?> +<!DOCTYPE rdf:RDF [ + <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'> + <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'> + <!ENTITY dc 'http://purl.org/dc/elements/1.1/'> + <!ENTITY ladspa 'http://ladspa.org/ontology#'> +]> +<rdf:RDF xmlns:rdf="&rdf;" + xmlns:rdfs="&rdfs;" + xmlns:dc="&dc;" + xmlns:ladspa="&ladspa;"> + + <!-- New classes needed by CMT --> + <rdfs:Class rdf:about="&ladspa;AmbisonicPlugin" ladspa:hasLabel="Ambisonic"> + <rdfs:subClassOf rdf:resource="&ladspa;UtilityPlugin" /> + </rdfs:Class> + + <ladspa:AmbisonicPlugin rdf:about="&ladspa;1092"/> + <ladspa:AmbisonicPlugin rdf:about="&ladspa;1091"/> + <ladspa:AmbisonicPlugin rdf:about="&ladspa;1090"/> + <ladspa:AmbisonicPlugin rdf:about="&ladspa;1093"/> + <ladspa:AmbisonicPlugin rdf:about="&ladspa;1087"/> + <ladspa:AmbisonicPlugin rdf:about="&ladspa;1094"/> + <ladspa:AmbisonicPlugin rdf:about="&ladspa;1089"/> + <ladspa:AmbisonicPlugin rdf:about="&ladspa;1088"/> + + <ladspa:AmplifierPlugin rdf:about="&ladspa;1067"/> + <ladspa:AmplifierPlugin rdf:about="&ladspa;1068"/> + <ladspa:ModulatorPlugin rdf:about="&ladspa;1070"/> + + <ladspa:DistortionPlugin rdf:about="&ladspa;1846"/> + <ladspa:DistortionPlugin rdf:about="&ladspa;1227"/> + <ladspa:WaveshaperPlugin rdf:about="&ladspa;1097"/> + + <ladspa:DelayPlugin rdf:about="&ladspa;1225"/> + <ladspa:DelayPlugin rdf:about="&ladspa;1053"/> + <ladspa:DelayPlugin rdf:about="&ladspa;1054"/> + <ladspa:DelayPlugin rdf:about="&ladspa;1055"/> + <ladspa:DelayPlugin rdf:about="&ladspa;1056"/> + <ladspa:DelayPlugin rdf:about="&ladspa;1057"/> + <ladspa:DelayPlugin rdf:about="&ladspa;1058"/> + <ladspa:DelayPlugin rdf:about="&ladspa;1059"/> + <ladspa:DelayPlugin rdf:about="&ladspa;1060"/> + <ladspa:DelayPlugin rdf:about="&ladspa;1061"/> + <ladspa:DelayPlugin rdf:about="&ladspa;1062"/> + + <ladspa:UtilityPlugin rdf:about="&ladspa;1080"/> + <ladspa:UtilityPlugin rdf:about="&ladspa;1081"/> + <ladspa:UtilityPlugin rdf:about="&ladspa;1078"/> + <ladspa:UtilityPlugin rdf:about="&ladspa;1079"/> + <ladspa:UtilityPlugin rdf:about="&ladspa;1098"/> + <ladspa:UtilityPlugin rdf:about="&ladspa;1099"/> + <ladspa:UtilityPlugin rdf:about="&ladspa;1849"/> + <ladspa:UtilityPlugin rdf:about="&ladspa;1071"/> + <ladspa:UtilityPlugin rdf:about="&ladspa;1083"/> + <ladspa:UtilityPlugin rdf:about="&ladspa;1084"/> + <ladspa:UtilityPlugin rdf:about="&ladspa;1085"/> + <ladspa:UtilityPlugin rdf:about="&ladspa;1086"/> + <ladspa:UtilityPlugin rdf:about="&ladspa;1082"/> + + <ladspa:ReverbPlugin rdf:about="&ladspa;1123"/> + + <ladspa:GeneratorPlugin rdf:about="&ladspa;1221"/> + <ladspa:GeneratorPlugin rdf:about="&ladspa;1096"/> + <ladspa:GeneratorPlugin rdf:about="&ladspa;1069"/> + <ladspa:GeneratorPlugin rdf:about="&ladspa;1222"/> + <ladspa:GeneratorPlugin rdf:about="&ladspa;1226"/> + <ladspa:GeneratorPlugin rdf:about="&ladspa;1841"/> + <ladspa:GeneratorPlugin rdf:about="&ladspa;1844"/> + <ladspa:GeneratorPlugin rdf:about="&ladspa;1843"/> + <ladspa:GeneratorPlugin rdf:about="&ladspa;1063"/> + <ladspa:GeneratorPlugin rdf:about="&ladspa;1064"/> + <ladspa:GeneratorPlugin rdf:about="&ladspa;1065"/> + <ladspa:GeneratorPlugin rdf:about="&ladspa;1066"/> + <ladspa:GeneratorPlugin rdf:about="&ladspa;1223"/> + + <ladspa:GatePlugin rdf:about="&ladspa;1845"/> + <ladspa:LimiterPlugin rdf:about="&ladspa;1848"/> + <ladspa:LimiterPlugin rdf:about="&ladspa;1842"/> + <ladspa:LimiterPlugin rdf:about="&ladspa;1076"/> + <ladspa:LimiterPlugin rdf:about="&ladspa;1077"/> + <ladspa:CompressorPlugin rdf:about="&ladspa;1072"/> + <ladspa:CompressorPlugin rdf:about="&ladspa;1073"/> + <ladspa:ExpanderPlugin rdf:about="&ladspa;1074"/> + <ladspa:ExpanderPlugin rdf:about="&ladspa;1075"/> + + <ladspa:LowpassPlugin rdf:about="&ladspa;1051"/> + <ladspa:LowpassPlugin rdf:about="&ladspa;1224"/> + <ladspa:HighpassPlugin rdf:about="&ladspa;1052"/> + +</rdf:RDF> |