gst-rtsp-server 1.10.2 (new formula)
Closes #7589. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
81a05bee63
commit
56f38e525a
1 changed files with 31 additions and 0 deletions
31
Formula/gst-rtsp-server.rb
Normal file
31
Formula/gst-rtsp-server.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue