telephony: replace git:// URIs with https:// equivalents
[feed/telephony.git] / libs / libsrtp2 / 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:=libsrtp2
11 PKG_VERSION:=2.0.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://github.com/cisco/libsrtp.git
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE_VERSION:=12ea269db3e4e9af7ce5de524fe07312fa6e035b
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 PKG_LICENSE:=BSD-3-Clause
23 PKG_LICENSE_FILES:=LICENSE
24 PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/libsrtp2
29 SUBMENU:=Telephony
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=Secure RTP (SRTP) library, v$(PKG_VERSION)
33 URL:=http://sourceforge.net/projects/srtp
34 DEPENDS:=+libpcap
35 endef
36
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.
41 endef
42
43 define Build/Install
44 $(call Build/Install/Default,all shared_library install)
45 endef
46
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/
54 endef
55
56 define Package/libsrtp2/install
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(INSTALL_BIN) \
59 $(PKG_INSTALL_DIR)/usr/lib/libsrtp2.so.* \
60 $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,libsrtp2))