73 lines
2.2 KiB
Ruby
73 lines
2.2 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.2.tar.xz"
|
|
sha256 "9c2c7edde4f59d74eb414e0701c55131f562e5c605a3ce9b091754f106c09e37"
|
|
revision 1
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 "984fdfbdaf10dcb0d8c4e0c8c2851189952a154356f9da6952af19731af8c4db" => :sierra
|
|
sha256 "4b42ba3f130dc2b402ee7a9898121a79faa00f1f2d2e3ee6da46fd0cf48d123e" => :el_capitan
|
|
sha256 "b0f8e3f944433ef8c4b46d2be9997e5c73d76e659764b98f434dce50abf24538" => :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 "opencv@2" => :optional
|
|
depends_on "opus" => :optional
|
|
depends_on "rtmpdump" => :optional
|
|
depends_on "schroedinger" => :optional
|
|
depends_on "sound-touch" => :optional
|
|
depends_on "srtp@1.5" => :optional
|
|
depends_on "libvo-aacenc" => :optional
|
|
|
|
def install
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--disable-yadif
|
|
--disable-examples
|
|
--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
|