aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/frotz.rb
blob: 9a63ee828214932fd5215fc90103915465295ccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'formula'

class Frotz <Formula
  @url='http://downloads.sourceforge.net/project/frotz/frotz/2.43/frotz-2.43.tar.gz'
  @homepage='http://frotz.sourceforge.net/'
  @md5='efe51879e012b92bb8d5f4a82e982677'

  def install
    inreplace "Makefile", "CC = gcc", ""
    inreplace "Makefile", "OPTS = -O2", ""
    inreplace "Makefile", "PREFIX = /usr/local", "PREFIX = #{prefix}"
    inreplace "Makefile", "CONFIG_DIR = /usr/local/etc", ""

    system "make frotz"
    system "make install"
  end
end