2 # Copyright (C) 2006-2017 OpenWrt.org
3 # Copyright (C) 2011 Victor Seva <linuxmaniac@torreviejawireless.org>
4 # Copyright (C) 2017 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
:=git
://github.com
/cisco
/libsrtp.git
17 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE_VERSION
:=078c4a5b2a4380dea025998ceea9e0a1e3164d2d
19 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
23 PKG_LICENSE
:=BSD-3-Clause
24 PKG_LICENSE_FILES
:=LICENSE
25 PKG_MAINTAINER
:=Jiri Slachta
<jiri@slachta.eu
>
27 include $(INCLUDE_DIR
)/package.mk
29 TARGET_CFLAGS
+= $(FPIC
)
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
))