homebrew-core/Formula/gplcver.rb

18 lines
478 B
Ruby

require 'formula'
class Gplcver <Formula
url 'http://sourceforge.net/projects/gplcver/files/gplcver/2.12a/gplcver-2.12a.src.tar.bz2'
homepage 'http://gplcver.sourceforge.net/'
md5 '857a15a9ebc8ef63ece01502509cbeb7'
def install
inreplace 'src/makefile.osx' do |s|
s.gsub! '-mcpu=powerpc', ''
s.change_make_var! 'CFLAGS', "$(INCS) $(OPTFLGS) #{ENV.cflags}"
end
system "cd src ; make -f makefile.osx ; cd .."
bin.install 'bin/cver'
end
end