2 # Copyright (C) 2014 OpenWrt.org
3 # Copyright (C) 2011 Victor Seva <linuxmaniac@torreviejawireless.org>
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=srtp-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=@SF/srtp
16 PKG_MD5SUM:=9b449edb011c934ca97009e7e0566d22
18 PKG_BUILD_DIR:=$(BUILD_DIR)/srtp
21 PKG_LICENSE:=BSD-3-Clause
22 PKG_LICENSE_FILES:=LICENSE
23 PKG_MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
25 include $(INCLUDE_DIR)/package.mk
27 TARGET_CFLAGS += $(FPIC)
28 CONFIGURE_ARGS += --disable-stdout --enable-syslog
30 define Package/libsrtp
34 TITLE:=Secure Real-time Transport Protocol (SRTP) library
35 URL:=http://sourceforge.net/projects/srtp
38 define Package/libsrtp/description
39 Open-source implementation of the Secure Real-time Transport
40 Protocol (SRTP) originally authored by Cisco Systems, Inc.
41 It is available under a BSD-style license.
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/include
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/srtp $(1)/usr/include/
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsrtp.{a,so*} $(1)/usr/lib/
52 define Package/libsrtp/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsrtp.so.* \
58 $(eval $(call BuildPackage,libsrtp))