summaryrefslogtreecommitdiff
path: root/baserock/strata/core/flex.morph
diff options
context:
space:
mode:
Diffstat (limited to 'baserock/strata/core/flex.morph')
-rw-r--r--baserock/strata/core/flex.morph14
1 files changed, 14 insertions, 0 deletions
diff --git a/baserock/strata/core/flex.morph b/baserock/strata/core/flex.morph
new file mode 100644
index 00000000..615bf79e
--- /dev/null
+++ b/baserock/strata/core/flex.morph
@@ -0,0 +1,14 @@
+name: flex
+kind: chunk
+pre-configure-commands:
+- autoreconf -ivf
+configure-commands:
+- ./configure --prefix="$PREFIX"
+build-commands:
+- make dist_doc_DATA=
+install-commands:
+- make dist_doc_DATA= DESTDIR="$DESTDIR" install
+- ln -s libfl.a "$DESTDIR$PREFIX/lib/libl.a"
+- echo "#!$PREFIX/bin/sh" >"$DESTDIR$PREFIX/bin/lex"
+- echo 'exec '"$PREFIX"'/bin/flex -l "$@"' >>"$DESTDIR$PREFIX/bin/lex"
+- chmod 755 "$DESTDIR$PREFIX/bin/lex"