2 # Copyright (C) 2014 - 2018 OpenWrt.org
3 # Copyright (C) 2017 - 2018 Jiri Slachta <jiri@slachta.eu>
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
12 PKG_VERSION
:=2.1.0-20170914
16 PKG_SOURCE_URL
:=https
://github.com
/sippy
/rtpproxy.git
17 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE_VERSION
:=589cc78cb8698b49aa408c6411c8720a2a0efe3c
19 PKG_MIRROR_HASH
:=087b363a7e5f112fe0c601e147ac087f528a500a25340cbccc12d90935876137
20 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.xz
22 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
23 PKG_CHECK_FORMAT_SECURITY
:=0
28 PKG_LICENSE
:=BSD-2-Clause
29 PKG_LICENSE_FILES
:=COPYING
30 PKG_MAINTAINER
:=Jiri Slachta
<jiri@slachta.eu
>
32 include $(INCLUDE_DIR
)/package.mk
34 define Package
/rtpproxy
/Default
38 URL
:=http
://www.rtpproxy.org
/
41 define Package
/rtpproxy
42 $(call Package
/rtpproxy
/Default
)
43 DEPENDS
:=+libpthread
+librt
44 TITLE
:=RTP
(Realtime Transport Protocol
) proxy
48 define Package
/rtpproxy
/conffiles
53 define Package
/rtpproxy-mod-acct-csv
54 $(call Package
/rtpproxy
/Default
)
56 TITLE
:=RTPproxy accounting module
60 ac_cv_lib_bcg729_initBcg729EncoderChannel
=no
62 # Otherwise OpenWrt's CPPFLAGS are ignored
63 TARGET_CFLAGS
+=$(TARGET_CPPFLAGS
)
65 define Package
/rtpproxy
/install
66 $(INSTALL_DIR
) $(1)/usr
/bin
67 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/rtpproxy
$(1)/usr
/bin
/
69 $(INSTALL_DIR
) $(1)/etc
/init.d
70 $(INSTALL_BIN
) .
/files
/rtpproxy.init
$(1)/etc
/init.d
/rtpproxy
72 $(INSTALL_DIR
) $(1)/etc
/config
73 $(INSTALL_CONF
) .
/files
/rtpproxy.config
$(1)/etc
/config
/rtpproxy
76 define Package
/rtpproxy-mod-acct-csv
/install
77 $(INSTALL_DIR
) $(1)/usr
/lib
/rtpproxy
78 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/rtpproxy
/rtpp_acct_csv.so \
82 $(eval
$(call BuildPackage
,rtpproxy
))
83 $(eval
$(call BuildPackage
,rtpproxy-mod-acct-csv
))