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
|
|
|
|
2020-09-21 10:32:57 +02:00
|
|
|
LIVE555_VERSION = 2020.08.19
|
2011-05-11 22:19:56 +02:00
|
|
|
LIVE555_SOURCE = live.$(LIVE555_VERSION).tar.gz
|
2019-10-06 17:53:28 +02:00
|
|
|
LIVE555_SITE = http://www.live555.com/liveMedia/public
|
2020-08-13 10:22:35 +02:00
|
|
|
# There is a COPYING file with the GPL-3.0 license text, but none of
|
|
|
|
# the source files appear to be released under GPL-3.0, and the
|
|
|
|
# project web site says it's licensed under the LGPL:
|
|
|
|
# http://live555.com/liveMedia/faq.html#copyright-and-license
|
|
|
|
LIVE555_LICENSE = LGPL-3.0+
|
|
|
|
LIVE555_LICENSE_FILES = COPYING.LESSER
|
2021-03-03 10:24:28 +01:00
|
|
|
LIVE555_CPE_ID_VENDOR = live555
|
|
|
|
LIVE555_CPE_ID_PRODUCT = streaming_media
|
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
|
|
|
|
|
2020-07-04 12:24:43 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2020-07-13 17:51:34 +02:00
|
|
|
LIVE555_DEPENDENCIES += host-pkgconf openssl
|
|
|
|
LIVE555_CONSOLE_LIBS = `$(PKG_CONFIG_HOST_BINARY) --libs openssl`
|
|
|
|
# passed to ar for static linking, which gets confused by -L<dir>
|
|
|
|
ifneq ($(BR2_STATIC_LIBS),y)
|
|
|
|
LIVE555_LIVEMEDIA_LIBS = $(LIVE555_CONSOLE_LIBS)
|
|
|
|
endif
|
2020-07-04 12:24:43 +02:00
|
|
|
else
|
|
|
|
LIVE555_CFLAGS += -DNO_OPENSSL
|
|
|
|
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)
|
2020-07-13 17:51:34 +02:00
|
|
|
echo 'LIBS_FOR_CONSOLE_APPLICATION = $(LIVE555_CONSOLE_LIBS)' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
|
|
|
echo 'LIBS_FOR_LIVEMEDIA_LIB = $(LIVE555_LIVEMEDIA_LIBS)' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
2014-11-17 09:18:15 +01:00
|
|
|
(cd $(@D); ./genMakefiles $(LIVE555_CONFIG_TARGET))
|
2011-05-11 22:19:56 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIVE555_BUILD_CMDS
|
2016-10-14 00:13:47 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) all
|
2011-05-11 22:19:56 +02:00
|
|
|
endef
|
|
|
|
|
2011-09-20 11:01:27 +02:00
|
|
|
define LIVE555_INSTALL_STAGING_CMDS
|
2016-10-14 00:13:47 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(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
|
2016-10-14 00:13:47 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(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))
|