aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gst-plugins-bad.rb
diff options
context:
space:
mode:
authorJustin Joy2013-08-14 10:29:19 +0900
committerSamuel John2013-08-23 13:17:08 +0200
commit3dc4ad68a925a0a3ec9d44bd43a150df4b72f0ab (patch)
tree6f92a17034b6db7a5c63d1b75a210d93b683a143 /Library/Formula/gst-plugins-bad.rb
parenta5a3116fae87a63ae5c4c0b8eca4552e16a6c288 (diff)
downloadhomebrew-3dc4ad68a925a0a3ec9d44bd43a150df4b72f0ab.tar.bz2
gstreamer & gst-plugins: --HEAD
Building from gstreamer master is required for development purpose. Also gest-plugins-* and gst-libav get --HEAD. Closes #21665. Signed-off-by: Samuel John <github@SamuelJohn.de>
Diffstat (limited to 'Library/Formula/gst-plugins-bad.rb')
-rw-r--r--Library/Formula/gst-plugins-bad.rb32
1 files changed, 25 insertions, 7 deletions
diff --git a/Library/Formula/gst-plugins-bad.rb b/Library/Formula/gst-plugins-bad.rb
index 38faf7e06..2fccd0fb1 100644
--- a/Library/Formula/gst-plugins-bad.rb
+++ b/Library/Formula/gst-plugins-bad.rb
@@ -6,6 +6,13 @@ class GstPluginsBad < Formula
mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-bad-1.0.9.tar.xz'
sha256 '69d236b1d8188270a3f51f6710146d0ca63c2f1a9f6cfbab3399ef01b9498f75'
+ head 'git://anongit.freedesktop.org/gstreamer/gst-plugins-bad'
+
+ if build.head?
+ depends_on :automake
+ depends_on :libtool
+ end
+
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'gettext'
@@ -28,13 +35,24 @@ class GstPluginsBad < Formula
def install
ENV.append "CFLAGS", "-no-cpp-precomp" unless ENV.compiler == :clang
ENV.append "CFLAGS", "-funroll-loops -fstrict-aliasing"
- system "./configure", "--prefix=#{prefix}",
- "--disable-debug",
- "--disable-dependency-tracking",
- "--disable-sdl",
- # gst/interfaces/propertyprobe.h is missing from gst-plugins-base 1.0.x
- "--disable-osx_video"
+
+ args = %W[
+ --prefix=#{prefix}
+ --disable-apple_media
+ --disable-yadif
+ --disable-sdl
+ --disable-osx_video
+ --disable-debug
+ --disable-dependency-tracking
+ ]
+
+ if build.head?
+ ENV.append "NOCONFIGURE", "yes"
+ system "./autogen.sh"
+ end
+
+ system "./configure", *args
system "make"
- system "make install"
+ system "make", "install"
end
end