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/'
|
2012-03-10 05:41:20 +00:00
|
|
|
url 'http://sourceforge.net/projects/gplcver/files/gplcver/2.12a/gplcver-2.12a.src.tar.bz2'
|
2010-09-15 01:12:46 +00:00
|
|
|
md5 '857a15a9ebc8ef63ece01502509cbeb7'
|
|
|
|
|
|
|
|
def install
|
|
|
|
inreplace 'src/makefile.osx' do |s|
|
|
|
|
s.gsub! '-mcpu=powerpc', ''
|
|
|
|
s.change_make_var! 'CFLAGS', "$(INCS) $(OPTFLGS) #{ENV.cflags}"
|
|
|
|
end
|
|
|
|
|
2012-03-10 05:41:20 +00:00
|
|
|
cd 'src' do
|
|
|
|
system "make -f makefile.osx"
|
|
|
|
end
|
2010-09-15 01:12:46 +00:00
|
|
|
bin.install 'bin/cver'
|
|
|
|
end
|
|
|
|
end
|