Skip to content

Commit 18f09f2

Browse files
committed
libnice: use this when compiling gstreamer instead of fetching source
1 parent cdbc9ee commit 18f09f2

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Formula/g/gstreamer.rb

+1
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ def install
171171
-Dpython=enabled
172172
-Dlibav=enabled
173173
-Dlibnice=enabled
174+
-Dlibnice-gstreamer-only=true
174175
-Dbase=enabled
175176
-Dgood=enabled
176177
-Dugly=enabled

Formula/lib/libnice.rb

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ class Libnice < Formula
55
sha256 "a5f724cf09eae50c41a7517141d89da4a61ec9eaca32da4a0073faed5417ad7e"
66
license any_of: ["LGPL-2.1-only", "MPL-1.1"]
77

8+
stable do
9+
# break libnice circular dependancy with gstreamer
10+
# https://github.com/Homebrew/homebrew-core/pull/183884
11+
patch do
12+
url "https://gitlab.freedesktop.org/gstreamer/gstreamer/-/raw/2c3d8e8e0c9a566331f127ab071b5b7c84b33def/subprojects/packagefiles/libnice-0.1.22/add-option-build-only-gstreamer.patch"
13+
sha256 "32768e39b041f91a4ca805dc0a7ed10986a712ce6ac27f78c54274006d6c7920"
14+
end
15+
end
16+
817
livecheck do
918
url "https://github.com/libnice/libnice.git"
1019
regex(/^v?(\d+(?:\.\d+)+)$/i)
@@ -36,7 +45,7 @@ class Libnice < Formula
3645
end
3746

3847
def install
39-
system "meson", "setup", "build", *std_meson_args
48+
system "meson", "setup", "build", "-Dgstreamer=disabled", *std_meson_args
4049
system "meson", "compile", "-C", "build", "--verbose"
4150
system "meson", "install", "-C", "build"
4251
end

0 commit comments

Comments
 (0)