Files
telephony/net/rtpproxy/Makefile
Christian Marangi fcff90abe1 rtpproxy: bump to version 2025-11-04
Bump rtpproxy to version 2025-11-04. Each downstream patch got merged
and this fix the current compilation error with recvfromto.

rtpp_socket.c: In function 'rtpp_socket_rtp_recv':
rtpp_socket.c:262:31: error: passing argument 5 of 'recvfromto' from incompatible pointer type [-Wincompatible-pointer-types]
  262 |       sstosa(&packet->raddr), &packet->rlen, sstosa(&packet->_laddr), &llen,
      |                               ^~~~~~~~~~~~~
      |                               |
      |                               socklen_t * {aka unsigned int *}
In file included from rtpp_socket.c:45:
rtpp_network.h:56:3: note: expected 'size_t *' {aka 'long unsigned int *'} but argument is of type 'socklen_t *' {aka 'unsigned int *'}
   56 |   size_t *, struct sockaddr *, size_t *, struct timeval *);
      |   ^~~~~~~~

2 new trivial pending patch (proposed upstream) are now required to
permit correct compilation.

This bump from 2.x to 3.x but checking the changlog no breaking change
should be triggered by this version jump.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-11-20 12:59:39 +01:00

130 lines
3.5 KiB
Makefile

#
# Copyright (C) 2014 - 2018 OpenWrt.org
# Copyright (C) 2017 - 2018 Jiri Slachta <jiri@slachta.eu>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=rtpproxy
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/sippy/rtpproxy.git
PKG_SOURCE_DATE=2025-11-04
PKG_SOURCE_VERSION:=4909e7b75a9c33265cecd39d082240b26a43f075
PKG_RELEASE:=1
PKG_MIRROR_HASH:=cd7f184e485ea9ca1ad6dc0b3f2ebd8562cb6276fdc099caeb473d9f73910669
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
PKG_LICENSE:=BSD-2-Clause
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
include $(INCLUDE_DIR)/package.mk
define Package/rtpproxy/Default
SECTION:=net
CATEGORY:=Network
SUBMENU:=Telephony
URL:=http://www.rtpproxy.org/
endef
define Package/rtpproxy
$(call Package/rtpproxy/Default)
DEPENDS:=+libatomic +libpthread +librt
TITLE:=RTP (Realtime Transport Protocol) proxy
MENU:=1
endef
define Package/rtpproxy/conffiles
/etc/init.d/rtpproxy
/etc/config/rtpproxy
endef
define Package/rtpproxy-mod-acct-csv
$(call Package/rtpproxy/Default)
DEPENDS:=rtpproxy
TITLE:=RTPproxy CSV accounting module
endef
define Package/rtpproxy-mod-acct-rtcp-hep
$(call Package/rtpproxy/Default)
DEPENDS:=rtpproxy
TITLE:=RTPproxy RTCP HEP accounting module
endef
CONFIGURE_ARGS += \
--without-xsltproc \
--disable-debug
# Otherwise OpenWrt's CPPFLAGS are ignored
TARGET_CFLAGS+=$(TARGET_CPPFLAGS)
define Package/rtpproxy/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtpproxy $(1)/usr/bin
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/rtpproxy.init $(1)/etc/init.d/rtpproxy
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/rtpproxy.conf $(1)/etc/config/rtpproxy
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
$(INSTALL_BIN) ./files/rtpproxy.hotplug $(1)/etc/hotplug.d/iface/90-rtpproxy
endef
define Package/rtpproxy/postinst
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
echo
echo "o-------------------------------------------------------------------o"
echo "| RTPProxy note |"
echo "o-------------------------------------------------------------------o"
echo "| Edit /etc/config/rtpproxy to change basic init configuration. |"
echo "o-------------------------------------------------------------=^_^=-o"
echo
fi
exit 0
endef
define Package/rtpproxy-mod-acct-csv/install
$(INSTALL_DIR) $(1)/usr/lib/rtpproxy
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/rtpproxy/rtpp_acct_csv.so \
$(1)/usr/lib/rtpproxy
endef
define Package/rtpproxy-mod-acct-rtcp-hep/install
$(INSTALL_DIR) $(1)/usr/lib/rtpproxy
$(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/lib/rtpproxy/rtpp_acct_rtcp_hep.so \
$(1)/usr/lib/rtpproxy
endef
define Package/$(PKG_NAME)/Util
define Package/$(PKG_NAME)-util-$(1)
$(call Package/$(PKG_NAME)/Default)
DEPENDS:= $(PKG_NAME) $(patsubst +%,+PACKAGE_$(PKG_NAME)-util-$(1):%,$(2))
TITLE:=RTPproxy $(1) utility
endef
define Package/$(PKG_NAME)-util-$(1)/install
$$(INSTALL_DIR) $$(1)/usr/bin
$$(INSTALL_BIN) $$(PKG_INSTALL_DIR)/usr/bin/$(1) $$(1)/usr/bin
endef
$$(eval $$(call BuildPackage,$(PKG_NAME)-util-$(1)))
endef
$(eval $(call BuildPackage,rtpproxy))
$(eval $(call BuildPackage,rtpproxy-mod-acct-csv))
$(eval $(call BuildPackage,rtpproxy-mod-acct-rtcp-hep))
$(eval $(call Package/$(PKG_NAME)/Util,extractaudio,+bcg729 +libsndfile +libsrtp2))
$(eval $(call Package/$(PKG_NAME)/Util,makeann,+bcg729))