aboutsummaryrefslogtreecommitdiff
path: root/chuck
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-28 21:56:36 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-28 21:56:36 +0200
commit4da30b1131a569109940d64d8f0e51152b17dc75 (patch)
tree9f74a16aa4ab871ae1e851ebb94c145d1bffc818 /chuck
parentee92a56a930bb4e3398723055ac67803b8eb62da (diff)
downloadosc-graphics-4da30b1131a569109940d64d8f0e51152b17dc75.tar.gz
ensure that chuck wrapper's lib.ck contains the installation path
a custom Makefile rule must be used since the *dir output variables are not fully expanded
Diffstat (limited to 'chuck')
-rw-r--r--chuck/Makefile.am6
-rw-r--r--chuck/lib.ck.in16
2 files changed, 12 insertions, 10 deletions
diff --git a/chuck/Makefile.am b/chuck/Makefile.am
index 69c805f..867a89c 100644
--- a/chuck/Makefile.am
+++ b/chuck/Makefile.am
@@ -2,3 +2,9 @@
dist_chuck_DATA = OSCGraphics.ck OSCGraphicsPort.ck OSCGraphicsLayer.ck \
OSCGraphicsBox.ck OSCGraphicsImage.ck OSCGraphicsVideo.ck
nodist_chuck_DATA = lib.ck
+
+CLEANFILES = lib.ck
+EXTRA_DIST = lib.ck.in
+
+lib.ck : lib.ck.in
+ @SED@ 's|@chuckdir[@]|$(chuckdir)|g' $< >$@
diff --git a/chuck/lib.ck.in b/chuck/lib.ck.in
index e73ab98..f4e4c51 100644
--- a/chuck/lib.ck.in
+++ b/chuck/lib.ck.in
@@ -1,11 +1,7 @@
-"/usr/local" => string prefix;
+"@chuckdir@/OSCGraphicsPort.ck" => Machine.add;
+"@chuckdir@/OSCGraphicsLayer.ck" => Machine.add;
+"@chuckdir@/OSCGraphicsImage.ck" => Machine.add;
+"@chuckdir@/OSCGraphicsVideo.ck" => Machine.add;
+"@chuckdir@/OSCGraphicsBox.ck" => Machine.add;
-prefix+"/share/osc-graphics/chuck" => string path;
-
-path+"/OSCGraphicsPort.ck" => Machine.add;
-path+"/OSCGraphicsLayer.ck" => Machine.add;
-path+"/OSCGraphicsImage.ck" => Machine.add;
-path+"/OSCGraphicsVideo.ck" => Machine.add;
-path+"/OSCGraphicsBox.ck" => Machine.add;
-
-path+"/OSCGraphics.ck" => Machine.add;
+"@chuckdir@/OSCGraphics.ck" => Machine.add;