telephony: replace git:// URIs with https:// equivalents
[feed/telephony.git] / libs / libsrtp / Makefile
1 #
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>
5 #
6 # This is free software, licensed under the GNU General Public License v2.
7 # See /LICENSE for more information.
8 #
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libsrtp
12 PKG_VERSION:=1.5.4
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://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
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 TARGET_CFLAGS += $(FPIC)
30 CONFIGURE_ARGS += \
31 --disable-stdout \
32 --enable-syslog
33
34 define Package/libsrtp
35 SUBMENU:=Telephony
36 SECTION:=libs
37 CATEGORY:=Libraries
38 TITLE:=Secure Real-time Transport Protocol (SRTP) library
39 DEPENDS:=+libpcap
40 URL:=http://sourceforge.net/projects/srtp
41 endef
42
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.
47 endef
48
49 define Build/Install
50 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR=$(PKG_INSTALL_DIR) uninstall
51 $(call Build/Install/Default)
52 endef
53
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/
61 endef
62
63
64 define Package/libsrtp/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) \
67 $(PKG_INSTALL_DIR)/usr/lib/libsrtp.so.* \
68 $(1)/usr/lib/
69 endef
70
71 $(eval $(call BuildPackage,libsrtp))