7cac07f7bf
This can be used to enable the compilation of the GStreamer AAC encoder and decoder based on the fdk-aac library.
78 lines
2.6 KiB
Ruby
78 lines
2.6 KiB
Ruby
class GstPluginsBad < Formula
|
|
desc "GStreamer plugins less supported, not fully tested"
|
|
homepage "https://gstreamer.freedesktop.org/"
|
|
url "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.12.1.tar.xz"
|
|
sha256 "7def8049d1c44e50199023159dfada60af58fd503ef58a020b79044bda705b97"
|
|
|
|
bottle do
|
|
sha256 "02b5d5467c0916699663e7cf38da6123b72423072024bdc878bc71ded08629c6" => :sierra
|
|
sha256 "9494d3af23d6213073d35ed7c8e488aa6f511dcdc1eab72532d2d1143ba403bb" => :el_capitan
|
|
sha256 "70580de61ee8eb3db316489f5d02ddae158ffafeecc604d9e2255a0443f9ca2e" => :yosemite
|
|
end
|
|
|
|
head do
|
|
url "https://anongit.freedesktop.org/git/gstreamer/gst-plugins-bad.git"
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
end
|
|
|
|
depends_on "libtool" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "gettext"
|
|
depends_on "gst-plugins-base"
|
|
depends_on "openssl"
|
|
depends_on "jpeg" => :recommended
|
|
depends_on "orc" => :recommended
|
|
depends_on "dirac" => :optional
|
|
depends_on "faac" => :optional
|
|
depends_on "faad2" => :optional
|
|
depends_on "fdk-aac" => :optional
|
|
depends_on "gnutls" => :optional
|
|
depends_on "gtk+3" => :optional
|
|
depends_on "libdvdread" => :optional
|
|
depends_on "libexif" => :optional
|
|
depends_on "libmms" => :optional
|
|
depends_on "homebrew/science/opencv" => :optional
|
|
depends_on "opus" => :optional
|
|
depends_on "rtmpdump" => :optional
|
|
depends_on "schroedinger" => :optional
|
|
depends_on "sound-touch" => :optional
|
|
depends_on "srtp" => :optional
|
|
depends_on "libvo-aacenc" => :optional
|
|
|
|
# gst-libs/gst/gl/cocoa/gstglwindow_cocoa.h is missing in the 1.12.1 release. Fixed by this commit:
|
|
# https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=450b1c92abe2ae8f84e557f61c9512a1f4006bab
|
|
patch do
|
|
url "https://raw.githubusercontent.com/Homebrew/formula-patches/4fba405/gst-plugins-bad/gstglwindow_cocoa.patch"
|
|
sha256 "fb6ee96a8c33bcf182ffd22b025bbc652d0225e87bceb9f24793ae9e520fa2cd"
|
|
end
|
|
|
|
def install
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--disable-yadif
|
|
--disable-sdl
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
]
|
|
|
|
args << "--with-gtk=3.0" if build.with? "gtk+3"
|
|
|
|
if build.head?
|
|
# autogen is invoked in "stable" build because we patch configure.ac
|
|
ENV["NOCONFIGURE"] = "yes"
|
|
system "./autogen.sh"
|
|
end
|
|
|
|
system "./configure", *args
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
gst = Formula["gstreamer"].opt_bin/"gst-inspect-1.0"
|
|
output = shell_output("#{gst} --plugin dvbsuboverlay")
|
|
assert_match version.to_s, output
|
|
end
|
|
end
|