pkg:setup glk = Formula["glktermw"] inreplace "Makefile", "GLKINCLUDEDIR = ../cheapglk", "GLKINCLUDEDIR = #{glk.include}" inreplace "Makefile", "GLKLIBDIR = ../cheapglk", "GLKLIBDIR = #{glk.lib}" inreplace "Makefile", "Make.cheapglk", "Make.#{glk.name}" make bin.install "glulxe"