2013-02-12 15:03:02 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GstLibav < Formula
|
|
|
|
homepage 'http://gstreamer.freedesktop.org'
|
2014-07-21 13:20:49 +00:00
|
|
|
url 'http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-1.4.0.tar.xz'
|
|
|
|
mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-libav-1.4.0.tar.xz'
|
|
|
|
sha256 'c82c7a657863f2e27ac5cba539b0bd0a8114ad6bd4ba33bae777e4dbfab9e380'
|
2013-02-12 15:03:02 +00:00
|
|
|
|
2014-07-03 12:32:21 +00:00
|
|
|
bottle do
|
2014-07-21 19:33:06 +00:00
|
|
|
sha1 "c2010c686bb30bee5e1e44083b451bcfbd1d3f07" => :mavericks
|
|
|
|
sha1 "c2f7536137da1c4cba8ffdfab308bad45a2a1bee" => :mountain_lion
|
|
|
|
sha1 "f77dea47e02c8a4200b7081b0db95c41ab437b89" => :lion
|
2014-07-03 12:32:21 +00:00
|
|
|
end
|
|
|
|
|
2013-09-20 15:15:55 +00:00
|
|
|
head do
|
|
|
|
url 'git://anongit.freedesktop.org/gstreamer/gst-libav'
|
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
|
|
|
|
depends_on "gettext"
|
|
|
|
end
|
|
|
|
|
2013-02-12 15:03:02 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2013-08-09 15:05:38 +00:00
|
|
|
depends_on "yasm" => :build
|
2013-02-12 15:03:02 +00:00
|
|
|
depends_on "gst-plugins-base"
|
|
|
|
|
|
|
|
def install
|
2013-08-14 01:29:19 +00:00
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--disable-dependency-tracking
|
|
|
|
]
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
2013-02-12 15:03:02 +00:00
|
|
|
end
|
|
|
|
|
2013-03-23 22:01:42 +00:00
|
|
|
test do
|
2014-02-26 04:45:29 +00:00
|
|
|
system Formula["gstreamer"].opt_prefix/"bin/gst-inspect-1.0", "libav"
|
2013-02-12 15:03:02 +00:00
|
|
|
end
|
|
|
|
end
|