aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-06-09 18:24:29 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-06-09 18:24:29 +0000
commitbd411f64eec0d4c488ca0ee0519affa4f605d610 (patch)
tree79c4056f5681f22fd9a06d70aa0434b7804f0628
parenteabab8a01dc61e78cc76185271e0698e1fb7fc04 (diff)
set platform-specific search paths
svn path=/trunk/externals/plugin~/; revision=13632
-rw-r--r--jsearch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/jsearch.c b/jsearch.c
index 82a840c..cc46c8b 100644
--- a/jsearch.c
+++ b/jsearch.c
@@ -104,7 +104,11 @@ LADSPAPluginSearch(LADSPAPluginSearchCallbackFunction fCallbackFunction,
pcLADSPAPath = getenv("LADSPA_PATH");
if (!pcLADSPAPath) {
//fprintf(stderr, "Warning: no LADSPA_PATH, assuming /usr/lib/ladspa:/usr/local/lib/ladspa\n");
+#ifdef __APPLE__
+ pcLADSPAPath = "/sw/lib/ladspa:/usr/local/lib/ladspa";
+#else
pcLADSPAPath = "/usr/lib/ladspa:/usr/local/lib/ladspa";
+#endif
}
pcStart = pcLADSPAPath;