Skip to content

Commit a0058ea

Browse files
committed
libheif: apply upstream patch
1 parent 5604d27 commit a0058ea

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Formula/lib/libheif.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ class Libheif < Formula
2626
depends_on "webp"
2727
depends_on "x265"
2828

29+
# Fix to api error for 'cannot assign to non-static data member'
30+
# apply upstream patch and should check for removal on next release
31+
patch do
32+
url "https://github.com/strukturag/libheif/commit/3dd7019ff579c038cba96353390cd41edfda927e.patch?full_index=1"
33+
sha256 "9397a8b1b92f311eb1f9bf5c1bae4f5244a406556fd0ce91b3caed7a91daa0d0"
34+
end
35+
2936
def install
3037
args = %W[
3138
-DCMAKE_INSTALL_RPATH=#{rpath}
@@ -40,9 +47,6 @@ def install
4047
pkgshare.install "examples/example.heic"
4148
pkgshare.install "examples/example.avif"
4249

43-
# In order to avoid duplicated symbol error when build static library
44-
inreplace "examples/heif_info.cc", "fourcc_to_string", "example_fourcc_to_string"
45-
4650
system "cmake", "-S", ".", "-B", "static", *args, *std_cmake_args, "-DBUILD_SHARED_LIBS=OFF"
4751
system "cmake", "--build", "static"
4852
lib.install "static/libheif/libheif.a"

0 commit comments

Comments
 (0)