-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathopenexr.rb
50 lines (42 loc) · 2.17 KB
/
openexr.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
class Openexr < Formula
desc "High dynamic-range image file format"
homepage "https://www.openexr.com/"
url "https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v3.2.4.tar.gz"
sha256 "81e6518f2c4656fdeaf18a018f135e96a96e7f66dbe1c1f05860dd94772176cc"
license "BSD-3-Clause"
bottle do
sha256 cellar: :any, arm64_sequoia: "c728f040633260155ac1d368eb7eea0a773f7b4c0ec1335e10c4a3e542724a62"
sha256 cellar: :any, arm64_sonoma: "49b4acf727abd6a736d9d7cf8b38fe96ef3f89979523186ce4eb947d5478b772"
sha256 cellar: :any, arm64_ventura: "690f103efb1ab0a421cc8c7aa4c0eb0c1715f3e35e26b05f54820bc7896c16ef"
sha256 cellar: :any, arm64_monterey: "eafdc1854757f9215568e38005d69884c3da63b23d62cc6496e95430d2713796"
sha256 cellar: :any, sonoma: "e2d68cb84ae057f4323e7f52214ddb1c3db955a02db865acddcc8d41828ef445"
sha256 cellar: :any, ventura: "893b120aee538446c12c39d819f2a56a54d4493558d6c6e339ef3f0f2a382607"
sha256 cellar: :any, monterey: "bc8c4411b513c76de4c416642341c8f72b29a4fff10f0bcfc2c13c17ef899261"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d7c839fd2991b3cc8a66a5e5fa6aa4d86e3d9621280d56b24219900c81ed7d1e"
end
depends_on "cmake" => :build
depends_on "pkgconf" => :build
depends_on "imath"
depends_on "libdeflate"
uses_from_macos "zlib"
# These used to be provided by `ilmbase`
link_overwrite "include/OpenEXR"
link_overwrite "lib/libIex.dylib"
link_overwrite "lib/libIex.so"
link_overwrite "lib/libIlmThread.dylib"
link_overwrite "lib/libIlmThread.so"
def install
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
test do
resource "homebrew-exr" do
url "https://github.com/AcademySoftwareFoundation/openexr-images/raw/f17e353fbfcde3406fe02675f4d92aeae422a560/TestImages/AllHalfValues.exr"
sha256 "eede573a0b59b79f21de15ee9d3b7649d58d8f2a8e7787ea34f192db3b3c84a4"
end
resource("homebrew-exr").stage do
system bin/"exrheader", "AllHalfValues.exr"
end
end
end