Skip to content

Commit 52418d5

Browse files
committed
iccmax 2.1.26 (new formula)
Fix: Change License Type back to MIT FIX: Update correct Dependency Order and Uses
1 parent d8d3d13 commit 52418d5

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

Formula/i/iccmax.rb

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
class Iccmax < Formula
2+
desc "Reference implementation tools for iccMAX"
3+
homepage "https://github.com/InternationalColorConsortium/DemoIccMAX"
4+
url "https://github.com/InternationalColorConsortium/DemoIccMAX/archive/9f4cc3b1b5446b87c22695e44ef25a1e25c4e4a3.tar.gz"
5+
version "2.1.26"
6+
sha256 "8eb4e854f99ed52cd8fc19dbf8b5d045e4db69c09cbe837702a6bad915e7ecbc"
7+
license "MIT"
8+
9+
depends_on "cmake" => :build
10+
depends_on "jpeg"
11+
depends_on "libpng"
12+
depends_on "libtiff"
13+
depends_on "nlohmann-json"
14+
depends_on "wxwidgets"
15+
uses_from_macos "libxml2"
16+
17+
def install
18+
mkdir "Build" do
19+
rpath = opt_lib.to_s
20+
system "cmake", "../CMake", "-DCMAKE_INSTALL_PREFIX=#{prefix}",
21+
"-DCMAKE_BUILD_TYPE=Release",
22+
"-DCMAKE_INSTALL_RPATH=#{rpath}",
23+
"-DENABLE_TOOLS=ON",
24+
"-DENABLE_SHARED_LIBS=ON",
25+
"-DENABLE_STATIC_LIBS=ON",
26+
"-DENABLE_TESTS=ON",
27+
"-DENABLE_INSTALL_RIM=ON",
28+
"-DENABLE_ICCXML=ON",
29+
"-Wno-dev"
30+
system "make", "-j#{ENV.make_jobs}"
31+
system "make", "install"
32+
end
33+
end
34+
35+
test do
36+
system "#{bin}/iccDumpProfile", "--help"
37+
end
38+
end

0 commit comments

Comments
 (0)