aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-03-01 03:12:40 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-03-01 03:12:40 +0000
commit76eece044aa82f4c8193c1424da1ed73b231e01b (patch)
treeff826b82f3e08da501bd0481ce07c5b89d8347d2 /community
parent2fdd33f3eb99b9e8503b37e5557d01f019c463de (diff)
downloadaports-76eece044aa82f4c8193c1424da1ed73b231e01b.tar.bz2
aports-76eece044aa82f4c8193c1424da1ed73b231e01b.tar.xz
community/ladspa: move from testing
Diffstat (limited to 'community')
-rw-r--r--community/ladspa/APKBUILD45
-rw-r--r--community/ladspa/fallback-ladspa-path.patch27
-rw-r--r--community/ladspa/fix-memleak-in-plugin-scanning.patch11
3 files changed, 83 insertions, 0 deletions
diff --git a/community/ladspa/APKBUILD b/community/ladspa/APKBUILD
new file mode 100644
index 0000000000..bc0d2981fd
--- /dev/null
+++ b/community/ladspa/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=ladspa
+pkgver=1.13
+pkgrel=1
+pkgdesc="Linux Audio Developer's Simple Plug-in API, examples and tools"
+url="http://www.ladspa.org/"
+arch="all"
+options="!check" # Currently fails on armhf and aarch64.
+license="LGPL-2.0"
+depends=""
+makedepends=""
+install=""
+subpackages="$pkgname-dev"
+source="https://github.com/OpenMandrivaAssociation/ladspa/raw/master/ladspa_sdk_1.13.tgz
+ fallback-ladspa-path.patch
+ fix-memleak-in-plugin-scanning.patch
+ "
+builddir="$srcdir/ladspa_sdk/src"
+
+prepare() {
+ default_prepare
+ sed -i 's/mkdirhier/mkdir -p/' makefile
+}
+
+build() {
+ cd "$builddir"
+ make targets
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make INSTALL_PLUGINS_DIR="$pkgdir/usr/lib/ladspa/" \
+ INSTALL_INCLUDE_DIR="$pkgdir/usr/include/" \
+ INSTALL_BINARY_DIR="$pkgdir/usr/bin/" install
+}
+
+sha512sums="a1dab807fda58e08869d3f519be5fa91c394690eb13006fbe7f20b332548e4676b32b01273f5695bf36c8da72190c07618662a76d50f991b3f05068ac2b346ef ladspa_sdk_1.13.tgz
+00891ac5d1e3ca17cf7d99e7d894b50f9a7df8eea80cd791593cf637bf9f4f7e658d0124c69aa32bb90a14150737a38cb48552c7991f3f2b6674b3634440504a fallback-ladspa-path.patch
+1a96b24a47c2c82f7c2f66e2ee711f0ecbed9b03260562b72ced1bd4c8f0e518d15fc7c15951b95b1999e3dae1723b855fd3431a9795279f8a88ad68900e48e7 fix-memleak-in-plugin-scanning.patch"
diff --git a/community/ladspa/fallback-ladspa-path.patch b/community/ladspa/fallback-ladspa-path.patch
new file mode 100644
index 0000000000..a0a3c43a36
--- /dev/null
+++ b/community/ladspa/fallback-ladspa-path.patch
@@ -0,0 +1,27 @@
+diff -upr ladspa_sdk.orig/src/load.c ladspa_sdk/src/load.c
+--- ./load.c 2012-09-26 07:37:24.000000000 +0300
++++ ./load.c 2012-09-26 07:38:58.000000000 +0300
+@@ -54,6 +54,8 @@ dlopenLADSPA(const char * pcFilename, in
+ to search. */
+
+ pcLADSPAPath = getenv("LADSPA_PATH");
++ if (! pcLADSPAPath)
++ pcLADSPAPath = "/usr/lib/ladspa";
+
+ if (pcLADSPAPath) {
+
+diff -upr ladspa_sdk.orig/src/search.c ladspa_sdk/src/search.c
+--- ./search.c 2012-09-26 07:37:24.000000000 +0300
++++ ./search.c 2012-09-26 07:38:46.000000000 +0300
+@@ -99,10 +99,7 @@ LADSPAPluginSearch(LADSPAPluginSearchCal
+
+ pcLADSPAPath = getenv("LADSPA_PATH");
+ if (!pcLADSPAPath) {
+- fprintf(stderr,
+- "Warning: You do not have a LADSPA_PATH "
+- "environment variable set.\n");
+- return;
++ pcLADSPAPath = "/usr/lib/ladspa";
+ }
+
+ pcStart = pcLADSPAPath;
diff --git a/community/ladspa/fix-memleak-in-plugin-scanning.patch b/community/ladspa/fix-memleak-in-plugin-scanning.patch
new file mode 100644
index 0000000000..bc8ef7c4b3
--- /dev/null
+++ b/community/ladspa/fix-memleak-in-plugin-scanning.patch
@@ -0,0 +1,11 @@
+--- ./search.c.orig 2008-11-07 00:38:18.000000000 +0100
++++ ./search.c 2008-11-07 00:50:51.000000000 +0100
+@@ -83,6 +83,8 @@
+ dlclose(pcFilename);
+ free(pcFilename);
+ }
++ } else {
++ free(pcFilename);
+ }
+ }
+ }