kumquat-buildroot/package/libsrtp/libsrtp.mk
Gregory Dymarek 10f42fa8ae libsrtp: new package
[Thomas:
 - Add better Config.in help text and fix its indentation
 - Fix comment header in .mk file
 - Uncomment useful commented lines in .mk file (SITE and AUTORECONF)
 - Add LICENSE_FILES variable.
 - Add handling of static/shared libraries build/installation.
 - Add dependency on host-pkgconf, so that libsrtp installs its own
   .pc file.
 - Add optional dependency on OpenSSL.
 - Use github helper.
 - Remove hash file, since we're downloading from Git.]

Signed-off-by: Gregory Dymarek <gregd72002@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-01-01 11:22:52 +01:00

36 lines
1023 B
Makefile

################################################################################
#
# libsrtp
#
################################################################################
LIBSRTP_VERSION = v1.5.0
LIBSRTP_SITE = $(call github,cisco,libsrtp,$(LIBSRTP_VERSION))
LIBSRTP_AUTORECONF = YES
LIBSRTP_INSTALL_STAGING = YES
LIBSRTP_LICENSE = BSD-3c
LIBSRTP_LICENSE_FILES = LICENSE
ifeq ($(BR2_STATIC_LIBS),y)
LIBSRTP_MAKE_OPTS = libsrtp.a
else ifeq ($(BR2_SHARED_LIBS),y)
LIBSRTP_MAKE_OPTS = shared_library
else
LIBSRTP_MAKE_OPTS = libsrtp.a shared_library
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
ifeq ($(BR2_PACKAGE_OPENSSL),y)
LIBSRTP_DEPENDENCIES += openssl
LIBSRTP_CONF_OPTS += --enable-openssl
else
LIBSRTP_CONF_OPTS += --disable-openssl
endif
$(eval $(autotools-package))