2010-09-15 01:12:46 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gplcver < Formula
|
2010-09-15 01:12:46 +00:00
|
|
|
homepage 'http://gplcver.sourceforge.net/'
|
2013-06-20 23:08:35 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/gplcver/gplcver/2.12a/gplcver-2.12a.src.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '946bb35b6279646c6e10c309922ed17deb2aca8a'
|
2010-09-15 01:12:46 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
inreplace 'src/makefile.osx' do |s|
|
|
|
|
s.gsub! '-mcpu=powerpc', ''
|
|
|
|
s.change_make_var! 'CFLAGS', "$(INCS) $(OPTFLGS) #{ENV.cflags}"
|
2013-11-10 01:30:06 +00:00
|
|
|
s.change_make_var! 'LFLAGS', ''
|
2010-09-15 01:12:46 +00:00
|
|
|
end
|
|
|
|
|
2013-11-10 01:30:06 +00:00
|
|
|
system "make", "-C", "src", "-f", "makefile.osx"
|
2010-09-15 01:12:46 +00:00
|
|
|
bin.install 'bin/cver'
|
|
|
|
end
|
|
|
|
end
|