From bbd9ec07444a8ce4c9d4e938bdb8ee3ec56e5265 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Wed, 23 May 2018 12:50:04 +0200 Subject: libsrtp: new package Signed-off-by: Michael Olbrich --- rules/libsrtp.make | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 rules/libsrtp.make (limited to 'rules/libsrtp.make') 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 +# +# 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 ") + @$(call install_fixup, libsrtp,DESCRIPTION,missing) + + @$(call install_lib, libsrtp, 0, 0, 644, libsrtp2) + + @$(call install_finish, libsrtp) + + @$(call touch) + +# vim: syntax=make -- cgit v1.2.3