38 lines
1.4 KiB
Ruby
38 lines
1.4 KiB
Ruby
class GstRtspServer < Formula
|
|
desc "RTSP server library based on GStreamer"
|
|
homepage "https://gstreamer.freedesktop.org/modules/gst-rtsp-server.html"
|
|
url "https://gstreamer.freedesktop.org/src/gst-rtsp-server/gst-rtsp-server-1.12.4.tar.xz"
|
|
sha256 "7660112ebd59838f1054796b38109dcbe32f0a040e3a252a68a81055aeaa56a9"
|
|
|
|
bottle do
|
|
sha256 "b753f93bd19ed880d3f85fb4f73ed4b90544b15180c89eb8407109912c60428b" => :high_sierra
|
|
sha256 "f411dd2505d23ecb3f5fee805713844fcdc454f732d9307e6e8788f68b4aa79b" => :sierra
|
|
sha256 "978436a4f15f788ea2b8188e81efe8f4c5a1b288c099c7229adf09d9a6735a8e" => :el_capitan
|
|
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
|