2014-12-12 16:42:44 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libsrtp
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-08-19 11:51:21 +02:00
|
|
|
LIBSRTP_VERSION = v2.2.0
|
2014-12-12 16:42:44 +01:00
|
|
|
LIBSRTP_SITE = $(call github,cisco,libsrtp,$(LIBSRTP_VERSION))
|
|
|
|
LIBSRTP_INSTALL_STAGING = YES
|
2017-03-30 15:43:38 +02:00
|
|
|
LIBSRTP_LICENSE = BSD-3-Clause
|
2014-12-12 16:42:44 +01:00
|
|
|
LIBSRTP_LICENSE_FILES = LICENSE
|
|
|
|
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2018-08-21 06:16:40 +02:00
|
|
|
LIBSRTP_MAKE_OPTS = libsrtp2.a
|
2014-12-12 16:42:44 +01:00
|
|
|
else ifeq ($(BR2_SHARED_LIBS),y)
|
|
|
|
LIBSRTP_MAKE_OPTS = shared_library
|
|
|
|
else
|
2018-08-21 06:16:40 +02:00
|
|
|
LIBSRTP_MAKE_OPTS = libsrtp2.a shared_library
|
2014-12-12 16:42:44 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
# While libsrtp is not using pkg-config itself, it checks if
|
|
|
|
# pkg-config is available to determine whether it should install
|
|
|
|
# libsrtp.pc. Since installing it seems useful, let's depend on
|
|
|
|
# host-pkgconf to make sure pkg-config is installed.
|
|
|
|
LIBSRTP_DEPENDENCIES = host-pkgconf
|
|
|
|
|
2015-02-28 12:27:57 +01:00
|
|
|
# openssl handling needs libdl support
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL)x$(BR2_STATIC_LIBS),yx)
|
2014-12-12 16:42:44 +01:00
|
|
|
LIBSRTP_DEPENDENCIES += openssl
|
|
|
|
LIBSRTP_CONF_OPTS += --enable-openssl
|
|
|
|
else
|
|
|
|
LIBSRTP_CONF_OPTS += --disable-openssl
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|