summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/libsrtp.in14
-rw-r--r--rules/libsrtp.make64
2 files changed, 78 insertions, 0 deletions
diff --git a/rules/libsrtp.in b/rules/libsrtp.in
new file mode 100644
index 000000000..44622d756
--- /dev/null
+++ b/rules/libsrtp.in
@@ -0,0 +1,14 @@
+## SECTION=multimedia_libs
+
+config LIBSRTP
+ tristate
+ select OPENSSL
+ prompt "libsrtp"
+ help
+ Secure RTP (SRTP) and UST Reference Implementations
+ SRTP is a security profile for RTP that adds confidentiality,
+ message authentication, and replay protection to that protocol.
+ It is specified in RFC 3711.
+ LibSRTP provides an implementation of the Secure Real-time Transport
+ Protocol (SRTP), the Universal Security Transform (UST), and a
+ supporting cryptographic kernel.
diff --git a/rules/libsrtp.make b/rules/libsrtp.make
new file mode 100644
index 000000000..ef7e0b376
--- /dev/null
+++ b/rules/libsrtp.make
@@ -0,0 +1,64 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBSRTP) += libsrtp
+
+#
+# Paths and names
+#
+LIBSRTP_VERSION := 2.2.0
+LIBSRTP_MD5 := f77a27457d219f2991ea7aa2f0c11ec9
+LIBSRTP := libsrtp-$(LIBSRTP_VERSION)
+LIBSRTP_SUFFIX := tar.gz
+LIBSRTP_URL := https://github.com/cisco/libsrtp/archive/v$(LIBSRTP_VERSION).$(LIBSRTP_SUFFIX)
+LIBSRTP_SOURCE := $(SRCDIR)/$(LIBSRTP).$(LIBSRTP_SUFFIX)
+LIBSRTP_DIR := $(BUILDDIR)/$(LIBSRTP)
+LIBSRTP_LICENSE := BSD-3-Clause
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+LIBSRTP_CONF_TOOL := autoconf
+LIBSRTP_CONF_OPT := \
+ $(CROSS_AUTOCONF_USR) \
+ --disable-debug-logging \
+ --enable-openssl \
+ --disable-openssl-kdf \
+ --enable-log-stdout
+
+LIBSRTP_MAKE_OPT := shared_library
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libsrtp.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, libsrtp)
+ @$(call install_fixup, libsrtp,PRIORITY,optional)
+ @$(call install_fixup, libsrtp,SECTION,base)
+ @$(call install_fixup, libsrtp,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
+ @$(call install_fixup, libsrtp,DESCRIPTION,missing)
+
+ @$(call install_lib, libsrtp, 0, 0, 644, libsrtp2)
+
+ @$(call install_finish, libsrtp)
+
+ @$(call touch)
+
+# vim: syntax=make