2014-04-30 13:20:49 +00:00
|
|
|
require "formula"
|
2010-06-16 19:09:57 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GstPluginsBase < Formula
|
2014-04-30 13:20:49 +00:00
|
|
|
homepage "http://gstreamer.freedesktop.org/"
|
2014-09-30 07:25:07 +00:00
|
|
|
url "http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.4.3.tar.xz"
|
|
|
|
mirror "http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-base-1.4.3.tar.xz"
|
|
|
|
sha256 "f7b4d2b3ba2bcac485896e2c1c36459cb091ebe8b49e91635c27d40f66792d9d"
|
2010-06-16 19:09:57 +00:00
|
|
|
|
2014-06-09 16:05:56 +00:00
|
|
|
bottle do
|
2014-09-30 08:11:44 +00:00
|
|
|
sha1 "09cb25f86c485f334f4f701eee22125524bd93dd" => :mavericks
|
|
|
|
sha1 "77616a42a385c63d6aace654bb46fd33911064b3" => :mountain_lion
|
|
|
|
sha1 "21f8ab77c6c49b9766c57b628f51019de745693e" => :lion
|
2014-06-09 16:05:56 +00:00
|
|
|
end
|
|
|
|
|
2013-09-20 15:15:55 +00:00
|
|
|
head do
|
2014-04-30 13:20:49 +00:00
|
|
|
url "git://anongit.freedesktop.org/gstreamer/gst-plugins-base"
|
2013-08-14 01:29:19 +00:00
|
|
|
|
2013-11-13 17:01:29 +00:00
|
|
|
depends_on :autoconf
|
2013-08-14 01:29:19 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
end
|
|
|
|
|
2014-04-30 13:20:49 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "gettext"
|
|
|
|
depends_on "gstreamer"
|
|
|
|
|
2011-02-21 20:33:06 +00:00
|
|
|
# The set of optional dependencies is based on the intersection of
|
2013-01-26 13:16:55 +00:00
|
|
|
# gst-plugins-base-0.10.35/REQUIREMENTS and Homebrew formulae
|
2014-04-30 13:20:49 +00:00
|
|
|
depends_on "gobject-introspection"
|
|
|
|
depends_on "orc" => :optional
|
|
|
|
depends_on "gtk+" => :optional
|
|
|
|
depends_on "libogg" => :optional
|
|
|
|
depends_on "pango" => :optional
|
|
|
|
depends_on "theora" => :optional
|
|
|
|
depends_on "libvorbis" => :optional
|
2010-06-16 19:09:57 +00:00
|
|
|
|
|
|
|
def install
|
2013-08-14 01:29:19 +00:00
|
|
|
|
2012-07-21 03:01:28 +00:00
|
|
|
# gnome-vfs turned off due to lack of formula for it.
|
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--enable-experimental
|
|
|
|
--disable-libvisual
|
|
|
|
--disable-alsa
|
|
|
|
--disable-cdparanoia
|
|
|
|
--without-x
|
|
|
|
--disable-x
|
|
|
|
--disable-xvideo
|
|
|
|
--disable-xshm
|
2013-08-14 01:29:19 +00:00
|
|
|
--disable-debug
|
|
|
|
--disable-dependency-tracking
|
2014-04-30 13:20:49 +00:00
|
|
|
--enable-introspection=yes
|
2012-07-21 03:01:28 +00:00
|
|
|
]
|
2013-08-14 01:29:19 +00:00
|
|
|
|
|
|
|
if build.head?
|
2014-05-15 17:38:45 +00:00
|
|
|
ENV["NOCONFIGURE"] = "yes"
|
2013-08-14 01:29:19 +00:00
|
|
|
system "./autogen.sh"
|
|
|
|
end
|
|
|
|
|
2012-07-21 03:01:28 +00:00
|
|
|
system "./configure", *args
|
2010-06-16 19:09:57 +00:00
|
|
|
system "make"
|
2013-08-14 01:29:19 +00:00
|
|
|
system "make", "install"
|
2010-06-16 19:09:57 +00:00
|
|
|
end
|
|
|
|
end
|