summaryrefslogtreecommitdiff
path: root/homebrew/gitif/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/gitif/.make.sh-auto')
-rw-r--r--homebrew/gitif/.make.sh-auto8
1 files changed, 8 insertions, 0 deletions
diff --git a/homebrew/gitif/.make.sh-auto b/homebrew/gitif/.make.sh-auto
new file mode 100644
index 000000000..e681bd278
--- /dev/null
+++ b/homebrew/gitif/.make.sh-auto
@@ -0,0 +1,8 @@
+pkg:setup
+glk = Formula["glktermw"]
+inreplace "Makefile", "GLK = cheapglk", "GLK = #{glk.name}"
+inreplace "Makefile", "GLKINCLUDEDIR = ../$(GLK)", "GLKINCLUDEDIR = #{glk.include}"
+inreplace "Makefile", "GLKLIBDIR = ../$(GLK)", "GLKLIBDIR = #{glk.lib}"
+inreplace "Makefile", /^OPTIONS = /, "OPTIONS = -DUSE_MMAP -DUSE_INLINE"
+make
+bin.install "git" => "git-if"