diff options
| author | Adam Vandenberg | 2012-03-21 20:25:18 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-21 20:25:18 -0700 |
| commit | d2f075da96407bebe8a3bd6357b573a38c410938 (patch) | |
| tree | 6e8aaf6602681428c5414c4e03c0fa121d24d1c1 /Library/Formula/pbrt.rb | |
| parent | eaea973e6d53775c4cab299c89bb3190603a8b92 (diff) | |
| download | homebrew-d2f075da96407bebe8a3bd6357b573a38c410938.tar.bz2 | |
Move pbrt Homebrew-ALT.
pbrt is head-only, and occasionally releases snapshots off of SHAs.
Moving to Homebrew-Alt.
Fixes #10496.
Diffstat (limited to 'Library/Formula/pbrt.rb')
| -rw-r--r-- | Library/Formula/pbrt.rb | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/Library/Formula/pbrt.rb b/Library/Formula/pbrt.rb deleted file mode 100644 index a0cfe1e98..000000000 --- a/Library/Formula/pbrt.rb +++ /dev/null @@ -1,42 +0,0 @@ -require 'formula' - -class Pbrt < Formula - head 'https://github.com/mmp/pbrt-v2.git' - homepage 'http://www.pbrt.org/' - - depends_on 'openexr' - depends_on 'libtiff' - depends_on 'ilmbase' - - def install - openexr = Formula.factory('openexr') - libtiff = Formula.factory('libtiff') - ilmbase = Formula.factory('ilmbase') - - # Configure the Makefile - inreplace 'src/Makefile' do |s| - # Enable Tiff support - s.change_make_var! "HAVE_LIBTIFF", "1" - - # Set LibTiff path - s.change_make_var! "TIFF_INCLUDES", "-I#{libtiff.include}" - s.change_make_var! "TIFF_LIBDIR", "-L#{libtiff.lib}" - - # Set OpenEXR path - s.change_make_var! "EXR_INCLUDES", "-I#{openexr.include}/OpenEXR -I#{ilmbase.include}/OpenEXR" - s.change_make_var! "EXR_LIBDIR", "-L#{openexr.lib} -L#{ilmbase.lib}" - - # Change settings if we are using a 32bit system - if MacOS.leopard? or Hardware.is_32_bit? - s.change_make_var! "MARCH", "-m32 -msse2 -mfpmath=sse" - end - end - - # Build and install - system "make -C src" - bin.install Dir['src/bin/*'] - - # Copy resources - prefix.install %w(dtrace exporters scenes) - end -end |
