2011-11-22 04:12:22 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pixie < Formula
|
|
|
|
homepage 'http://www.renderpixie.com/'
|
2013-01-28 06:05:48 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/pixie/pixie/Pixie%202.2.6/Pixie-src-2.2.6.tgz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '651d3a76460f19cbbedb7d3d26ee9160182964d3'
|
2011-11-22 04:12:22 +00:00
|
|
|
|
|
|
|
depends_on 'libtiff'
|
|
|
|
depends_on 'fltk'
|
|
|
|
depends_on 'openexr'
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :libpng
|
2013-02-26 20:59:33 +00:00
|
|
|
depends_on :x11
|
2011-11-22 04:12:22 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
openexr = Formula.factory('openexr')
|
|
|
|
ilmbase = Formula.factory('ilmbase')
|
|
|
|
|
|
|
|
ENV.append "CPPFLAGS", "-I#{openexr.include}/OpenEXR -I#{ilmbase.include}/OpenEXR"
|
|
|
|
ENV.append "LDFLAGS", "-L#{openexr.lib} -L#{ilmbase.lib}"
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-openexr-prefix=#{openexr.prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/rndr", "-v"
|
2011-11-22 04:12:22 +00:00
|
|
|
end
|
|
|
|
end
|