46 lines
1.8 KiB
Ruby
46 lines
1.8 KiB
Ruby
class OpenexrAT2 < Formula
|
|
desc "High dynamic-range image file format"
|
|
homepage "https://www.openexr.com/"
|
|
url "https://github.com/openexr/openexr/archive/v2.5.7.tar.gz"
|
|
sha256 "36ecb2290cba6fc92b2ec9357f8dc0e364b4f9a90d727bf9a57c84760695272d"
|
|
license "BSD-3-Clause"
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_monterey: "d9df4040f4e6de9a8d2179eee19776c614bbb8ed43358e2a315450757a5d9c63"
|
|
sha256 cellar: :any, arm64_big_sur: "77d6fcb5f018066f870b1d8a94afe04a55b84e2e3250c4b399d3cdd370692515"
|
|
sha256 cellar: :any, monterey: "b9bb922d794b5e3b002876bed20a0b1fb2d9f694094175a97972dba149d81aab"
|
|
sha256 cellar: :any, big_sur: "428f7841d12c75fdcf614c636aaf078a079ae16fce6f40510c5c0b3494814e06"
|
|
sha256 cellar: :any, catalina: "514fa634d8cb6fe9d677526ccfa29001765bb1fe7bdd96e03f59dad14bea2c57"
|
|
sha256 cellar: :any, mojave: "4c4fb29b1ba3789441448da68276d373838cff0e72424ac7ea4cb4dbcaed88a1"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "5a52a794a021982ff6639a29567529dd9911b677b29d90dc6f3bc1fdb52444be"
|
|
end
|
|
|
|
keg_only :versioned_formula
|
|
|
|
deprecate! date: "2021-04-01", because: :unsupported
|
|
|
|
depends_on "cmake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "ilmbase"
|
|
|
|
uses_from_macos "zlib"
|
|
|
|
resource "exr" do
|
|
url "https://github.com/openexr/openexr-images/raw/master/TestImages/AllHalfValues.exr"
|
|
sha256 "eede573a0b59b79f21de15ee9d3b7649d58d8f2a8e7787ea34f192db3b3c84a4"
|
|
end
|
|
|
|
def install
|
|
cd "OpenEXR" do
|
|
system "cmake", ".", *std_cmake_args
|
|
system "make", "install"
|
|
end
|
|
end
|
|
|
|
test do
|
|
resource("exr").stage do
|
|
system bin/"exrheader", "AllHalfValues.exr"
|
|
end
|
|
end
|
|
end
|