60 lines
1.6 KiB
Ruby
60 lines
1.6 KiB
Ruby
class GstPluginsUgly < Formula
|
|
desc "Library for constructing graphs of media-handling components"
|
|
homepage "https://gstreamer.freedesktop.org/"
|
|
url "https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-1.16.0.tar.xz"
|
|
sha256 "e30964c5f031c32289e0b25e176c3c95a5737f2052dfc81d0f7427ef0233a4c2"
|
|
revision 1
|
|
|
|
bottle do
|
|
sha256 "b09a5e7b9ba0e55024fa55e20543619b2679377455ed2e6524a411e016205ed0" => :mojave
|
|
sha256 "dfa52bed6d12bb9cf1a4c92e207a001c5a5fd377bae6afe6bf73d5965eac364f" => :high_sierra
|
|
sha256 "3d9febe0a06ecba01d219dcd1b4333aa679ace7fb12de8a02c146786367b0399" => :sierra
|
|
end
|
|
|
|
head do
|
|
url "https://anongit.freedesktop.org/git/gstreamer/gst-plugins-ugly.git"
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "flac"
|
|
depends_on "gettext"
|
|
depends_on "gst-plugins-base"
|
|
depends_on "jpeg"
|
|
depends_on "lame"
|
|
depends_on "libmms"
|
|
depends_on "libshout"
|
|
depends_on "libvorbis"
|
|
depends_on "pango"
|
|
depends_on "theora"
|
|
depends_on "x264"
|
|
|
|
def install
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--mandir=#{man}
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
--disable-amrnb
|
|
--disable-amrwb
|
|
]
|
|
|
|
if build.head?
|
|
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 dvdsub")
|
|
assert_match version.to_s, output
|
|
end
|
|
end
|