aboutsummaryrefslogtreecommitdiffstats
path: root/net/asterisk16
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2019-01-19 04:10:14 +0800
committerGuido Falsi <madpilot@FreeBSD.org>2019-01-19 04:10:14 +0800
commit63b3de2c1e7a1af701145ff2a9db8a9500556ca0 (patch)
treea3fd1c52009ff74d5d4a71b3d5c4dd383e4cf14a /net/asterisk16
parent54b7a1c063658855a84e7aedafc474913c821648 (diff)
downloadfreebsd-ports-gnome-63b3de2c1e7a1af701145ff2a9db8a9500556ca0.tar.gz
freebsd-ports-gnome-63b3de2c1e7a1af701145ff2a9db8a9500556ca0.tar.zst
freebsd-ports-gnome-63b3de2c1e7a1af701145ff2a9db8a9500556ca0.zip
Use github helper to get OPUS option distfile.
Suggested by: mat
Diffstat (limited to 'net/asterisk16')
-rw-r--r--net/asterisk16/Makefile16
-rw-r--r--net/asterisk16/distinfo6
2 files changed, 10 insertions, 12 deletions
diff --git a/net/asterisk16/Makefile b/net/asterisk16/Makefile
index 536a8ca23f1c..d83668d649ab 100644
--- a/net/asterisk16/Makefile
+++ b/net/asterisk16/Makefile
@@ -4,8 +4,7 @@ PORTNAME= asterisk
PORTVERSION= 16.1.1
PORTREVISION= 1
CATEGORIES= net
-MASTER_SITES= https://downloads.asterisk.org/pub/telephony/%SUBDIR%/:DEFAULT,g729 \
- https://github.com/traud/asterisk-opus/archive/:opus
+MASTER_SITES= https://downloads.asterisk.org/pub/telephony/%SUBDIR%/:DEFAULT,g729
MASTER_SITE_SUBDIR= asterisk/ \
asterisk/old-releases/ \
sounds/releases/:g729
@@ -32,6 +31,7 @@ USE_CSTD= gnu89
USE_GNOME= libxml2
USE_LDCONFIG= yes
USE_RC_SUBR= asterisk
+USE_GITHUB= nodefault
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --datarootdir=${DATADIR} \
@@ -172,10 +172,8 @@ ODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC \
libltdl.so:devel/libltdl
OPUS_LIB_DEPENDS= libopus.so:audio/opus
-OPUS_COMMIT= 83e1b458c77e0e287adeca494eeb79edb077b0ff
-OPUS_SRC= asterisk-opus-${OPUS_COMMIT}
-OPUS_EXTRACT_ONLY= ${OPUS_COMMIT}${EXTRACT_SUFX}
-OPUS_DISTFILES= ${OPUS_COMMIT}${EXTRACT_SUFX}:opus
+OPUS_EXTRACT_ONLY= ${DISTFILE_opus}
+OPUS_GH_TUPLE= traud:asterisk-opus:83e1b458c77e0e287adeca494eeb79edb077b0ff:opus
PGSQL_CONFIGURE_WITH= postgres
PGSQL_USES= pgsql
@@ -258,9 +256,9 @@ post-extract-G729-on:
${CP} ${DISTDIR}/${DIST_SUBDIR}/${ASTERISK_MOH_G729_SOUNDS} ${WRKSRC}/sounds
post-extract-OPUS-on:
- ${CP} ${WRKDIR}/${OPUS_SRC}/include/asterisk/* ${WRKSRC}/include/asterisk
- ${CP} ${WRKDIR}/${OPUS_SRC}/codecs/* ${WRKSRC}/codecs
- ${CP} ${WRKDIR}/${OPUS_SRC}/res/* ${WRKSRC}/res
+ ${CP} ${WRKSRC_opus}/include/asterisk/* ${WRKSRC}/include/asterisk
+ ${CP} ${WRKSRC_opus}/codecs/* ${WRKSRC}/codecs
+ ${CP} ${WRKSRC_opus}/res/* ${WRKSRC}/res
post-patch:
@${REINPLACE_CMD} -e 's|/var/lib|${PREFIX}/share|g' ${WRKSRC}/configs/samples/musiconhold.conf.sample
diff --git a/net/asterisk16/distinfo b/net/asterisk16/distinfo
index 67ec11b19ede..43b15dd05cf4 100644
--- a/net/asterisk16/distinfo
+++ b/net/asterisk16/distinfo
@@ -1,9 +1,9 @@
-TIMESTAMP = 1547164616
+TIMESTAMP = 1547834889
SHA256 (asterisk/asterisk-16.1.1.tar.gz) = bbf21452dfb213ecc0f24ef05d240e72b57cbc834f9e2e113062c2db2bde6ea5
SIZE (asterisk/asterisk-16.1.1.tar.gz) = 27490688
SHA256 (asterisk/asterisk-core-sounds-en-g729-1.5.tar.gz) = 8b28a59cfa53b59c76e0a191704f0708e3d83acffab8c5e6f25dfc599f0123f9
SIZE (asterisk/asterisk-core-sounds-en-g729-1.5.tar.gz) = 1551123
SHA256 (asterisk/asterisk-moh-opsound-g729-2.03.tar.gz) = 0147ca9a97f0c550227aacb7793499057c4d2c64e021c95f93722f27d5549585
SIZE (asterisk/asterisk-moh-opsound-g729-2.03.tar.gz) = 1103000
-SHA256 (asterisk/83e1b458c77e0e287adeca494eeb79edb077b0ff.tar.gz) = 572a3c956371ed62b44a4bcd973db10eb4c84f3040cf7156e3acfad3b6bf3ded
-SIZE (asterisk/83e1b458c77e0e287adeca494eeb79edb077b0ff.tar.gz) = 24044
+SHA256 (asterisk/traud-asterisk-opus-83e1b458c77e0e287adeca494eeb79edb077b0ff_GH0.tar.gz) = 572a3c956371ed62b44a4bcd973db10eb4c84f3040cf7156e3acfad3b6bf3ded
+SIZE (asterisk/traud-asterisk-opus-83e1b458c77e0e287adeca494eeb79edb077b0ff_GH0.tar.gz) = 24044