summaryrefslogtreecommitdiff
path: root/sci-astronomy/esorex/files/esorex-3.10-set-default-plugin-path.patch
blob: 1289bed5ab0d7f9a9d887725e97b49505c5a6233 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Author: Ole Streicher <debian@liska.ath.cx>
Description: Set the default plugin path to the one where recipes are
 installed in Debian.
--- a/etc/esorex.rc.in
+++ b/etc/esorex.rc.in
@@ -130,7 +130,7 @@
 # as well. Multiple directory heads may be specified, by separating the
 # starting paths with colons (:). This option may also be set using the
 # environment variable ESOREX_PLUGIN_DIR.
-esorex.caller.recipe-dir=@recipedir@/esopipes-plugins
+esorex.caller.recipe-dir=@recipedir@
 
 # --suppress-link
 # When TRUE, no symbolic link is created to the output product. However, if
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -35,7 +35,10 @@
     AC_SUBST(configdir)
 
     if test -z "$recipedir"; then
-	    recipedir="`eval echo $libdir`"
+       	    recipedir="`eval echo $libdir`/cpl/plugins"
+       	    if test $libdir != "/usr/lib"; then
+                recipedir="$recipedir:/usr/lib/cpl/plugins"
+            fi
 	fi
 	AC_SUBST(recipedir)