aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/openexr.rb
blob: dde96941036a1ca7470e683797015d08a53c12a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'formula'

class Openexr < Formula
  url 'http://download.savannah.gnu.org/releases/openexr/openexr-1.7.0.tar.gz'
  homepage 'http://www.openexr.com/'
  md5 '27113284f7d26a58f853c346e0851d7a'

  # included for reference only - repository doesn't have 'configure' script
  # head 'cvs://:pserver:anonymous@cvs.sv.gnu.org:/sources/openexr:OpenEXR'

  depends_on 'pkg-config' => :build
  depends_on 'ilmbase'

  def install
    # prevent 'cc1plus: error: unrecognized command line option "-Wno-long-double"'
    inreplace 'configure', 'CXXFLAGS="$CXXFLAGS -Wno-long-double"', ''

    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end