2 # Copyright (C) 2006-2018 OpenWrt.org
3 # Copyright (C) 2011 Victor Seva <linuxmaniac@torreviejawireless.org>
4 # Copyright (C) 2017 - 2018 Jiri Slachta <jiri@slachta.eu>
6 # This is free software, licensed under the GNU General Public License v2.
7 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
16 PKG_SOURCE_URL
:=https
://github.com
/cisco
/libsrtp.git
17 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE_VERSION
:=2b091a4fb21c9b06fc5d4b5763bdaec97542fcd7
19 PKG_MIRROR_HASH
:=7ac6c3113fd7a966c9a9108c185d9425e75a8fdc600e4ccef158e68ee1988c89
20 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
22 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
24 PKG_LICENSE
:=BSD-3-Clause
25 PKG_LICENSE_FILES
:=LICENSE
26 PKG_MAINTAINER
:=Jiri Slachta
<jiri@slachta.eu
>
28 include $(INCLUDE_DIR
)/package.mk
34 define Package
/libsrtp
38 TITLE
:=Secure Real-time Transport Protocol
(SRTP
) library
40 URL
:=http
://sourceforge.net
/projects
/srtp
43 define Package
/libsrtp
/description
44 Open-source implementation of the Secure Real-time Transport
45 Protocol
(SRTP
) originally authored by Cisco Systems
, Inc.
46 It is available under a BSD-style license.
50 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
=$(PKG_INSTALL_DIR
) uninstall
51 $(call Build
/Install
/Default
)
54 define Build
/InstallDev
55 $(INSTALL_DIR
) $(1)/usr
/include
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/srtp
$(1)/usr
/include/
57 $(INSTALL_DIR
) $(1)/usr
/lib
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsrtp.
{a
,so
*} $(1)/usr
/lib
/
59 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libsrtp.
pc $(1)/usr
/lib
/pkgconfig
/
64 define Package
/libsrtp
/install
65 $(INSTALL_DIR
) $(1)/usr
/lib
67 $(PKG_INSTALL_DIR
)/usr
/lib
/libsrtp.so
* \
71 $(eval
$(call BuildPackage
,libsrtp
))