summaryrefslogtreecommitdiff
path: root/extra/ladspa
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-09-27 00:42:08 -0700
committerroot <root@rshg054.dnsready.net>2012-09-27 00:42:08 -0700
commitbd8faf795abf6d91abdc52bc968829cc2efae4bb (patch)
treec073a5288d3917e9aa98d3762479ad083c5ceafe /extra/ladspa
parent483f8b3ac46ac2d40e8cc2f9c25365741bebc791 (diff)
Thu Sep 27 00:42:07 PDT 2012
Diffstat (limited to 'extra/ladspa')
-rw-r--r--extra/ladspa/PKGBUILD13
-rw-r--r--extra/ladspa/fallback-ladspa-path.patch27
-rw-r--r--extra/ladspa/fix-memleak-in-plugin-scanning.patch11
3 files changed, 46 insertions, 5 deletions
diff --git a/extra/ladspa/PKGBUILD b/extra/ladspa/PKGBUILD
index 3f0fb5aad..4885aaa34 100644
--- a/extra/ladspa/PKGBUILD
+++ b/extra/ladspa/PKGBUILD
@@ -1,22 +1,25 @@
-# $Id: PKGBUILD 137623 2011-09-10 08:28:05Z pierre $
+# $Id: PKGBUILD 167138 2012-09-26 05:02:07Z foutrelis $
# Maintainer: damir <damir@archlinux.org>
pkgname=ladspa
pkgver=1.13
-pkgrel=3
+pkgrel=4
pkgdesc="Linux Audio Developer's Simple Plugin API (LADSPA)"
arch=('i686' 'x86_64')
license=('LGPL')
url="http://www.ladspa.org/"
depends=('gcc-libs')
source=("http://www.ladspa.org/download/${pkgname}_sdk_${pkgver}.tgz"
- 'hardcode-path.patch')
+ 'fix-memleak-in-plugin-scanning.patch'
+ 'fallback-ladspa-path.patch')
md5sums=('671be3e1021d0722cadc7fb27054628e'
- '27743258232d828575d66940e6de2858')
+ '478c400e04c9db9cfd6ee1198beec9c5'
+ '8a0ad7d442662af160381e7302c6ed4c')
build() {
cd "${srcdir}/${pkgname}_sdk/src"
- patch -Np1 -i "${srcdir}/hardcode-path.patch"
+ patch -Np1 -i "${srcdir}/fix-memleak-in-plugin-scanning.patch"
+ patch -Np2 -i "${srcdir}/fallback-ladspa-path.patch"
sed \
-e 's/mkdirhier/mkdir -p/' \
-e "s#-O3#${CFLAGS} ${LDFLAGS/,--as-needed/}#" \
diff --git a/extra/ladspa/fallback-ladspa-path.patch b/extra/ladspa/fallback-ladspa-path.patch
new file mode 100644
index 000000000..7743bf4b4
--- /dev/null
+++ b/extra/ladspa/fallback-ladspa-path.patch
@@ -0,0 +1,27 @@
+diff -upr ladspa_sdk.orig/src/load.c ladspa_sdk/src/load.c
+--- ladspa_sdk.orig/src/load.c 2012-09-26 07:37:24.000000000 +0300
++++ ladspa_sdk/src/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
+--- ladspa_sdk.orig/src/search.c 2012-09-26 07:37:24.000000000 +0300
++++ ladspa_sdk/src/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/extra/ladspa/fix-memleak-in-plugin-scanning.patch b/extra/ladspa/fix-memleak-in-plugin-scanning.patch
new file mode 100644
index 000000000..76cb2e864
--- /dev/null
+++ b/extra/ladspa/fix-memleak-in-plugin-scanning.patch
@@ -0,0 +1,11 @@
+--- src/search.c.orig 2008-11-07 00:38:18.000000000 +0100
++++ src/search.c 2008-11-07 00:50:51.000000000 +0100
+@@ -83,6 +83,8 @@
+ dlclose(pcFilename);
+ free(pcFilename);
+ }
++ } else {
++ free(pcFilename);
+ }
+ }
+ }