33fe2794d7
Closes Homebrew/homebrew#22922. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
42 lines
992 B
Ruby
42 lines
992 B
Ruby
require 'formula'
|
|
|
|
class GstLibav < Formula
|
|
homepage 'http://gstreamer.freedesktop.org'
|
|
url 'http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-1.2.0.tar.xz'
|
|
mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-libav-1.2.0.tar.xz'
|
|
sha256 '48721eb318ffffdd134edea754d0b65d76b08c8209a8d2c8a42bca1f799f9099'
|
|
|
|
head do
|
|
url 'git://anongit.freedesktop.org/gstreamer/gst-libav'
|
|
|
|
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
|
|
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
|
|
system "#{Formula.factory("gstreamer").opt_prefix}/bin/gst-inspect-1.0", "libav"
|
|
end
|
|
end
|