summaryrefslogtreecommitdiff
path: root/homebrew/cdecl/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/cdecl/.make.sh-auto')
-rw-r--r--homebrew/cdecl/.make.sh-auto6
1 files changed, 6 insertions, 0 deletions
diff --git a/homebrew/cdecl/.make.sh-auto b/homebrew/cdecl/.make.sh-auto
new file mode 100644
index 000000000..3189b4c4d
--- /dev/null
+++ b/homebrew/cdecl/.make.sh-auto
@@ -0,0 +1,6 @@
+pkg:setup
+inreplace "cdecl.c", "getline", "cdecl_getline"
+bin.mkpath
+man1.mkpath
+ENV.append "CFLAGS", "-DBSD -DUSE_READLINE -std=gnu89"
+make CC=${PKG_TARG}-clang CFLAGS=${CFLAGS} LIBS=-lreadline BINDIR=#{bin} MANDIR=#{man1} DESTDIR=${PKG_DEST} install