Created
December 23, 2014 14:36
-
-
Save wancw/8b945abd3611212a1a04 to your computer and use it in GitHub Desktop.
Install libnice by Homebrew without gstreamer dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Library/Formula/libnice.rb b/Library/Formula/libnice.rb | |
index 3964b17..89a1f34 100644 | |
--- a/Library/Formula/libnice.rb | |
+++ b/Library/Formula/libnice.rb | |
@@ -5,6 +5,8 @@ class Libnice < Formula | |
url "http://nice.freedesktop.org/releases/libnice-0.1.7.tar.gz" | |
sha1 "94d459fc409da9cf5e4ac30d680ee6c0ded2cb64" | |
+ option "without-gstreamer" | |
+ | |
bottle do | |
cellar :any | |
revision 1 | |
@@ -15,7 +17,10 @@ class Libnice < Formula | |
depends_on "pkg-config" => :build | |
depends_on "glib" | |
- depends_on "gstreamer" | |
+ | |
+ if build.with? "gstreamer" | |
+ depends_on "gstreamer" | |
+ end | |
def install | |
args = %W[ | |
@@ -25,6 +30,13 @@ class Libnice < Formula | |
--disable-silent-rules | |
] | |
+ if build.without? "gstreamer" | |
+ args += %W[ | |
+ --without-gstreamer | |
+ --without-gstreamer-0.10 | |
+ ] | |
+ end | |
+ | |
system "./configure", *args | |
system "make install" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment