2 # Copyright (C) 2017 OpenWrt.org
3 # Copyright (C) 2017 Jiri Slachta <jiri@slachta.eu>
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE_VERSION
:=v
$(PKG_VERSION
)
16 PKG_SOURCE_URL
:=https
://github.com
/cisco
/libsrtp
17 PKG_MIRROR_HASH
:=7ee6ba7138e7e3c4b16dbb6aa1cd639dcca517f2aa3f7dafb2cf245d932e8448
19 PKG_MAINTAINER
:=Jiri Slachta
<jiri@slachta.eu
>
20 PKG_LICENSE
:=BSD-3-Clause
21 PKG_LICENSE_FILES
:=LICENSE
23 include $(INCLUDE_DIR
)/package.mk
25 CONFIGURE_ARGS
+=--enable-openssl
27 define Package
/libsrtp2
31 TITLE
:=Secure RTP
(SRTP
) library
, v
$(PKG_VERSION
)
32 URL
:=https
://github.com
/cisco
/libsrtp
37 define Package
/libsrtp2
/description
38 Open-source implementation of the Secure Real-time Transport
39 Protocol
(SRTP
) originally authored by Cisco Systems
, Inc.
40 It is available under a BSD-style license.
44 $(call Build
/Install
/Default
,all shared_library
install)
47 define Build
/InstallDev
48 $(INSTALL_DIR
) $(1)/usr
/include
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/srtp2
$(1)/usr
/include/
50 $(INSTALL_DIR
) $(1)/usr
/lib
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsrtp2.
{a
,so
*} $(1)/usr
/lib
/
52 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libsrtp2.
pc $(1)/usr
/lib
/pkgconfig
/
56 define Package
/libsrtp2
/install
57 $(INSTALL_DIR
) $(1)/usr
/lib
59 $(PKG_INSTALL_DIR
)/usr
/lib
/libsrtp2.so.
$(ABI_VERSION
)* \
63 $(eval
$(call BuildPackage
,libsrtp2
))