Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2018 07:45:49 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r476806 - in head: japanese/asterisk-sounds net/asterisk13 net/asterisk15
Message-ID:  <201808100745.w7A7jnp7001081@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Fri Aug 10 07:45:49 2018
New Revision: 476806
URL: https://svnweb.freebsd.org/changeset/ports/476806

Log:
  Reverse the dependency link between asterisk and japanese/asterisk-sounds,
  adding it as an optional RUN_DEPENDS to the asterisk ports.
  
  This allows installing these sounds with any version of asterisk.
  
  Suggested by:	mat

Modified:
  head/japanese/asterisk-sounds/Makefile
  head/net/asterisk13/Makefile
  head/net/asterisk15/Makefile

Modified: head/japanese/asterisk-sounds/Makefile
==============================================================================
--- head/japanese/asterisk-sounds/Makefile	Fri Aug 10 06:22:24 2018	(r476805)
+++ head/japanese/asterisk-sounds/Makefile	Fri Aug 10 07:45:49 2018	(r476806)
@@ -3,7 +3,7 @@
 
 PORTNAME=	asterisk
 PORTVERSION=	1.6
-PORTREVISION=	1
+PORTREVISION=	2
 PORTEPOCH=	1
 CATEGORIES=	japanese net
 MASTER_SITES=	http://ftp.voip-info.jp/asterisk/sounds/${PORTVERSION:S|.|_|}/ \
@@ -13,8 +13,6 @@ DISTNAME=	asterisk-sound-jp_${PORTVERSION:S|.||}_pre
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Japanese sound files for Asterisk
-
-RUN_DEPENDS=	asterisk:net/asterisk13
 
 NO_BUILD=	yes
 ASTERISKDIR=	${PREFIX}/share/asterisk/sounds

Modified: head/net/asterisk13/Makefile
==============================================================================
--- head/net/asterisk13/Makefile	Fri Aug 10 06:22:24 2018	(r476805)
+++ head/net/asterisk13/Makefile	Fri Aug 10 07:45:49 2018	(r476806)
@@ -91,9 +91,10 @@ MENU_DESC=			Menuselect Interface Backend
 NEWT_DESC=			Newt User Interface
 
 OPTIONS_GROUP+=			SOUNDS
-OPTIONS_GROUP_SOUNDS=		G729
-SOUNDS_DESC=			Core and Music-on-Hold (MoH) Sound Files
+OPTIONS_GROUP_SOUNDS=		G729 JAPANESE
+SOUNDS_DESC=			Core and/or Music-on-Hold (MoH) Sound Files
 G729_DESC=			Install G.729 format sounds
+JAPANESE_DESC=			Install Japanese voice prompts
 ASTERISK_CORE_G729_SOUNDS=	asterisk-core-sounds-en-g729-1.5.tar.gz
 ASTERISK_MOH_G729_SOUNDS=	asterisk-moh-opsound-g729-2.03.tar.gz
 G729_DISTFILES=			${ASTERISK_CORE_G729_SOUNDS}:g729 \
@@ -141,6 +142,8 @@ GCC_USE=		GCC=yes
 
 GSM_CONFIGURE_WITH=	gsm
 GSM_LIB_DEPENDS=	libgsm.so:audio/gsm
+
+JAPANESE_RUN_DEPENDS=	${LOCALBASE}/share/asterisk/sounds/ja/digits/0.gsm:japanese/asterisk-sounds
 
 LDAP_CONFIGURE_WITH=	ldap
 LDAP_USE=		OPENLDAP=yes

Modified: head/net/asterisk15/Makefile
==============================================================================
--- head/net/asterisk15/Makefile	Fri Aug 10 06:22:24 2018	(r476805)
+++ head/net/asterisk15/Makefile	Fri Aug 10 07:45:49 2018	(r476806)
@@ -92,9 +92,10 @@ MENU_DESC=			Menuselect Interface Backend
 NEWT_DESC=			Newt User Interface
 
 OPTIONS_GROUP+=			SOUNDS
-OPTIONS_GROUP_SOUNDS=		G729
-SOUNDS_DESC=			Core and Music-on-Hold (MoH) Sound Files
+OPTIONS_GROUP_SOUNDS=		G729 JAPANESE
+SOUNDS_DESC=			Core and/or Music-on-Hold (MoH) Sound Files
 G729_DESC=			Install G.729 format sounds
+JAPANESE_DESC=			Install Japanese voice prompts
 ASTERISK_CORE_G729_SOUNDS=	asterisk-core-sounds-en-g729-1.5.tar.gz
 ASTERISK_MOH_G729_SOUNDS=	asterisk-moh-opsound-g729-2.03.tar.gz
 G729_DISTFILES=			${ASTERISK_CORE_G729_SOUNDS}:g729 \
@@ -142,6 +143,8 @@ GCC_USE=		GCC=yes
 
 GSM_CONFIGURE_WITH=	gsm
 GSM_LIB_DEPENDS=	libgsm.so:audio/gsm
+
+JAPANESE_RUN_DEPENDS=	${LOCALBASE}/share/asterisk/sounds/ja/digits/0.gsm:japanese/asterisk-sounds
 
 LDAP_CONFIGURE_WITH=	ldap
 LDAP_USE=		OPENLDAP=yes



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808100745.w7A7jnp7001081>