forked from lotia/homebrew-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
povray36.rb
35 lines (29 loc) · 1.04 KB
/
povray36.rb
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
30
31
32
33
34
35
require 'formula'
class Povray36 < Formula
homepage 'http://www.povray.org/'
url 'http://www.povray.org/ftp/pub/povray/Official/Unix/povray-3.6.1.tar.bz2'
sha1 '1fab3ccbdedafbf77e3a66087709bbdf60bc643d'
depends_on 'libtiff' => :optional
depends_on 'jpeg' => :optional
fails_with :llvm do
build 2326
cause "povray fails with 'terminate called after throwing an instance of int'"
end if MacOS.version == :leopard
# povray has issues determining libpng version; can't get it to compile
# against system libpng, but it works with its internal libpng.
def patches
{:p0 =>
"https://trac.macports.org/export/97719/trunk/dports/graphics/povray/files/patch-configure"
}
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"COMPILED_BY=homebrew",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make install"
end
test do
system "#{share}/povray-3.6/scripts/allscene.sh", "-o", "."
end
end