libsrtp2: move folder, bump to 2.3.0
[feed/telephony.git] / libs / libsrtp / Makefile
1 #
2 # Copyright (C) 2017 OpenWrt.org
3 # Copyright (C) 2017 Jiri Slachta <jiri@slachta.eu>
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libsrtp
11 PKG_VERSION:=2.3.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=libsrtp-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://codeload.github.com/cisco/libsrtp/tar.gz/v$(PKG_VERSION)?
16 PKG_HASH:=94093a5d04c5f4743e8d81182b76938374df6d393b45322f24960d250b0110e8
17
18 PKG_LICENSE:=BSD-3-Clause
19 PKG_LICENSE_FILES:=LICENSE
20 PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libsrtp2
25 SUBMENU:=Telephony
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=Secure RTP (SRTP) library, v$(PKG_VERSION)
29 URL:=http://sourceforge.net/projects/srtp
30 DEPENDS:=
31 endef
32
33 define Package/libsrtp2/description
34 Open-source implementation of the Secure Real-time Transport
35 Protocol (SRTP) originally authored by Cisco Systems, Inc.
36 It is available under a BSD-style license.
37 endef
38
39 define Build/Install
40 $(call Build/Install/Default,all shared_library install)
41 endef
42
43 define Build/InstallDev
44 $(INSTALL_DIR) $(1)/usr/include
45 $(CP) $(PKG_INSTALL_DIR)/usr/include/srtp2 $(1)/usr/include/
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsrtp2.{a,so*} $(1)/usr/lib/
48 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libsrtp2.pc $(1)/usr/lib/pkgconfig/
50 endef
51
52 define Package/libsrtp2/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) \
55 $(PKG_INSTALL_DIR)/usr/lib/libsrtp2.so.* \
56 $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,libsrtp2))