7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
31 lines
769 B
Ruby
31 lines
769 B
Ruby
require 'formula'
|
|
|
|
class Openimageio <Formula
|
|
url 'http://svn.openimageio.org/oiio/branches/RB-0.8/', :using => :svn
|
|
version "0.8"
|
|
homepage 'http://openimageio.org'
|
|
|
|
depends_on 'pkg-config'
|
|
depends_on 'cmake'
|
|
depends_on 'ilmbase'
|
|
depends_on 'openexr'
|
|
depends_on 'boost'
|
|
|
|
# build plugins
|
|
depends_on 'libpng' => :optional
|
|
depends_on 'libtiff' => :optional
|
|
depends_on 'jpeg' => :optional
|
|
depends_on 'jasper' => :optional
|
|
|
|
# Qt linking not currently working.
|
|
# # build iv
|
|
# depends_on 'qt' => :optional
|
|
# depends_on 'glew' => :optional
|
|
|
|
depends_on 'tbb' => :optional
|
|
|
|
def install
|
|
system "cmake src/ #{std_cmake_parameters} -DUSE_QT:BOOL=OFF -DEMBEDPLUGINS:BOOL=ON -DUPDATE_TYPE:STRING=svn"
|
|
system "make install"
|
|
end
|
|
end
|