summaryrefslogtreecommitdiffstats
path: root/rules/libsrtp.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-05-23 12:50:04 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-05-23 12:50:04 +0200
commitbbd9ec07444a8ce4c9d4e938bdb8ee3ec56e5265 (patch)
treedd2119148453465c2709ca6d25a23a2400bda22c /rules/libsrtp.make
parent3330e54387ebce65cbfdd483d4de097e51a8c6bf (diff)
downloadptxdist-bbd9ec07444a8ce4c9d4e938bdb8ee3ec56e5265.tar.gz
ptxdist-bbd9ec07444a8ce4c9d4e938bdb8ee3ec56e5265.tar.xz
libsrtp: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/libsrtp.make')
-rw-r--r--rules/libsrtp.make64
1 files changed, 64 insertions, 0 deletions
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