diff --git a/Formula/gst-rtsp-server.rb b/Formula/gst-rtsp-server.rb new file mode 100644 index 0000000000..bbf7a38187 --- /dev/null +++ b/Formula/gst-rtsp-server.rb @@ -0,0 +1,31 @@ +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.10.2.tar.xz" + sha256 "822dd6f754fea2bbf3369a7c388372f49b74668fb57943c1888675e544b07235" + + 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