File jamin-ladspa-path-fix.diff of Package jamin

---
 controller/Makefile.am |    2 +-
 src/Makefile.am        |    1 +
 src/plugin.c           |    6 +++++-
 3 files changed, 7 insertions(+), 2 deletions(-)

--- a/controller/Makefile.am
+++ b/controller/Makefile.am
@@ -1,5 +1,5 @@
 plugin_LTLIBRARIES = jamincont_1912.la
-plugindir = @prefix@/lib/ladspa
+plugindir = @libdir@/ladspa
 jamincont_1912_la_CFLAGS = @OSC_CFLAGS@ -I../src
 jamincont_1912_la_LIBADD = @OSC_LIBS@
 jamincont_1912_la_LDFLAGS = -module -avoid-version -Wc,-nostartfiles
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,6 +3,7 @@
 INCLUDES = \
 	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
 	-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
+	-DPLUGINDIR=\"$(libdir)/ladspa\" \
 	@PACKAGE_CFLAGS@ @JAMIN_CFLAGS@
 
 # use a convenience library to build non-optimized sources.
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -24,12 +24,16 @@
 
 static char *plugin_path;
 
+#ifndef PLUGINDIR
+#define PLUGINDIR	"/usr/local/lib/ladspa:/usr/lib/ladspa"
+#endif
+
 void plugin_init()
 {
 	if (getenv("LADSPA_PATH")) {
 		plugin_path = getenv("LADSPA_PATH");
 	} else {
-		plugin_path = "/usr/local/lib/ladspa:/usr/lib/ladspa";
+		plugin_path = PLUGINDIR;
 	}
 }