2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-02 17:56:31 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Openexr < Formula
|
2011-08-29 19:10:21 +00:00
|
|
|
url 'http://download.savannah.gnu.org/releases/openexr/openexr-1.7.0.tar.gz'
|
2009-10-02 17:56:31 +00:00
|
|
|
homepage 'http://www.openexr.com/'
|
2011-08-29 19:10:21 +00:00
|
|
|
md5 '27113284f7d26a58f853c346e0851d7a'
|
|
|
|
|
|
|
|
# included for reference only - repository doesn't have 'configure' script
|
|
|
|
# head 'cvs://:pserver:anonymous@cvs.sv.gnu.org:/sources/openexr:OpenEXR'
|
2009-10-02 17:56:31 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
New formula: openimageio HEAD
OpenImageIO is a library for reading and writing images, and a bunch of related classes, utilities, and applications.
Depends on cmake, ilmbase, openexr, boost
Optionally depends on libpng, libtiff, libjpeg, jasper, qt, glew
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
* Updates to get it working; please improve if you can!
2010-04-05 12:44:13 +00:00
|
|
|
depends_on 'ilmbase'
|
2009-10-02 17:56:31 +00:00
|
|
|
|
|
|
|
def install
|
2011-08-29 19:10:21 +00:00
|
|
|
# prevent 'cc1plus: error: unrecognized command line option "-Wno-long-double"'
|
|
|
|
inreplace 'configure', 'CXXFLAGS="$CXXFLAGS -Wno-long-double"', ''
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2009-10-02 17:56:31 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|