Skip to content

Commit bf860e1

Browse files
authored
Merge pull request #223239 from samumbach/cmake-4-compatibility
various: cmake 4 compatibility
2 parents 30307c5 + 9f3273b commit bf860e1

File tree

5 files changed

+41
-0
lines changed

5 files changed

+41
-0
lines changed

Formula/d/double-conversion.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ class DoubleConversion < Formula
1818

1919
depends_on "cmake" => :build
2020

21+
# Fix to cmake 4 compatibility
22+
# PR ref: https://github.com/google/double-conversion/pull/240
23+
patch do
24+
url "https://github.com/google/double-conversion/commit/69880f0e68d6ddcb760285709195d63c5fd193c4.patch?full_index=1"
25+
sha256 "9895afd264e304368d78d83d4bedf85fbd282f79fe99f70cd7384cde2baab329"
26+
end
27+
2128
def install
2229
system "cmake", "-S", ".", "-B", "shared", "-DBUILD_SHARED_LIBS=ON", *std_cmake_args
2330
system "cmake", "--build", "shared"

Formula/lib/libcbor.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ class Libcbor < Formula
1717

1818
depends_on "cmake" => :build
1919

20+
# Fix to cmake 4 compatibility
21+
# PR ref: https://github.com/PJK/libcbor/pull/355
22+
patch do
23+
url "https://github.com/PJK/libcbor/commit/1183292d4695300785b272532c1e02d68840e4b8.patch?full_index=1"
24+
sha256 "54c1984fa401a4bf85e9d9cfd1500bfd1f3106cf39e1f72cfdf762dd30643098"
25+
end
26+
2027
def install
2128
args = %w[
2229
-DWITH_EXAMPLES=OFF

Formula/lib/libsamplerate.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ class Libsamplerate < Formula
1919
depends_on "cmake" => :build
2020
depends_on "pkgconf" => :build
2121

22+
# Fix CMake deprecation warning CMP0091 (prereq for cmake 4 compatibility fix below)
23+
# PR ref: https://github.com/libsndfile/libsamplerate/pull/180
24+
patch do
25+
url "https://github.com/libsndfile/libsamplerate/commit/e4a0ab46887029e0f65f145ba3987cc592f18200.patch?full_index=1"
26+
sha256 "0826fb59d733188645f3dc207c938580970700381b9bc87058b137723cb30bba"
27+
end
28+
# Fix to cmake 4 compatibility
29+
# PR ref: https://github.com/libsndfile/libsamplerate/pull/225
30+
patch do
31+
url "https://github.com/libsndfile/libsamplerate/commit/1abc639420b2df8b9ff2e0bdcc28cf6613c7c0d0.patch?full_index=1"
32+
sha256 "b6fb61c763a0f072ef2ebb3a311037d2429a5e294141f6d5e552ccd25efabdc0"
33+
end
34+
2235
def install
2336
args = ["-DLIBSAMPLERATE_EXAMPLES=OFF"]
2437

Formula/s/snappy.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ class Snappy < Formula
3535
# `folly` issue ref: https://github.com/facebook/folly/issues/1583
3636
patch :DATA
3737

38+
# Fix to cmake 4 compatibility
39+
# PR ref: https://github.com/google/snappy/pull/200
40+
patch do
41+
url "https://github.com/google/snappy/commit/a688be4b77b954c403db805c8351ff62770f1044.patch?full_index=1"
42+
sha256 "d7ce00be23a95bc438ec00a287de1c52a2b7d9c261a365a4a2b458e29b486fd8"
43+
end
44+
3845
def install
3946
ENV.llvm_clang if OS.mac? && (DevelopmentTools.clang_build_version <= 1100)
4047

Formula/s/srt.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ class Srt < Formula
2020
depends_on "pkgconf" => :build
2121
depends_on "openssl@3"
2222

23+
# Fix to cmake 4 compatibility
24+
# PR ref: https://github.com/Haivision/srt/pull/3167
25+
patch do
26+
url "https://github.com/Haivision/srt/commit/7962936829e016295e5c570539eb2520b326da4c.patch?full_index=1"
27+
sha256 "e4489630886bf8b26f63a23c8b1aec549f7280f07713ded07fce281e542725f7"
28+
end
29+
2330
def install
2431
openssl = Formula["openssl@3"]
2532

0 commit comments

Comments
 (0)