git: 285b017f8010 - main - net/asterisk20: Fix build with G729 option

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Thu, 19 Dec 2024 17:33:26 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=285b017f8010334aa952fbeb1c0995cfb875dd24

commit 285b017f8010334aa952fbeb1c0995cfb875dd24
Author:     Oleksandr Kryvulia <o.kryvulia@flex-it.com.ua>
AuthorDate: 2024-12-19 17:30:58 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-12-19 17:30:58 +0000

    net/asterisk20: Fix build with G729 option
    
    Also update asterisk-core-sounds-en-g729 from 1.5 to 1.6.
    
    PR:     283417
    Fixes:  b85572488263 (Add net/asterisk20: LTS version of Asterisk PBX software)
---
 net/asterisk20/Makefile | 10 +++++-----
 net/asterisk20/distinfo |  6 +++++-
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/net/asterisk20/Makefile b/net/asterisk20/Makefile
index ac90e920cdd0..0f1fc9283ffe 100644
--- a/net/asterisk20/Makefile
+++ b/net/asterisk20/Makefile
@@ -1,12 +1,15 @@
 PORTNAME=	asterisk
 DISTVERSION=	20.11.0
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	https://downloads.asterisk.org/pub/telephony/%SUBDIR%/:DEFAULT,g729
 MASTER_SITE_SUBDIR=	asterisk/ \
 			asterisk/old-releases/ \
 			sounds/releases/:g729
 PKGNAMESUFFIX=	20
-DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
+		${ASTERISK_CORE_G729_SOUNDS}:g729 \
+		${ASTERISK_MOH_G729_SOUNDS}:g729
 DIST_SUBDIR=	${PORTNAME}
 EXTRACT_ONLY:=	${DISTNAME}${EXTRACT_SUFX}
 
@@ -129,9 +132,6 @@ FREETDS_LIB_DEPENDS=	libsybdb.so:databases/freetds
 FREETDS_CONFIGURE_ON=	--with-tds=${LOCALBASE}
 FREETDS_CONFIGURE_OFF=	--without-tds
 
-G729_DISTFILES=		${ASTERISK_CORE_G729_SOUNDS}:g729 \
-			${ASTERISK_MOH_G729_SOUNDS}:g729
-
 GEOLOCATION_USE=	GNOME=libxslt
 
 GSM_LIB_DEPENDS=	libgsm.so:audio/gsm
@@ -209,7 +209,7 @@ XMLDOC_CONFIGURE_ENABLE=	xmldoc
 XMPP_LIB_DEPENDS=	libiksemel.so:textproc/iksemel
 XMPP_CONFIGURE_WITH=	iksemel
 
-ASTERISK_CORE_G729_SOUNDS=	asterisk-core-sounds-en-g729-1.5.tar.gz
+ASTERISK_CORE_G729_SOUNDS=	asterisk-core-sounds-en-g729-1.6.tar.gz
 ASTERISK_MOH_G729_SOUNDS=	asterisk-moh-opsound-g729-2.03.tar.gz
 
 ASTERISK_USER=	asterisk
diff --git a/net/asterisk20/distinfo b/net/asterisk20/distinfo
index 58ab0036eb34..00c0f88d49a0 100644
--- a/net/asterisk20/distinfo
+++ b/net/asterisk20/distinfo
@@ -1,6 +1,10 @@
-TIMESTAMP = 1734078874
+TIMESTAMP = 1734618375
 SHA256 (asterisk/asterisk-20.11.0.tar.gz) = 69325bf5ae0b38b361c9fd2f936fafdf2387be9812e857bdeb379cbec252bcca
 SIZE (asterisk/asterisk-20.11.0.tar.gz) = 28333128
+SHA256 (asterisk/asterisk-core-sounds-en-g729-1.6.tar.gz) = b49dec15e07bb9bff6af0da3a07180651a38ef54d3ea54a3f20c35f081ed8714
+SIZE (asterisk/asterisk-core-sounds-en-g729-1.6.tar.gz) = 1557798
+SHA256 (asterisk/asterisk-moh-opsound-g729-2.03.tar.gz) = 0147ca9a97f0c550227aacb7793499057c4d2c64e021c95f93722f27d5549585
+SIZE (asterisk/asterisk-moh-opsound-g729-2.03.tar.gz) = 1103000
 SHA256 (asterisk/traud-asterisk-opus-83e1b458c77e0e287adeca494eeb79edb077b0ff_GH0.tar.gz) = 572a3c956371ed62b44a4bcd973db10eb4c84f3040cf7156e3acfad3b6bf3ded
 SIZE (asterisk/traud-asterisk-opus-83e1b458c77e0e287adeca494eeb79edb077b0ff_GH0.tar.gz) = 24044
 SHA256 (asterisk/pjsip-pjproject-2.14.1_GH0.tar.gz) = 6140f7a97e318caa89c17e8d5468599671c6eed12d64a7c160dac879ba004c68