homebrew-core/Formula/gst-rtsp-server.rb

38 lines
1.4 KiB
Ruby
Raw Normal View History

class GstRtspServer < Formula
desc "RTSP server library based on GStreamer"
homepage "https://gstreamer.freedesktop.org/modules/gst-rtsp-server.html"
2017-02-23 15:08:23 +00:00
url "https://gstreamer.freedesktop.org/src/gst-rtsp-server/gst-rtsp-server-1.10.4.tar.xz"
sha256 "2f6e12fd4e3568ee190dc24e57e4c3a878971c3a3fb6904a9674404fac256de6"
2016-12-06 12:11:40 +00:00
bottle do
2017-02-23 15:59:13 +00:00
sha256 "0faf3f63162addc60df3bc70bcf281a511ef1253b760055c417ff9b61bfec2bd" => :sierra
sha256 "53ede4a9738a7a83c93e9166ae56411fd1ac77d4db4e01d0defe1696e85689f1" => :el_capitan
sha256 "14e37b7c0f92c4bb9026e7edc02382aa52a51618a932fff92711d82577e97751" => :yosemite
2016-12-06 12:11:40 +00:00
end
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "gettext"
depends_on "gstreamer"
depends_on "gst-plugins-base"
depends_on "gobject-introspection"
def install
system "./configure", "--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--disable-examples",
"--disable-tests",
"--enable-introspection=yes"
system "make", "install"
end
test do
gst = Formula["gstreamer"].opt_bin/"gst-inspect-1.0"
output = shell_output("#{gst} --gst-plugin-path #{lib} --plugin rtspclientsink")
assert_match /\s#{version.to_s}\s/, output
end
end