2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-05-11 22:19:56 +02:00
|
|
|
#
|
2013-06-06 01:53:29 +02:00
|
|
|
# live555
|
2011-05-11 22:19:56 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-05-11 22:19:56 +02:00
|
|
|
|
2014-01-13 13:43:10 +01:00
|
|
|
LIVE555_VERSION = 2014.01.11
|
2011-05-11 22:19:56 +02:00
|
|
|
LIVE555_SOURCE = live.$(LIVE555_VERSION).tar.gz
|
|
|
|
LIVE555_SITE = http://www.live555.com/liveMedia/public/
|
2014-01-13 13:43:10 +01:00
|
|
|
LIVE555_LICENSE = LGPLv2.1+
|
|
|
|
LIVE555_LICENSE_FILES = COPYING
|
2011-09-20 11:01:27 +02:00
|
|
|
LIVE555_INSTALL_STAGING = YES
|
2011-05-11 22:19:56 +02:00
|
|
|
|
2014-01-21 09:28:15 +01:00
|
|
|
LIVE555_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
|
|
|
|
ifndef ($(BR2_ENABLE_LOCALE),y)
|
|
|
|
LIVE555_CFLAGS += -DLOCALE_NOT_USED
|
|
|
|
endif
|
|
|
|
|
2011-05-11 22:19:56 +02:00
|
|
|
define LIVE555_CONFIGURE_CMDS
|
2014-01-21 09:28:15 +01:00
|
|
|
echo 'COMPILE_OPTS = $$(INCLUDES) -I. -DSOCKLEN_T=socklen_t $(LIVE555_CFLAGS)' >> $(@D)/config.linux
|
2011-05-11 22:19:56 +02:00
|
|
|
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
|
|
|
|
|
2011-09-20 11:01:27 +02:00
|
|
|
LIVE555_HEADERS_TO_INSTALL = \
|
|
|
|
liveMedia/include \
|
|
|
|
groupsock/include \
|
|
|
|
UsageEnvironment/include \
|
|
|
|
BasicUsageEnvironment/include
|
|
|
|
|
|
|
|
LIVE555_LIBS_TO_INSTALL = \
|
|
|
|
liveMedia/libliveMedia.a \
|
|
|
|
groupsock/libgroupsock.a \
|
|
|
|
UsageEnvironment/libUsageEnvironment.a \
|
|
|
|
BasicUsageEnvironment/libBasicUsageEnvironment.a
|
|
|
|
|
2011-05-11 22:19:56 +02:00
|
|
|
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
|
|
|
|
|
2011-09-20 11:01:27 +02:00
|
|
|
define LIVE555_INSTALL_STAGING_CMDS
|
|
|
|
for i in $(LIVE555_HEADERS_TO_INSTALL); do \
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/include/live/`dirname $$i`; \
|
|
|
|
cp -a $(@D)/$$i/* $(STAGING_DIR)/usr/include/live/`dirname $$i`; \
|
|
|
|
done; \
|
|
|
|
for i in $(LIVE555_LIBS_TO_INSTALL); do \
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/$$i $(STAGING_DIR)/usr/lib/`basename $$i`; \
|
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
2011-05-11 22:19:56 +02:00
|
|
|
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
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|