From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- media-libs/ladspa-cmt/Manifest | 10 +++ media-libs/ladspa-cmt/files/cmt.rdf | 91 ++++++++++++++++++++++ .../ladspa-cmt/files/ladspa-cmt-1.16-darwin.patch | 12 +++ .../files/ladspa-cmt-1.16-mallocstdlib.patch | 75 ++++++++++++++++++ .../files/ladspa-cmt-1.16-respect-ldflags.patch | 14 ++++ .../ladspa-cmt/files/ladspa-cmt-1.16-sa.patch | 18 +++++ media-libs/ladspa-cmt/ladspa-cmt-1.16-r4.ebuild | 57 ++++++++++++++ media-libs/ladspa-cmt/metadata.xml | 8 ++ 8 files changed, 285 insertions(+) create mode 100644 media-libs/ladspa-cmt/Manifest create mode 100644 media-libs/ladspa-cmt/files/cmt.rdf create mode 100644 media-libs/ladspa-cmt/files/ladspa-cmt-1.16-darwin.patch create mode 100644 media-libs/ladspa-cmt/files/ladspa-cmt-1.16-mallocstdlib.patch create mode 100644 media-libs/ladspa-cmt/files/ladspa-cmt-1.16-respect-ldflags.patch create mode 100644 media-libs/ladspa-cmt/files/ladspa-cmt-1.16-sa.patch create mode 100644 media-libs/ladspa-cmt/ladspa-cmt-1.16-r4.ebuild create mode 100644 media-libs/ladspa-cmt/metadata.xml (limited to 'media-libs/ladspa-cmt') diff --git a/media-libs/ladspa-cmt/Manifest b/media-libs/ladspa-cmt/Manifest new file mode 100644 index 000000000000..07f157304dae --- /dev/null +++ b/media-libs/ladspa-cmt/Manifest @@ -0,0 +1,10 @@ +AUX cmt.rdf 3943 SHA256 23a756c95e87c545b8d32855d3d863e5e160254fd3b19fa2c5b61aeb2a631f26 SHA512 265bb9ed2cff657a2698dc1182bb3079a6d3f70a6db86aa20cfc992b5cf54a341a65f9af278630671c3657dc730de85a0b95caae785893412ad5659a195b820c WHIRLPOOL e6eed7d9412260dcfcbcf372999e0e08b60e4a5150038221465ff778aa9db7ba2281a44a1db4b8292bc36efa2a1db6c2f76c727551d2072e856f06f35c0a1571 +AUX ladspa-cmt-1.16-darwin.patch 316 SHA256 c9550afb4d8512532e3d338331cd9e7eedd74a8464fc06565eca8ca7d89111e2 SHA512 1a73be4184681fff4f6827fa47508d8177c1fccb492b66ad89638a5c4725fcc828545b225db6b38eb6971aefe7eef92edee4f6b3a7013365eb60010935db1497 WHIRLPOOL cbe2c3c5d81369d6426d42e772ba27599f1521669283282f955c23ae3bb0b276e12f88d8b3ffb7315e627d3872074976ce2530124068dbc266ebbff2ba096d88 +AUX ladspa-cmt-1.16-mallocstdlib.patch 1992 SHA256 7801e2a05b05a9687622c05e8de1f49441a51b18f38315b99d53bb43c3f46d44 SHA512 6b099ad314f4c2c3048a3b8e171d36bdf8dbca277989270666779881e02d1f9ba5b4027e5b1676c2092eca19221cd4f3d46789b4dcf7bdee0ab57e5e51d769e7 WHIRLPOOL 6149d45428111c27a49da3f2b5f18e910da6097d6dfc4f1de664bd868cf0f6e3c3c0e03f9e76a9d63e13cd7d2cda168918e89802fa38d6c6cb063055d52bd8ab +AUX ladspa-cmt-1.16-respect-ldflags.patch 369 SHA256 6ca9ab88a189dbd6b60bc72801e3dabfffd14c9abf5837560c3fe3d876734e79 SHA512 3f4cfdab23de0b2fa2c841c4699a2f975b526575261f29756cdb3e9515dd7629e34bf847d027a305e32a9489e414dd59efd55e18a368f3ffc928ce86f80a5add WHIRLPOOL c07ada09278a064b8ea44e012fa147416cbb7537639a5b56bcfb781862cb93624c0adddd49473d50ccb597bd190e25a2b9ef5e50b7f419b5616aaff83b5f65b9 +AUX ladspa-cmt-1.16-sa.patch 666 SHA256 77e9b19bcd4ea40438995b7553edbaf051300406572bde059c6b0660b84301ee SHA512 162791653741af546a64cabd74f8737f965c9e8799a1d80ae5d2b292b200b1710702b901aaf759457b7737530f2b03824cd135150329f60a2aa56011f17fd244 WHIRLPOOL 081f07517e4b7e989b9d9946ada68d847268460462f036260f982e21303ace59ea4fcdb5a7d71060c4ed929e1fbc0381d486aece0e88c53b4229530617e44ed9 +DIST cmt_src_1.16.tgz 63909 SHA256 512a1d7e698b9e0e7c692202c29f4bd70846d52241ec254e1a324abaef405635 SHA512 be4aaa064183b6121b4ca8d7d2535cb9a3bcb557e3a2f22b45ec9775b0e296f70a9a7edf697b78095d6ef1564bb5459bb742649082ac724d1774c0790379af21 WHIRLPOOL 7daeaf8dfc30c1acb6b9387fe96ac55121f136c355c7cb0d48d402ac8c9ea2fcabf6f3d436ed009c65d9cafcedab2ed705204ef34e7f4a24dbcdca0054cbc0d8 +EBUILD ladspa-cmt-1.16-r4.ebuild 1379 SHA256 e922b44a9752e58b7a620db005fb70106130d4773749298baf8ce34fa6ad5fb5 SHA512 d2b8c3699b6771811ebcbb83a709792c013ac1a3a161f30385f532dc9c68b23d19811981b0907b634c2ae816e4641a07d1f1175a3ae5d3ce36a963771402aec3 WHIRLPOOL c01eb45f54aa895003764f0b86b6b9592a1f434eeede49391fb9e3c29638fdf05c3dd1d5c8e7807c0c56da7f6cadec6642dce79231b9e1b82823cefb3fc48dd0 +MISC ChangeLog 2623 SHA256 a87ad1aa8f1d619c79025012db5498ad4fd9997387ff7fce0474e665869ac0ef SHA512 432f546b86a363bedb7f919ab6e0ce8e92e6abde0ddaa58a9425c650ee57fd753730e44c7a1ff41048c11592c8065789a5f0000813e94c4a0baa9b31acdc74a3 WHIRLPOOL c84b6ab93266fe22eed64402b8b0502972291d243dc339f06b595af5e104cc4e3b5e7dbd9b607d118b73362d7cd98ec92fc69e3f36863a6187cb74371e46552a +MISC ChangeLog-2015 7907 SHA256 017037b4002d918ee6a4448d1c3fe69fad360f790a9e0a58ba5eb655ab02da36 SHA512 add59c73aa4861e8d7abeb7e4421d52ab6b79e08ffd964e4f1ba353fa1d91f598fa44acc9373927be408253fc587aaf7fa0a931f319650af2f707b72ce8d665e WHIRLPOOL c89d323836e534ee9acfb0ff6a9121b9822c6b45d0cabf27b2c047cff8175d4b0243a6f5a5c7820c613b17b8c35135f8749ed555766e55b936e718531456c431 +MISC metadata.xml 255 SHA256 fc6dd027d0011f9f42d437ea0687857760a11bf2137f8822ec8692186d0bcbe3 SHA512 9e74b875aa129f5b8108121402291772fde4ac18a157dc60f7b3e19c318ee54cd1be54e283a68bc61562f2dc3f5b338b161028d673ff7baa267192ff3b7e8dc8 WHIRLPOOL de03966b13986c67a61f862755281e80740260a9031e5e34cbee88a3053e66f705df0f36499b154744ff447c94e19a28b8649535e08819216569e78eb4ce9a38 diff --git a/media-libs/ladspa-cmt/files/cmt.rdf b/media-libs/ladspa-cmt/files/cmt.rdf new file mode 100644 index 000000000000..c63fd9249a1b --- /dev/null +++ b/media-libs/ladspa-cmt/files/cmt.rdf @@ -0,0 +1,91 @@ + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/media-libs/ladspa-cmt/files/ladspa-cmt-1.16-darwin.patch b/media-libs/ladspa-cmt/files/ladspa-cmt-1.16-darwin.patch new file mode 100644 index 000000000000..f4352bfdcb91 --- /dev/null +++ b/media-libs/ladspa-cmt/files/ladspa-cmt-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-libs/ladspa-cmt/files/ladspa-cmt-1.16-mallocstdlib.patch b/media-libs/ladspa-cmt/files/ladspa-cmt-1.16-mallocstdlib.patch new file mode 100644 index 000000000000..f4e7663282c6 --- /dev/null +++ b/media-libs/ladspa-cmt/files/ladspa-cmt-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 + #include + #include + #include "cmt.h" +Index: cmt/src/canyondelay.cpp +=================================================================== +--- cmt.orig/src/canyondelay.cpp ++++ cmt/src/canyondelay.cpp +@@ -25,7 +25,7 @@ + /*****************************************************************************/ + + +-#include ++#include + #include + #include "cmt.h" + +Index: cmt/src/lofi.cpp +=================================================================== +--- cmt.orig/src/lofi.cpp ++++ cmt/src/lofi.cpp +@@ -24,7 +24,6 @@ + + /*****************************************************************************/ + +-#include + #include + #include + #include "cmt.h" +Index: cmt/src/phasemod.cpp +=================================================================== +--- cmt.orig/src/phasemod.cpp ++++ cmt/src/phasemod.cpp +@@ -24,7 +24,6 @@ + + /*****************************************************************************/ + +-#include + #include + #include + #include "cmt.h" +Index: cmt/src/syndrum.cpp +=================================================================== +--- cmt.orig/src/syndrum.cpp ++++ cmt/src/syndrum.cpp +@@ -24,7 +24,7 @@ + + /*****************************************************************************/ + +-#include ++#include + #include + #include "cmt.h" + +Index: cmt/src/vcf303.cpp +=================================================================== +--- cmt.orig/src/vcf303.cpp ++++ cmt/src/vcf303.cpp +@@ -26,7 +26,7 @@ + /*****************************************************************************/ + + +-#include ++#include + #include + #include "cmt.h" + diff --git a/media-libs/ladspa-cmt/files/ladspa-cmt-1.16-respect-ldflags.patch b/media-libs/ladspa-cmt/files/ladspa-cmt-1.16-respect-ldflags.patch new file mode 100644 index 000000000000..e851c2a781ed --- /dev/null +++ b/media-libs/ladspa-cmt/files/ladspa-cmt-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-libs/ladspa-cmt/files/ladspa-cmt-1.16-sa.patch b/media-libs/ladspa-cmt/files/ladspa-cmt-1.16-sa.patch new file mode 100644 index 000000000000..161c06d27eed --- /dev/null +++ b/media-libs/ladspa-cmt/files/ladspa-cmt-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-libs/ladspa-cmt/ladspa-cmt-1.16-r4.ebuild b/media-libs/ladspa-cmt/ladspa-cmt-1.16-r4.ebuild new file mode 100644 index 000000000000..774139588054 --- /dev/null +++ b/media-libs/ladspa-cmt/ladspa-cmt-1.16-r4.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib toolchain-funcs multilib-minimal + +S="${WORKDIR}/cmt/src" +MY_P="cmt_src_${PV}" + +DESCRIPTION="CMT (computer music toolkit) LADSPA library plugins" +HOMEPAGE="http://www.ladspa.org/" +SRC_URI="http://www.ladspa.org/download/${MY_P}.tgz" + +KEYWORDS="alpha amd64 ~arm ~arm64 hppa ppc ppc64 sparc x86 ~x86-fbsd" +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="" + +DEPEND=">=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}]" +RDEPEND="" + +src_prepare() { + sed -i \ + -e "/^CFLAGS/ s/-O3/${CFLAGS}/" \ + -e 's|/usr/local/include||g' \ + -e 's|/usr/local/lib||g' makefile \ + || die "sed makefile failed" + sed -i -e "s/^CXXFLAGS*/CXXFLAGS = ${CXXFLAGS} \$(INCLUDES) -Wall -fPIC\n#/" \ + "${S}/makefile" || die "sed makefile failed (CXXFLAGS)" + + cd "${S}" || die + epatch "${FILESDIR}/${P}-mallocstdlib.patch" + epatch "${FILESDIR}/${P}-respect-ldflags.patch" + epatch "${FILESDIR}/${P}-sa.patch" + use elibc_Darwin && epatch "${FILESDIR}/${P}-darwin.patch" + multilib_copy_sources +} + +multilib_src_compile() { + tc-export CXX + emake PLUGIN_LIB="cmt.so" +} + +multilib_src_install() { + insopts -m755 + insinto /usr/$(get_libdir)/ladspa + doins *.so +} + +multilib_src_install_all() { + insinto /usr/share/ladspa/rdf/ + doins "${FILESDIR}/cmt.rdf" + + dodoc ../README + dohtml ../doc/* +} diff --git a/media-libs/ladspa-cmt/metadata.xml b/media-libs/ladspa-cmt/metadata.xml new file mode 100644 index 000000000000..f79bb67acbd9 --- /dev/null +++ b/media-libs/ladspa-cmt/metadata.xml @@ -0,0 +1,8 @@ + + + + + proaudio@gentoo.org + Gentoo ProAudio Project + + -- cgit v1.2.3