summaryrefslogtreecommitdiff
path: root/package/multimedia/live555/live555.mk
diff options
context:
space:
mode:
authorMike Williams <mwilli60@harris.com>2011-05-11 16:19:56 -0400
committerPeter Korsgaard <jacmet@sunsite.dk>2011-06-26 22:55:15 +0200
commit86885771d445daf47003aee6b2a9325dc62299ba (patch)
tree94d62975c08185e0d6b1784e696448dc89eba93c /package/multimedia/live555/live555.mk
parentf7fcfbfa9d1e571672877da8d85f838329713825 (diff)
package: Added Live555 RTSP Server package
[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>
Diffstat (limited to 'package/multimedia/live555/live555.mk')
-rw-r--r--package/multimedia/live555/live555.mk48
1 files changed, 48 insertions, 0 deletions
diff --git a/package/multimedia/live555/live555.mk b/package/multimedia/live555/live555.mk
new file mode 100644
index 000000000..45a037582
--- /dev/null
+++ b/package/multimedia/live555/live555.mk
@@ -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))