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"