package: Added Live555 RTSP Server package
authorMike Williams <mwilli60@harris.com>
Wed, 11 May 2011 20:19:56 +0000 (16:19 -0400)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 26 Jun 2011 20:55:15 +0000 (22:55 +0200)
[Peter: misc fixes, use real version, correct compile/link flags]
Signed-off-by: Mike Williams <mwilli60@harris.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/multimedia/Config.in
package/multimedia/live555/Config.in [new file with mode: 0644]
package/multimedia/live555/live555.mk [new file with mode: 0644]

index b3d1e073a7fb3e62155048dad31039c56828c1a1..79c601c572e158196a61939bfca5af3de1785112 100644 (file)
@@ -31,6 +31,7 @@ source "package/multimedia/libsamplerate/Config.in"
 source "package/multimedia/libsndfile/Config.in"
 source "package/multimedia/libtheora/Config.in"
 source "package/multimedia/libvorbis/Config.in"
+source "package/multimedia/live555/Config.in"
 source "package/multimedia/madplay/Config.in"
 source "package/multimedia/mpd/Config.in"
 source "package/multimedia/mpg123/Config.in"
diff --git a/package/multimedia/live555/Config.in b/package/multimedia/live555/Config.in
new file mode 100644 (file)
index 0000000..610fafc
--- /dev/null
@@ -0,0 +1,33 @@
+config BR2_PACKAGE_LIVE555
+       bool "live555"
+       depends on BR2_INSTALL_LIBSTDCPP
+       help
+         LIVE555 Streaming Media forms a set of C++ libraries for multimedia
+         streaming, using open standard protocols (RTP/RTCP, RTSP, SIP).
+
+         http://www.live555.com/liveMedia/
+
+config BR2_PACKAGE_LIVE555_OPENRTSP
+       bool "OpenRTSP"
+       depends on BR2_PACKAGE_LIVE555
+       default y
+       help
+         Live555 RTSP Client.
+
+config BR2_PACKAGE_LIVE555_MEDIASERVER
+       bool "live555MediaServer"
+       depends on BR2_PACKAGE_LIVE555
+       default y
+       help
+         RTSP Server. Supports numerous media formats such as H.264 and MPEG2.
+
+config BR2_PACKAGE_LIVE555_MPEG2_INDEXER
+       bool "MPEG2TransportStreamIndexer"
+       depends on BR2_PACKAGE_LIVE555
+       default y
+       help
+         MPEG2 Transport Stream Indexer. Provides indexes allowing 'trick play'
+         operation in the Live555MediaServer.
+
+comment "Live555 needs C++ compiler"
+       depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/multimedia/live555/live555.mk b/package/multimedia/live555/live555.mk
new file mode 100644 (file)
index 0000000..45a0375
--- /dev/null
@@ -0,0 +1,48 @@
+#############################################################
+#
+# live555 streaming media
+#
+#############################################################
+
+LIVE555_VERSION = 2011.06.16
+LIVE555_SOURCE = live.$(LIVE555_VERSION).tar.gz
+LIVE555_SITE = http://www.live555.com/liveMedia/public/
+LIVE555_INSTALL_TARGET = YES
+
+define LIVE555_CONFIGURE_CMDS
+       echo 'COMPILE_OPTS = $$(INCLUDES) -I. -DSOCKLEN_T=socklen_t $(TARGET_CFLAGS)' >> $(@D)/config.linux
+       echo 'C_COMPILER = $(TARGET_CC)' >> $(@D)/config.linux
+       echo 'CPLUSPLUS_COMPILER = $(TARGET_CXX)' >> $(@D)/config.linux
+       echo 'LINK = $(TARGET_CXX) -o' >> $(@D)/config.linux
+       echo 'LINK_OPTS = -L. $(TARGET_LDFLAGS)' >> $(@D)/config.linux
+       (cd $(@D); ./genMakefiles linux)
+endef
+
+define LIVE555_BUILD_CMDS
+       $(MAKE) -C $(@D) all
+endef
+
+define LIVE555_CLEAN_CMDS
+       $(MAKE) -C $(@D) clean
+endef
+
+LIVE555_FILES_TO_INSTALL- =
+LIVE555_FILES_TO_INSTALL-y =
+LIVE555_FILES_TO_INSTALL-$(BR2_PACKAGE_LIVE555_OPENRTSP) += testProgs/openRTSP
+LIVE555_FILES_TO_INSTALL-$(BR2_PACKAGE_LIVE555_MEDIASERVER) += mediaServer/live555MediaServer
+LIVE555_FILES_TO_INSTALL-$(BR2_PACKAGE_LIVE555_MPEG2_INDEXER) += testProgs/MPEG2TransportStreamIndexer
+LIVE555_FILES_TO_INSTALL- += $(LIVE555_FILES_TO_INSTALL-y)
+
+define LIVE555_INSTALL_TARGET_CMDS
+       for i in $(LIVE555_FILES_TO_INSTALL-y); do \
+               $(INSTALL) -D -m 0755 $(@D)/$$i $(TARGET_DIR)/usr/bin/`basename $$i`; \
+       done
+endef
+
+define LIVE555_UNINSTALL_TARGET_CMDS
+       for i in $(LIVE555_FILES_TO_INSTALL-); do \
+               rm -f $(addprefix $(TARGET_DIR)/usr/bin/, `basename $$i`); \
+       done
+endef
+
+$(eval $(call GENTARGETS,package/multimedia,live555))