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-11-02 16:28:02 +01:00
|
|
|
LIVE555_VERSION = 2014.11.01
|
2011-05-11 22:19:56 +02:00
|
|
|
LIVE555_SOURCE = live.$(LIVE555_VERSION).tar.gz
|
2014-07-31 10:46:58 +02:00
|
|
|
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)
|
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2014-11-17 09:18:15 +01:00
|
|
|
LIVE555_CONFIG_TARGET = linux
|
|
|
|
LIVE555_LIBRARY_LINK = $(TARGET_AR) cr
|
|
|
|
else
|
|
|
|
LIVE555_CONFIG_TARGET = linux-with-shared-libraries
|
|
|
|
LIVE555_LIBRARY_LINK = $(TARGET_CC) -o
|
2014-12-02 08:48:41 +01:00
|
|
|
LIVE555_CFLAGS += -fPIC
|
2014-11-17 09:18:15 +01:00
|
|
|
endif
|
|
|
|
|
2014-01-21 09:28:15 +01:00
|
|
|
ifndef ($(BR2_ENABLE_LOCALE),y)
|
|
|
|
LIVE555_CFLAGS += -DLOCALE_NOT_USED
|
|
|
|
endif
|
|
|
|
|
2011-05-11 22:19:56 +02:00
|
|
|
define LIVE555_CONFIGURE_CMDS
|
2014-11-17 09:18:15 +01:00
|
|
|
echo 'COMPILE_OPTS = $$(INCLUDES) -I. -DSOCKLEN_T=socklen_t $(LIVE555_CFLAGS)' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
|
|
|
echo 'C_COMPILER = $(TARGET_CC)' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
|
|
|
echo 'CPLUSPLUS_COMPILER = $(TARGET_CXX)' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
|
|
|
|
|
|
|
echo 'LINK = $(TARGET_CXX) -o' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
|
|
|
echo 'LINK_OPTS = -L. $(TARGET_LDFLAGS)' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
|
|
|
echo 'PREFIX = /usr' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
|
|
|
# Must have a whitespace at the end of LIBRARY_LINK, otherwise static link
|
|
|
|
# fails
|
|
|
|
echo 'LIBRARY_LINK = $(LIVE555_LIBRARY_LINK) ' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
|
|
|
(cd $(@D); ./genMakefiles $(LIVE555_CONFIG_TARGET))
|
2011-05-11 22:19:56 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIVE555_BUILD_CMDS
|
|
|
|
$(MAKE) -C $(@D) all
|
|
|
|
endef
|
|
|
|
|
2011-09-20 11:01:27 +02:00
|
|
|
define LIVE555_INSTALL_STAGING_CMDS
|
2014-11-17 09:18:14 +01:00
|
|
|
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(@D) install
|
2011-09-20 11:01:27 +02:00
|
|
|
endef
|
|
|
|
|
2011-05-11 22:19:56 +02:00
|
|
|
define LIVE555_INSTALL_TARGET_CMDS
|
2015-04-20 10:42:31 +02:00
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) PREFIX=/usr -C $(@D) install
|
2011-05-11 22:19:56 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|