libsrtp: remove
[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.2.0
12 PKG_RELEASE:=2
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:=94ac00d5ac6409e3f6409e4a5edfcdbdaa7fdabe
18 PKG_MIRROR_HASH:=0429edcddfe9d36ee47eb221384c528bbe31ee9255e216f9755641c7b6083457
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22
23 PKG_LICENSE:=BSD-3-Clause
24 PKG_LICENSE_FILES:=LICENSE
25 PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/libsrtp2
30 SUBMENU:=Telephony
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=Secure RTP (SRTP) library, v$(PKG_VERSION)
34 URL:=http://sourceforge.net/projects/srtp
35 DEPENDS:=
36 endef
37
38 define Package/libsrtp2/description
39 Open-source implementation of the Secure Real-time Transport
40 Protocol (SRTP) originally authored by Cisco Systems, Inc.
41 It is available under a BSD-style license.
42 endef
43
44 define Build/Install
45 $(call Build/Install/Default,all shared_library install)
46 endef
47
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/include
50 $(CP) $(PKG_INSTALL_DIR)/usr/include/srtp2 $(1)/usr/include/
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsrtp2.{a,so*} $(1)/usr/lib/
53 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libsrtp2.pc $(1)/usr/lib/pkgconfig/
55 endef
56
57 define Package/libsrtp2/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) \
60 $(PKG_INSTALL_DIR)/usr/lib/libsrtp2.so* \
61 $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,libsrtp2))