2010-08-10 07:43:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class OpenSg < Formula
|
2010-08-10 07:43:45 +00:00
|
|
|
head 'cvs://:pserver:anonymous@opensg.cvs.sourceforge.net:/cvsroot/opensg:OpenSG'
|
|
|
|
homepage 'http://www.opensg.org/wiki'
|
|
|
|
|
|
|
|
depends_on 'libtiff'
|
|
|
|
depends_on 'jpeg'
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.deparallelize
|
|
|
|
ENV.no_optimization
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--enable-glut", "--enable-tif", "--enable-jpg"
|
|
|
|
Dir.chdir 'Builds/i386-apple-darwin-g++'
|
|
|
|
system "make opt"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|