Merge pull request #248 from micmac1/master-mirror-hash-jiri
[feed/telephony.git] / net / rtpproxy / Makefile
1 #
2 # Copyright (C) 2014 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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=rtpproxy
12 PKG_VERSION:=2.0.0
13 PKG_RELEASE:=2
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://github.com/sippy/rtpproxy.git
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=d5926892630139bcbe55d1f3fa36764c881648bc
19 PKG_MIRROR_HASH:=7da4a9b83f01b4169cf3f087c76e73fd9b4f5afb8d543c4663e874d8d9b1b26a
20 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
21
22 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
23 PKG_CHECK_FORMAT_SECURITY:=0
24 PKG_INSTALL:=1
25
26 PKG_LICENSE:=BSD-2-Clause
27 PKG_LICENSE_FILES:=COPYING
28 PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
29
30 include $(INCLUDE_DIR)/package.mk
31
32 define Package/rtpproxy
33 SECTION:=net
34 CATEGORY:=Network
35 SUBMENU:=Telephony
36 DEPENDS:=+libpthread +librt
37 TITLE:=RTP (Realtime Transport Protocol) proxy
38 URL:=http://www.rtpproxy.org/
39 endef
40
41 CONFIGURE_VARS += \
42 ac_cv_lib_bcg729_initBcg729EncoderChannel=no
43
44 define Package/rtpproxy/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtpproxy $(1)/usr/bin/
47
48 $(INSTALL_DIR) $(1)/etc/init.d
49 $(INSTALL_BIN) ./files/rtpproxy.init $(1)/etc/init.d/rtpproxy
50
51 $(INSTALL_DIR) $(1)/etc/config
52 $(INSTALL_BIN) ./files/rtpproxy.config $(1)/etc/config/rtpproxy
53 endef
54
55 $(eval $(call BuildPackage,rtpproxy))