aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStein Magnus Jodal2010-06-16 21:09:39 +0200
committerAdam Vandenberg2010-07-14 15:46:22 -0700
commit78fb5f4b5c5f88221e3db26aa49745c4fb702af8 (patch)
tree581e9ae420d8b36f0dc92cda6a0694b143146d5c
parented57a52f5f7339e1e06193c20887b37d33a64fa6 (diff)
downloadhomebrew-78fb5f4b5c5f88221e3db26aa49745c4fb702af8.tar.bz2
New formula: gstreamer
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/gstreamer.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/gstreamer.rb b/Library/Formula/gstreamer.rb
new file mode 100644
index 000000000..73ff0ab60
--- /dev/null
+++ b/Library/Formula/gstreamer.rb
@@ -0,0 +1,26 @@
+require 'formula'
+
+class Gstreamer <Formula
+ homepage 'http://gstreamer.freedesktop.org/'
+ url 'http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-0.10.29.tar.bz2'
+ md5 'c92d6bce4fc65fa9d5a3ad35cdd1a466'
+
+ depends_on 'pkg-config'
+ depends_on 'gettext'
+ depends_on 'glib'
+
+ def install
+ # Look for plugins in HOMEBREW_PREFIX/lib/gstreamer-0.10 instead of
+ # HOMEBREW_PREFIX/Cellar/gstreamer/0.10/lib/gstreamer-0.10, so we'll find
+ # plugins installed by other packages without setting GST_PLUGIN_PATH in
+ # the environment.
+ inreplace "configure", 'PLUGINDIR="$full_var"',
+ "PLUGINDIR=\"#{HOMEBREW_PREFIX}/lib/gstreamer-0.10\""
+
+ ENV.append "CFLAGS", "-funroll-loops -fstrict-aliasing -fno-common"
+ system "./configure", "--prefix=#{prefix}", "--disable-debug",
+ "--disable-dependency-tracking"
+ system "make"
+ system "make install"
+ end
+end