summaryrefslogtreecommitdiff
path: root/chunks/ccache.morph
diff options
context:
space:
mode:
Diffstat (limited to 'chunks/ccache.morph')
-rw-r--r--chunks/ccache.morph14
1 files changed, 14 insertions, 0 deletions
diff --git a/chunks/ccache.morph b/chunks/ccache.morph
new file mode 100644
index 00000000..c4771066
--- /dev/null
+++ b/chunks/ccache.morph
@@ -0,0 +1,14 @@
+name: ccache
+kind: chunk
+repo: upstream:ccache
+ref: 567631456f0899cdf0c382f898d38aadc8901d32
+build-system: autotools
+configure-commands:
+- ./configure --prefix="$PREFIX"
+install-commands:
+- make DESTDIR="$DESTDIR" install
+- mkdir -p "$DESTDIR/$PREFIX/lib/ccache"
+- for cc in gcc cc g++ c++; do ln -sf "$PREFIX/bin/ccache" "$DESTDIR/$PREFIX/lib/ccache/$cc";
+ done
+- for cc in gcc cc g++ c++; do ln -sf "$PREFIX/bin/ccache" "$DESTDIR/$PREFIX/lib/ccache/$TARGET-$cc";
+ done