povray 3.7.0.3
Closes #17500. Signed-off-by: JCount <JCount42@gmail.com>
This commit is contained in:
parent
e59fd0356f
commit
bb14e1d0a6
1 changed files with 12 additions and 39 deletions
|
@ -1,9 +1,8 @@
|
|||
class Povray < Formula
|
||||
desc "Persistence Of Vision RAYtracer (POVRAY)"
|
||||
homepage "http://www.povray.org/"
|
||||
url "https://github.com/POV-Ray/povray/archive/v3.7.0.0.tar.gz"
|
||||
sha256 "bf68861d648e3acafbd1d83a25016a0c68547b257e4fa79fb36eb5f08d665f27"
|
||||
revision 2
|
||||
url "https://github.com/POV-Ray/povray/archive/v3.7.0.3.tar.gz"
|
||||
sha256 "baa4c7f04415fbc2a99cfab6da4d33a7ca018d985fc71701c603a67c6b0a9426"
|
||||
|
||||
bottle do
|
||||
sha256 "2a9da6569fb38e6f997da1ed33ce07419d1ddf38bdc13c0e44c8ee3d677228e2" => :sierra
|
||||
|
@ -11,56 +10,28 @@ class Povray < Formula
|
|||
sha256 "7ad20b464b16b59761ff7295b88639e3a3bd9f44b03351bf9aff78e17e60f4fe" => :yosemite
|
||||
end
|
||||
|
||||
deprecated_option "use-openexr" => "with-openexr"
|
||||
|
||||
depends_on :macos => :lion
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
depends_on "libpng"
|
||||
depends_on "boost"
|
||||
depends_on "jpeg"
|
||||
depends_on "libpng"
|
||||
depends_on "libtiff"
|
||||
depends_on "openexr" => :optional
|
||||
|
||||
# Patches lseek64 => lseek
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/3316200/povray/patch-lseek64.diff"
|
||||
sha256 "6ade943b074f25d35d49a82f920d81a48be7d18c9b5a6db9988020a1f9b0bda4"
|
||||
end
|
||||
deprecated_option "use-openexr" => "with-openexr"
|
||||
|
||||
# Fixes configure script's stat usage, automake subdir
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/3316200/povray/patch-unix-configure.ac.diff"
|
||||
sha256 "025bfc178a6a298052ff97c0b2659b7f283d57bb0e43ba9962d3a5376ad16099"
|
||||
end
|
||||
|
||||
# prebuild.sh doesn't create Makefile.in properly
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/3316200/povray/patch-unix-prebuild.sh.diff"
|
||||
sha256 "1322acc324327019a31a2b97a59dbcfc6ca24981a833627399ae2ebd92c24ef6"
|
||||
end
|
||||
|
||||
# missing sys/types.h header include
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/3316200/povray/patch-vfe-uint.diff"
|
||||
sha256 "c8162b6574f15f4fec668e4625d33184cf949d1368c4a86297ca3592d723f1d3"
|
||||
end
|
||||
|
||||
# Fixes some compiler warnings; comes from the upstream repo, should be in next release.
|
||||
# Fixes compatibility with boost 1.65.0
|
||||
# Adapted from https://github.com/POV-Ray/povray/pull/318
|
||||
patch do
|
||||
url "https://github.com/POV-Ray/povray/commit/b3846f5723745e6e7926883ec6bc404922a900e6.diff?full_index=1"
|
||||
sha256 "e5eb95abf3fd87663b48386882491276e6b9c73c523efd0447ef6ee7e383f35e"
|
||||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/8443970b254/povray/boost-1.65.0.diff"
|
||||
sha256 "19f9826cb2287bb16e8d3d21da5ca73eb848ff9a9e719c110bae562b6fcc028e"
|
||||
end
|
||||
|
||||
# Replaces references to shared_ptr with boost::shared_ptr
|
||||
patch do
|
||||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/3316200/povray/boost-sharedptr.diff"
|
||||
sha256 "0db27c4bf41334fdd0b5d685defad07e62752a64f1fe5c49ae100ece5aebd358"
|
||||
end
|
||||
needs :cxx11
|
||||
|
||||
def install
|
||||
# include the boost system library to resolve compilation conflicts
|
||||
ENV["LIBS"] = "-lboost_system-mt -lboost_thread-mt"
|
||||
ENV.cxx11
|
||||
|
||||
args = %W[
|
||||
COMPILED_BY=homebrew
|
||||
|
@ -68,6 +39,8 @@ class Povray < Formula
|
|||
--disable-dependency-tracking
|
||||
--prefix=#{prefix}
|
||||
--mandir=#{man}
|
||||
--without-libsdl
|
||||
--without-x
|
||||
]
|
||||
|
||||
args << "--with-openexr=#{HOMEBREW_PREFIX}" if build.with? "openexr"
|
||||
|
|
Loading…
Reference in a new issue