diff options
Diffstat (limited to 'media-libs/ladspa-sdk')
-rw-r--r-- | media-libs/ladspa-sdk/Manifest | 3 | ||||
-rw-r--r-- | media-libs/ladspa-sdk/files/ladspa-sdk-1.15-properbuild.patch | 118 | ||||
-rw-r--r-- | media-libs/ladspa-sdk/ladspa-sdk-1.15-r1.ebuild | 64 |
3 files changed, 185 insertions, 0 deletions
diff --git a/media-libs/ladspa-sdk/Manifest b/media-libs/ladspa-sdk/Manifest index 47c26b4d7c81..3b35672de4a9 100644 --- a/media-libs/ladspa-sdk/Manifest +++ b/media-libs/ladspa-sdk/Manifest @@ -2,6 +2,9 @@ AUX ladspa-sdk-1.13-asneeded.patch 624 BLAKE2B 2bd011abd4f414075a05e8993aa2b5f69 AUX ladspa-sdk-1.13-fbsd.patch 440 BLAKE2B 687df7bcd5ea20d7f8827e8639177c47731e58f958874ecc8d6d9e1d137f96e1388352d8c2600c5b2d7652ce657b304bf606d784a381d933ae5758a32debeed2 SHA512 e2649dff971e5c3bae9070b34f53de3a768df8960fe4a93536d0571ada85e892ac7ad55b32b3794d49b5082c7e0d19f6ca22b8613679501d15089e06baf9b5eb AUX ladspa-sdk-1.13-no-LD.patch 730 BLAKE2B be0edb600bc1e8834b10d55ec04294c40681900edd87564b36d6f1a3354f8b8f6899e3516d3137c16cf5c431118d79e2c4668045c6183bf99dcfb5eb83a106f7 SHA512 215aa1ce1338532e6a8f4ab90b29bd823030f6544d66a9954e476d4b9d5d8f9304b8dd39e386aa2e93565970878bb3174537b7315dcde9bc4eeba9ceb1cc01c8 AUX ladspa-sdk-1.13-properbuild.patch 3020 BLAKE2B 4fc412986b9912ec0bee326b111f558b806811f12d430fe39b84a8751529afc96534c78c2e753aca8ba089074aa4e38c0c201237c63020c8cd2d3d5c2a6aac17 SHA512 6e86f309f8029d0de50cc505d7924965bc00d89489d689a7babab55f447ef43fbdf26807bc6f206e331c367a2bb1e5c75867268ac601991e3b7edbb9bf8046b7 +AUX ladspa-sdk-1.15-properbuild.patch 3933 BLAKE2B bbddaddd99c24db14306443b82106c17a096aee2ec684b717c8fccb76dd028e62f0ac8a575777450a0037cc154ea6e1515a6e732dd9822ddff39980afeb0c154 SHA512 bc276c02b9f23643616372477d5b2e9d186977ae1f3aef3a984162d46c362df06dd6e0b8a3156f1eb7e37dc66cbb4db8768cebcd0879ba6b36ab0245db2dbb9b DIST ladspa_sdk_1.13.tgz 70540 BLAKE2B cfc5dce5b02107f361cfff3881173d04ea0ff5856cb7e9fb0cf5e23ca62c7f61b8b3b1573b95f67d82eb039cda874a3ba66856b6408e5e6785823c9d53c8cd2e SHA512 a1dab807fda58e08869d3f519be5fa91c394690eb13006fbe7f20b332548e4676b32b01273f5695bf36c8da72190c07618662a76d50f991b3f05068ac2b346ef +DIST ladspa_sdk_1.15.tgz 71179 BLAKE2B 7a201fd968433241fda190874d51b835f425c8f35270dc8fac9acf4e9e1546fa20d48f85e894b9eb263dd5d84c2b407481d168e18256dfe2cdd026fe0c805a65 SHA512 a521622e23d988284244003e4ccfc3b42f6ddc7944cb00e7949b87e09d7f39a0cbb64b6d8b5a5af0a5ccf7179f88815416a88f02d3912957167e54b74accfc65 EBUILD ladspa-sdk-1.13-r2.ebuild 1460 BLAKE2B 0eac9f6bd5fe38bd2ce092507e2863a6cd5f43fbdf257e1a45ffa7cc97dd4c3bcca7209d7b5088ca705dd24d4692429f7484228ae0f624fcbc5a5d2accf8cf37 SHA512 ca8e4ab35681effb3a63d4592270de401899d1322f093c6d3102ae7ce64b19094b9e4c50653c94f40c395034731e3b60721ea09ef96a8b5d05a9882068d8b08f +EBUILD ladspa-sdk-1.15-r1.ebuild 1219 BLAKE2B 0750dec0857a7caa820edf1b12d90fb931478dce7aed446cbe13863d0630d753d6c1cbc9b5f5648aa10fb5917dc0b15d8728823ed974c856132b92b0462ebde9 SHA512 186fbc14b7fb2e57eded688b751e58af2aecbdb505b7819df363840bf817910d9c8076daf5e3c12d9c6c9ac2dad05044c99034bdc86e19405a673f32b516ab06 MISC metadata.xml 255 BLAKE2B 7a492321189530430d5c71d5598f8a99b548e020d8ace46bb200f1f18abb3a59c4d0dff84c8dc1f78297137c25684d42386d793b84a02e2363fab4d6dcedd4fa SHA512 9e74b875aa129f5b8108121402291772fde4ac18a157dc60f7b3e19c318ee54cd1be54e283a68bc61562f2dc3f5b338b161028d673ff7baa267192ff3b7e8dc8 diff --git a/media-libs/ladspa-sdk/files/ladspa-sdk-1.15-properbuild.patch b/media-libs/ladspa-sdk/files/ladspa-sdk-1.15-properbuild.patch new file mode 100644 index 000000000000..709ec7c8456a --- /dev/null +++ b/media-libs/ladspa-sdk/files/ladspa-sdk-1.15-properbuild.patch @@ -0,0 +1,118 @@ +diff --git a/src/Makefile b/src/Makefile +index c339524..2166624 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -13,12 +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 -O2 -fPIC \ +- -DDEFAULT_LADSPA_PATH=$(INSTALL_PLUGINS_DIR) +-BINFLAGS = -fPIE -pie +-CXXFLAGS = $(CFLAGS) ++DYNAMIC_LD_LIBS = -ldl ++LIBRARIES = $(DYNAMIC_LD_LIBS) -lm + PLUGINS = ../plugins/amp.so \ + ../plugins/delay.so \ + ../plugins/filter.so \ +@@ -28,34 +28,25 @@ PROGRAMS = ../bin/analyseplugin \ + ../bin/applyplugin \ + ../bin/listplugins + CC = cc +-CPP = c++ ++CXX = c++ ++MKDIR_P = mkdirhier + + ############################################################################### + # + # RULES TO BUILD PLUGINS FROM C OR C++ CODE + # + ++../plugins/filter.so: plugins/filter.c ladspa.h gcc_exports.map ++ $(CC) $(CFLAGS) $(INCLUDES) -fPIC -o plugins/filter.o -c plugins/filter.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o ../plugins/filter.so plugins/filter.o -nostartfiles -shared -lm ++ + ../plugins/%.so: plugins/%.c ladspa.h gcc_exports.map +- $(CC) $(CFLAGS) -o plugins/$*.o -c plugins/$*.c +- $(CC) -o ../plugins/$*.so \ +- plugins/$*.o \ +- -shared \ +- $(CFLAGS) \ +- -fvisibility=hidden \ +- -fvisibility-inlines-hidden \ +- -s \ +- -Wl,--version-script=gcc_exports.map ++ $(CC) $(CFLAGS) $(INCLUDES) -fPIC -o plugins/$*.o -c plugins/$*.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o ../plugins/$*.so plugins/$*.o -nostartfiles -shared + + ../plugins/%.so: plugins/%.cpp ladspa.h gcc_exports.map +- $(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp +- $(CPP) -o ../plugins/$*.so \ +- plugins/$*.o \ +- -shared \ +- $(CXXFLAGS) \ +- -fvisibility=hidden \ +- -fvisibility-inlines-hidden \ +- -s \ +- -Wl,--version-script=gcc_exports.map ++ $(CXX) $(CXXFLAGS) $(INCLUDES) -fPIC -o plugins/$*.o -c plugins/$*.cpp ++ $(CXX) $(LDFLAGS) -o ../plugins/$*.so plugins/$*.o -shared + + ############################################################################### + # +@@ -66,7 +57,7 @@ test: /tmp/test.wav ../snd/noise.wav always + @echo --------------------------------------------- + @echo First listen to the white noise input signal: + @echo --------------------------------------------- +- -sndfile-play ../snd/noise.wav ++ @echo -sndfile-play ../snd/noise.wav + @echo ------------------------- + @echo Compare to plugin output. + @echo ------------------------- +@@ -75,12 +66,12 @@ test: /tmp/test.wav ../snd/noise.wav always + @echo Test complete. + + install: targets +- -mkdir -p $(INSTALL_PLUGINS_DIR) +- -mkdir -p $(INSTALL_INCLUDE_DIR) +- -mkdir -p $(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 +@@ -106,19 +97,19 @@ targets: $(PLUGINS) $(PROGRAMS) + # + + ../bin/applyplugin: applyplugin.o load.o default.o +- $(CC) $(CFLAGS) $(BINFLAGS) \ ++ $(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) \ + -o ../bin/applyplugin \ + applyplugin.o load.o default.o \ + $(LIBRARIES) + + ../bin/analyseplugin: analyseplugin.o load.o default.o +- $(CC) $(CFLAGS) $(BINFLAGS) \ ++ $(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) \ + -o ../bin/analyseplugin \ + analyseplugin.o load.o default.o \ + $(LIBRARIES) + + ../bin/listplugins: listplugins.o search.o +- $(CC) $(CFLAGS) $(BINFLAGS) \ ++ $(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) \ + -o ../bin/listplugins \ + listplugins.o search.o \ + $(LIBRARIES) diff --git a/media-libs/ladspa-sdk/ladspa-sdk-1.15-r1.ebuild b/media-libs/ladspa-sdk/ladspa-sdk-1.15-r1.ebuild new file mode 100644 index 000000000000..2f9df4df576c --- /dev/null +++ b/media-libs/ladspa-sdk/ladspa-sdk-1.15-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" +IUSE="" + +RDEPEND="" +DEPEND=">=sys-apps/sed-4" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}/${P}-properbuild.patch" +) + +HTML_DOCS="doc/*.html" + +src_prepare() { + default + + 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 + + # Needed for apps like rezound + dodir /etc/env.d + echo "LADSPA_PATH=${EPREFIX}/usr/$(get_libdir)/ladspa" > "${ED}/etc/env.d/60ladspa" +} |