diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/ladspa-sdk |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/ladspa-sdk')
-rw-r--r-- | media-libs/ladspa-sdk/Manifest | 9 | ||||
-rw-r--r-- | media-libs/ladspa-sdk/files/ladspa-sdk-1.13-asneeded.patch | 15 | ||||
-rw-r--r-- | media-libs/ladspa-sdk/files/ladspa-sdk-1.13-fbsd.patch | 16 | ||||
-rw-r--r-- | media-libs/ladspa-sdk/files/ladspa-sdk-1.13-no-LD.patch | 16 | ||||
-rw-r--r-- | media-libs/ladspa-sdk/files/ladspa-sdk-1.13-properbuild.patch | 92 | ||||
-rw-r--r-- | media-libs/ladspa-sdk/ladspa-sdk-1.13-r2.ebuild | 70 | ||||
-rw-r--r-- | media-libs/ladspa-sdk/metadata.xml | 8 |
7 files changed, 226 insertions, 0 deletions
diff --git a/media-libs/ladspa-sdk/Manifest b/media-libs/ladspa-sdk/Manifest new file mode 100644 index 000000000000..b81c02905721 --- /dev/null +++ b/media-libs/ladspa-sdk/Manifest @@ -0,0 +1,9 @@ +AUX ladspa-sdk-1.13-asneeded.patch 624 SHA256 0fc78bd4035485559147e9468427a27dcfa879cebcebfec92c7d006e9e95afd0 SHA512 87308b9ce4b391ef42b40581c4a377fd2dddd3d1c31785fa287e5eefaab21696b3b3e9dff50932d5f933309c68bcc6f9ddec07f9ba0672fbeade8479ba1407d0 WHIRLPOOL e672b73114600e28e17fed78366a12cc13ba096b7438787c2eab6fbbbc4312bf5f2b726b2d8d5145a0e43b171dd840cf7fd10f0c864d208a7b8180f96b9dfa61 +AUX ladspa-sdk-1.13-fbsd.patch 440 SHA256 97db76bebb56866d006a0667bb3e67de81b2da1933e4c4d479163a992a488ef8 SHA512 e2649dff971e5c3bae9070b34f53de3a768df8960fe4a93536d0571ada85e892ac7ad55b32b3794d49b5082c7e0d19f6ca22b8613679501d15089e06baf9b5eb WHIRLPOOL 53e31bcd5dcf14ce2362914b914f7b1090ddd392b46103eaa022451585f2b3b9cefb9e306f87ea928b0b007b7773ef714f52ded79d18ac0027f0f93aa85203b0 +AUX ladspa-sdk-1.13-no-LD.patch 730 SHA256 6dfdeefac760dcea33d5d4ef9d0a3ec93b6962b65bf96914a0a8d5e60759fe1a SHA512 215aa1ce1338532e6a8f4ab90b29bd823030f6544d66a9954e476d4b9d5d8f9304b8dd39e386aa2e93565970878bb3174537b7315dcde9bc4eeba9ceb1cc01c8 WHIRLPOOL 1a3bc96ecec217814e9fe879b54cd0149775c7dd33c569d8ba4e10f3795644aecf9dd6ba12303cb94597c0c04b6cb96cce7e1b6c3b3613b26ee5d58b8bce91d0 +AUX ladspa-sdk-1.13-properbuild.patch 3020 SHA256 a5bc7ec6643d47a8d57e4e27a5934949c55d9b1f8d2c98a60eca99ea558f24ef SHA512 6e86f309f8029d0de50cc505d7924965bc00d89489d689a7babab55f447ef43fbdf26807bc6f206e331c367a2bb1e5c75867268ac601991e3b7edbb9bf8046b7 WHIRLPOOL beae13480f20d3aa4da18f96ba71441bedc80ca1049a2c7c4a5a94341f076fa5c4b3ddbf5a9f14c10a98e5ac049eda8366814cc16d4bb86f84999caaa13075dc +DIST ladspa_sdk_1.13.tgz 70540 SHA256 b5ed3f4f253a0f6c1b7a1f4b8cf62376ca9f51d999650dd822650c43852d306b SHA512 a1dab807fda58e08869d3f519be5fa91c394690eb13006fbe7f20b332548e4676b32b01273f5695bf36c8da72190c07618662a76d50f991b3f05068ac2b346ef WHIRLPOOL e92da3bf4b6fbf3ac9b3d25aa60170d88488943bc389765ec1abe31dd3b6893642016a89621d2db7d6acbe51bc2c964d66e31b3e9629c13f3432685dacab382a +EBUILD ladspa-sdk-1.13-r2.ebuild 1703 SHA256 bd31f1d32436d933c1073e75ff1798837e392d2bcc7739cac2ffbd2f71c91ff3 SHA512 ead0b72b4391004762a04593932bde11939fb509196e1a075fbb851894763534e5a8cdea363112854014cb68bb3652fddf2ea38819f2b33956d957dfc675e77d WHIRLPOOL 4ba5a09b0b3de547710a2a2e95dbe6bb4a3bcea38dbd53e0d106a185259dd91c5eee59070c28a13811ee77b106c79981125230c4acbee2d005d87cb937a51f76 +MISC ChangeLog 2662 SHA256 2bd3c1ac04714c615c35f5ab3f0569753df3adcf8f4db387f821332abf4c7eeb SHA512 270bb15b0e8ec14ffc323c55be0773cf5472b580e9d8fde4b873e864ee87f85e54da2c6137b7bed1aa81ef8e4e308ddb8a101138e25c913f3132d2b41a09caf0 WHIRLPOOL 777ad79da134a68fa83b7e3dc089dbaafa46d1943b5a3e135161d49bc094e12ce474932e42b599bcccb01831508def94e74b763c4a6b13900415fb0c86b79ac6 +MISC ChangeLog-2015 8645 SHA256 dc465cc31aeb748f8be1f0a4457aa7eca3da7e86d51df3866eabcafc93405104 SHA512 c9aa9ecb25f9174d34a197adc2e4aacc4ecbe0156a7fbe1b0131ec06ef61ada340650c3b993b47a420b1af473907d72e0c725bb62a5292ea782a1082d0e2084e WHIRLPOOL cab16bbcfa32268c4cb9aa01d10fc8f8f8be1a71bb8e289f453d0474cd115eea77eebe00413bc828986be539322d45f5b6f1a1b9a3d3f721908f77a792ee8342 +MISC metadata.xml 255 SHA256 fc6dd027d0011f9f42d437ea0687857760a11bf2137f8822ec8692186d0bcbe3 SHA512 9e74b875aa129f5b8108121402291772fde4ac18a157dc60f7b3e19c318ee54cd1be54e283a68bc61562f2dc3f5b338b161028d673ff7baa267192ff3b7e8dc8 WHIRLPOOL de03966b13986c67a61f862755281e80740260a9031e5e34cbee88a3053e66f705df0f36499b154744ff447c94e19a28b8649535e08819216569e78eb4ce9a38 diff --git a/media-libs/ladspa-sdk/files/ladspa-sdk-1.13-asneeded.patch b/media-libs/ladspa-sdk/files/ladspa-sdk-1.13-asneeded.patch new file mode 100644 index 000000000000..19e3811b0707 --- /dev/null +++ b/media-libs/ladspa-sdk/files/ladspa-sdk-1.13-asneeded.patch @@ -0,0 +1,15 @@ +Index: ladspa_sdk/src/makefile +=================================================================== +--- ladspa_sdk.orig/src/makefile ++++ ladspa_sdk/src/makefile +@@ -36,6 +36,10 @@ MKDIR_P = mkdirhier + # RULES TO BUILD PLUGINS FROM C OR C++ CODE + # + ++../plugins/filter.so: plugins/filter.c ladspa.h ++ $(CC) $(CFLAGS) $(INCLUDES) -fPIC -o plugins/filter.o -c plugins/filter.c ++ $(LD) $(RAW_LDFLAGS) -o ../plugins/filter.so plugins/filter.o -shared -lm ++ + ../plugins/%.so: plugins/%.c ladspa.h + $(CC) $(CFLAGS) $(INCLUDES) -fPIC -o plugins/$*.o -c plugins/$*.c + $(LD) $(RAW_LDFLAGS) -o ../plugins/$*.so plugins/$*.o -shared diff --git a/media-libs/ladspa-sdk/files/ladspa-sdk-1.13-fbsd.patch b/media-libs/ladspa-sdk/files/ladspa-sdk-1.13-fbsd.patch new file mode 100644 index 000000000000..b5614b2377de --- /dev/null +++ b/media-libs/ladspa-sdk/files/ladspa-sdk-1.13-fbsd.patch @@ -0,0 +1,16 @@ +Index: ladspa_sdk/src/applyplugin.c +=================================================================== +--- ladspa_sdk.orig/src/applyplugin.c ++++ ladspa_sdk/src/applyplugin.c +@@ -6,7 +6,11 @@ + /*****************************************************************************/ + + #include <dlfcn.h> ++#ifdef __FreeBSD__ ++#include <machine/endian.h> ++#else + #include <endian.h> ++#endif + #include <errno.h> + #include <math.h> + #include <stdlib.h> diff --git a/media-libs/ladspa-sdk/files/ladspa-sdk-1.13-no-LD.patch b/media-libs/ladspa-sdk/files/ladspa-sdk-1.13-no-LD.patch new file mode 100644 index 000000000000..acc53abace75 --- /dev/null +++ b/media-libs/ladspa-sdk/files/ladspa-sdk-1.13-no-LD.patch @@ -0,0 +1,16 @@ +--- a/src/makefile ++++ b/src/makefile +@@ -38,11 +38,11 @@ + + ../plugins/filter.so: plugins/filter.c ladspa.h + $(CC) $(CFLAGS) $(INCLUDES) -fPIC -o plugins/filter.o -c plugins/filter.c +- $(LD) $(RAW_LDFLAGS) -o ../plugins/filter.so plugins/filter.o -shared -lm ++ $(CC) $(CFLAGS) $(LDFLAGS) -o ../plugins/filter.so plugins/filter.o -nostartfiles -shared -lm + + ../plugins/%.so: plugins/%.c ladspa.h + $(CC) $(CFLAGS) $(INCLUDES) -fPIC -o plugins/$*.o -c plugins/$*.c +- $(LD) $(RAW_LDFLAGS) -o ../plugins/$*.so plugins/$*.o -shared ++ $(CC) $(CFLAGS) $(LDFLAGS) -o ../plugins/$*.so plugins/$*.o -nostartfiles -shared + + ../plugins/%.so: plugins/%.cpp ladspa.h + $(CXX) $(CXXFLAGS) $(INCLUDES) -fPIC -o plugins/$*.o -c plugins/$*.cpp diff --git a/media-libs/ladspa-sdk/files/ladspa-sdk-1.13-properbuild.patch b/media-libs/ladspa-sdk/files/ladspa-sdk-1.13-properbuild.patch new file mode 100644 index 000000000000..c30a5084478a --- /dev/null +++ b/media-libs/ladspa-sdk/files/ladspa-sdk-1.13-properbuild.patch @@ -0,0 +1,92 @@ +Index: ladspa_sdk/src/makefile +=================================================================== +--- ladspa_sdk.orig/src/makefile ++++ ladspa_sdk/src/makefile +@@ -13,10 +13,12 @@ INSTALL_BINARY_DIR = /usr/bin/ + # GENERAL + # + ++CFLAGS = -Wall -Werror -O3 ++CXXFLAGS = -Wall -Werror -O3 ++ + INCLUDES = -I. +-LIBRARIES = -ldl -lm +-CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC +-CXXFLAGS = $(CFLAGS) ++DYNAMIC_LD_LIBS = -ldl ++LIBRARIES = $(DYNAMIC_LD_LIBS) -lm + PLUGINS = ../plugins/amp.so \ + ../plugins/delay.so \ + ../plugins/filter.so \ +@@ -26,7 +28,8 @@ PROGRAMS = ../bin/analyseplugin \ + ../bin/applyplugin \ + ../bin/listplugins + CC = cc +-CPP = c++ ++CXX = c++ ++MKDIR_P = mkdirhier + + ############################################################################### + # +@@ -34,12 +37,12 @@ CPP = c++ + # + + ../plugins/%.so: plugins/%.c ladspa.h +- $(CC) $(CFLAGS) -o plugins/$*.o -c plugins/$*.c +- $(LD) -o ../plugins/$*.so plugins/$*.o -shared ++ $(CC) $(CFLAGS) $(INCLUDES) -fPIC -o plugins/$*.o -c plugins/$*.c ++ $(LD) $(RAW_LDFLAGS) -o ../plugins/$*.so plugins/$*.o -shared + + ../plugins/%.so: plugins/%.cpp ladspa.h +- $(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp +- $(CPP) -o ../plugins/$*.so plugins/$*.o -shared ++ $(CXX) $(CXXFLAGS) $(INCLUDES) -fPIC -o plugins/$*.o -c plugins/$*.cpp ++ $(CXX) $(LDFLAGS) -o ../plugins/$*.so plugins/$*.o -shared + + ############################################################################### + # +@@ -59,12 +62,12 @@ test: /tmp/test.wav ../snd/noise.wav alw + @echo Test complete. + + install: targets +- -mkdirhier $(INSTALL_PLUGINS_DIR) +- -mkdirhier $(INSTALL_INCLUDE_DIR) +- -mkdirhier $(INSTALL_BINARY_DIR) +- cp ../plugins/* $(INSTALL_PLUGINS_DIR) +- cp ladspa.h $(INSTALL_INCLUDE_DIR) +- cp ../bin/* $(INSTALL_BINARY_DIR) ++ -$(MKDIR_P) $(DESTDIR)$(INSTALL_PLUGINS_DIR) ++ -$(MKDIR_P) $(DESTDIR)$(INSTALL_INCLUDE_DIR) ++ -$(MKDIR_P) $(DESTDIR)$(INSTALL_BINARY_DIR) ++ cp ../plugins/* $(DESTDIR)$(INSTALL_PLUGINS_DIR) ++ cp ladspa.h $(DESTDIR)$(INSTALL_INCLUDE_DIR) ++ cp ../bin/* $(DESTDIR)$(INSTALL_BINARY_DIR) + + /tmp/test.wav: targets ../snd/noise.wav + ../bin/listplugins +@@ -90,19 +93,19 @@ targets: $(PLUGINS) $(PROGRAMS) + # + + ../bin/applyplugin: applyplugin.o load.o default.o +- $(CC) $(CFLAGS) $(LIBRARIES) \ ++ $(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) \ + -o ../bin/applyplugin \ +- applyplugin.o load.o default.o ++ applyplugin.o load.o default.o $(LIBRARIES) + + ../bin/analyseplugin: analyseplugin.o load.o default.o +- $(CC) $(CFLAGS) $(LIBRARIES) \ ++ $(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) \ + -o ../bin/analyseplugin \ +- analyseplugin.o load.o default.o ++ analyseplugin.o load.o default.o $(LIBRARIES) + + ../bin/listplugins: listplugins.o search.o +- $(CC) $(CFLAGS) $(LIBRARIES) \ ++ $(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) \ + -o ../bin/listplugins \ +- listplugins.o search.o ++ listplugins.o search.o $(LIBRARIES) + + ############################################################################### + # diff --git a/media-libs/ladspa-sdk/ladspa-sdk-1.13-r2.ebuild b/media-libs/ladspa-sdk/ladspa-sdk-1.13-r2.ebuild new file mode 100644 index 000000000000..cefa883934a2 --- /dev/null +++ b/media-libs/ladspa-sdk/ladspa-sdk-1.13-r2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib toolchain-funcs portability flag-o-matic multilib-minimal + +MY_PN=${PN/-/_} +MY_P=${MY_PN}_${PV} + +DESCRIPTION="The Linux Audio Developer's Simple Plugin API" +HOMEPAGE="http://www.ladspa.org/" +SRC_URI="http://www.ladspa.org/download/${MY_P}.tgz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd" +IUSE="" + +RDEPEND="abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20130224-r2 + !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )" +DEPEND=">=sys-apps/sed-4" + +S="${WORKDIR}/${MY_PN}" + +src_prepare() { + cd "${WORKDIR}/${MY_PN}/src" + epatch "${FILESDIR}"/${P}-properbuild.patch \ + "${FILESDIR}"/${P}-asneeded.patch \ + "${FILESDIR}"/${P}-fbsd.patch \ + "${FILESDIR}"/${P}-no-LD.patch + + sed -i -e 's:-sndfile-play*:@echo Disabled \0:' \ + makefile || die "sed makefile failed (sound playing tests)" + + cd "${S}" + multilib_copy_sources +} + +multilib_src_compile() { + cd src + emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \ + DYNAMIC_LD_LIBS="$(dlopen_lib)" \ + CC="$(tc-getCC)" CXX="$(tc-getCXX)" \ + targets +} + +multilib_src_test() { + cd src + emake test +} + +multilib_src_install() { + cd src + emake INSTALL_PLUGINS_DIR="/usr/$(get_libdir)/ladspa" \ + DESTDIR="${ED}" \ + MKDIR_P="mkdir -p" \ + install +} + +multilib_src_install_all() { + einstalldocs + dohtml doc/*.html + + # Needed for apps like rezound + # emul-linux-soundlibs doesnt seem to install this, so keep it only for the + # default abi. + dodir /etc/env.d + echo "LADSPA_PATH=${EPREFIX}/usr/$(get_libdir)/ladspa" > "${ED}/etc/env.d/60ladspa" +} diff --git a/media-libs/ladspa-sdk/metadata.xml b/media-libs/ladspa-sdk/metadata.xml new file mode 100644 index 000000000000..f79bb67acbd9 --- /dev/null +++ b/media-libs/ladspa-sdk/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>proaudio@gentoo.org</email> + <name>Gentoo ProAudio Project</name> +</maintainer> +</pkgmetadata> |