diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/gst-libav.rb | 25 | ||||
| -rw-r--r-- | Library/Formula/gst-plugins-bad.rb | 32 | ||||
| -rw-r--r-- | Library/Formula/gst-plugins-base.rb | 20 | ||||
| -rw-r--r-- | Library/Formula/gst-plugins-good.rb | 38 | ||||
| -rw-r--r-- | Library/Formula/gst-plugins-ugly.rb | 18 | ||||
| -rw-r--r-- | Library/Formula/gstreamer.rb | 29 |
6 files changed, 130 insertions, 32 deletions
diff --git a/Library/Formula/gst-libav.rb b/Library/Formula/gst-libav.rb index e370d83ff..392a8b4a6 100644 --- a/Library/Formula/gst-libav.rb +++ b/Library/Formula/gst-libav.rb @@ -6,15 +6,34 @@ class GstLibav < Formula mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-libav-1.0.9.tar.xz' sha256 '759641c0597c24191322f40945b363b75df299a539ff4086650be6193028189a' + head 'git://anongit.freedesktop.org/gstreamer/gst-libav' + + if build.head? + depends_on :automake + depends_on :libtool + depends_on "gettext" + end + depends_on "pkg-config" => :build depends_on "xz" => :build depends_on "yasm" => :build depends_on "gst-plugins-base" def install - system "./configure", "--disable-dependency-tracking", - "--prefix=#{prefix}" - system "make install" + args = %W[ + --prefix=#{prefix} + --disable-debug + --disable-dependency-tracking + ] + + if build.head? + ENV["NOCONFIGURE"]="yes" + system "./autogen.sh" + end + + system "./configure", *args + system "make" + system "make", "install" end test do 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 diff --git a/Library/Formula/gst-plugins-base.rb b/Library/Formula/gst-plugins-base.rb index 79191726a..a1cc37923 100644 --- a/Library/Formula/gst-plugins-base.rb +++ b/Library/Formula/gst-plugins-base.rb @@ -6,6 +6,13 @@ class GstPluginsBase < Formula mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-base-1.0.9.tar.xz' sha256 '963e3b83d651661f495ca2e44ccd2d5c61e986e9d7706246e568276689a372ea' + head 'git://anongit.freedesktop.org/gstreamer/gst-plugins-base' + + if build.head? + depends_on :automake + depends_on :libtool + end + depends_on 'pkg-config' => :build depends_on 'xz' => :build depends_on 'gettext' @@ -22,11 +29,10 @@ class GstPluginsBase < Formula depends_on 'libvorbis' => :optional def install + # gnome-vfs turned off due to lack of formula for it. args = %W[ --prefix=#{prefix} - --disable-debug - --disable-dependency-tracking --enable-experimental --disable-libvisual --disable-alsa @@ -35,9 +41,17 @@ class GstPluginsBase < Formula --disable-x --disable-xvideo --disable-xshm + --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 diff --git a/Library/Formula/gst-plugins-good.rb b/Library/Formula/gst-plugins-good.rb index f6a1a32b0..fc83537ed 100644 --- a/Library/Formula/gst-plugins-good.rb +++ b/Library/Formula/gst-plugins-good.rb @@ -6,17 +6,27 @@ class GstPluginsGood < Formula mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-good-1.0.9.tar.xz' sha256 'cfa2e617a76f93e9ddd4ae1109297e93fb4a06b152042b996231234a72c5a5ff' + head 'git://anongit.freedesktop.org/gstreamer/gst-plugins-good' + + if build.head? + depends_on :automake + depends_on :libtool + depends_on 'check' + else + depends_on 'check' => :optional + end + depends_on :x11 depends_on 'pkg-config' => :build depends_on 'xz' => :build depends_on 'gettext' depends_on 'gst-plugins-base' + depends_on 'libsoup' # The set of optional dependencies is based on the intersection of # gst-plugins-good-0.10.30/REQUIREMENTS and Homebrew formulae depends_on 'orc' => :optional depends_on 'gtk+' => :optional - depends_on 'check' => :optional depends_on 'aalib' => :optional depends_on 'libcdio' => :optional depends_on 'esound' => :optional @@ -27,17 +37,25 @@ class GstPluginsGood < Formula depends_on 'libshout' => :optional depends_on 'speex' => :optional depends_on 'taglib' => :optional - depends_on 'libsoup' => :optional def install - system "./configure", "--disable-debug", - "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--disable-schemas-install", - "--disable-gtk-doc", - "--disable-goom", - "--with-default-videosink=ximagesink" + args = %W[ + --prefix=#{prefix} + --disable-schemas-install + --disable-gtk-doc + --disable-goom + --with-default-videosink=ximagesink + --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 diff --git a/Library/Formula/gst-plugins-ugly.rb b/Library/Formula/gst-plugins-ugly.rb index 40d7d2246..5d1b94557 100644 --- a/Library/Formula/gst-plugins-ugly.rb +++ b/Library/Formula/gst-plugins-ugly.rb @@ -6,6 +6,13 @@ class GstPluginsUgly < Formula mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-ugly-1.0.9.tar.xz' sha256 '11250fe9e44b0169c3a289e981b31874b483643ed78f619682ae1644d7088379' + head 'git://anongit.freedesktop.org/gstreamer/gst-plugins-ugly' + + if build.head? + depends_on :automake + depends_on :libtool + end + depends_on 'pkg-config' => :build depends_on 'xz' => :build depends_on 'gettext' @@ -40,12 +47,17 @@ class GstPluginsUgly < Formula ENV.append "CFLAGS", "-no-cpp-precomp -funroll-loops -fstrict-aliasing" args = %W[ - --disable-debug - --disable-dependency-tracking --prefix=#{prefix} --mandir=#{man} + --disable-debug + --disable-dependency-tracking ] + if build.head? + ENV.append "NOCONFIGURE", "yes" + system "./autogen.sh" + end + if build.with? "opencore-amr" # Fixes build error, missing includes. # https://github.com/mxcl/homebrew/issues/14078 @@ -59,6 +71,6 @@ class GstPluginsUgly < Formula system "./configure", *args system "make" - system "make install" + system "make", "install" end end diff --git a/Library/Formula/gstreamer.rb b/Library/Formula/gstreamer.rb index ea882233e..5fb85b42f 100644 --- a/Library/Formula/gstreamer.rb +++ b/Library/Formula/gstreamer.rb @@ -6,6 +6,13 @@ class Gstreamer < Formula mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gstreamer-1.0.9.tar.xz' sha256 '17a2c60a82baa461ef685ad3de187edb9c03a2c7e07513daba58a5a32efacaa3' + head 'git://anongit.freedesktop.org/gstreamer/gstreamer' + + if build.head? + depends_on :automake + depends_on :libtool + end + depends_on 'pkg-config' => :build depends_on 'xz' => :build depends_on 'gobject-introspection' => :optional @@ -13,6 +20,20 @@ class Gstreamer < Formula depends_on 'glib' def install + ENV.append "CFLAGS", "-funroll-loops -fstrict-aliasing -fno-common" + + args = %W[ + --prefix=#{prefix} + --disable-debug + --disable-dependency-tracking + --disable-gtk-doc + ] + + if build.head? + ENV.append "NOCONFIGURE", "yes" + system "./autogen.sh" + end + # Look for plugins in HOMEBREW_PREFIX/lib/gstreamer-1.0 instead of # HOMEBREW_PREFIX/Cellar/gstreamer/1.0/lib/gstreamer-1.0, so we'll find # plugins installed by other packages without setting GST_PLUGIN_PATH in @@ -20,12 +41,8 @@ class Gstreamer < Formula inreplace "configure", 'PLUGINDIR="$full_var"', "PLUGINDIR=\"#{HOMEBREW_PREFIX}/lib/gstreamer-1.0\"" - ENV.append "CFLAGS", "-funroll-loops -fstrict-aliasing -fno-common" - - system "./configure", "--prefix=#{prefix}", - "--disable-debug", - "--disable-dependency-tracking" + system "./configure", *args system "make" - system "make install" + system "make", "install" end end |
