aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pixie.rb
blob: 959f249af6fc9be4bcdb7886dbbb5fa46f9f41f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require 'formula'

class Pixie < Formula
  homepage 'http://www.renderpixie.com/'
  url 'https://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["openexr"]
    ilmbase = Formula["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

  test do
    system "#{bin}/rndr", "-v"
  end
end