homebrew-core/Formula/pixie.rb
Alexander Bohn / FI$H2k 0b1e8a01bc pixie: add required X11 dependency.
see https://gist.github.com/fish2000/5042119

Closes Homebrew/homebrew#18103.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-02-28 10:35:25 +00:00

29 lines
841 B
Ruby

require 'formula'
class Pixie < Formula
homepage 'http://www.renderpixie.com/'
url 'http://downloads.sourceforge.net/project/pixie/pixie/Pixie%202.2.6/Pixie-src-2.2.6.tgz'
sha1 '651d3a76460f19cbbedb7d3d26ee9160182964d3'
depends_on 'libtiff'
depends_on 'fltk'
depends_on 'openexr'
depends_on :libpng
depends_on :x11
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
system "#{bin}/rndr", "-v"
end
end