From owner-svn-ports-head@freebsd.org Thu Apr 12 11:07:20 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2935AF8A82D; Thu, 12 Apr 2018 11:07:20 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CD9C682B7E; Thu, 12 Apr 2018 11:07:19 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C6FD72384; Thu, 12 Apr 2018 11:07:19 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3CB7JJq048248; Thu, 12 Apr 2018 11:07:19 GMT (envelope-from madpilot@FreeBSD.org) Received: (from madpilot@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3CB7JwI048245; Thu, 12 Apr 2018 11:07:19 GMT (envelope-from madpilot@FreeBSD.org) Message-Id: <201804121107.w3CB7JwI048245@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: madpilot set sender to madpilot@FreeBSD.org using -f From: Guido Falsi Date: Thu, 12 Apr 2018 11:07:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r467143 - in head: audio/asterisk-espeak audio/asterisk-flite net/asterisk-g72x X-SVN-Group: ports-head X-SVN-Commit-Author: madpilot X-SVN-Commit-Paths: in head: audio/asterisk-espeak audio/asterisk-flite net/asterisk-g72x X-SVN-Commit-Revision: 467143 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2018 11:07:20 -0000 Author: madpilot Date: Thu Apr 12 11:07:19 2018 New Revision: 467143 URL: https://svnweb.freebsd.org/changeset/ports/467143 Log: Add flavors to asterisk modules to produce packages for all asterisk versions present in the ports tree. Approved by: portmgr (mat) Differential Revision: https://reviews.freebsd.org/D15007 Modified: head/audio/asterisk-espeak/Makefile head/audio/asterisk-flite/Makefile head/net/asterisk-g72x/Makefile Modified: head/audio/asterisk-espeak/Makefile ============================================================================== --- head/audio/asterisk-espeak/Makefile Thu Apr 12 11:04:13 2018 (r467142) +++ head/audio/asterisk-espeak/Makefile Thu Apr 12 11:07:19 2018 (r467143) @@ -1,8 +1,9 @@ # $FreeBSD$ -PORTNAME= asterisk-espeak +PORTNAME= espeak PORTVERSION= 4.0 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= audio MAINTAINER= madpilot@FreeBSD.org @@ -12,9 +13,20 @@ LICENSE= GPLv2 LIB_DEPENDS= libespeak.so:audio/espeak \ libsamplerate.so:audio/libsamplerate -BUILD_DEPENDS= asterisk:net/asterisk13 -RUN_DEPENDS= asterisk:net/asterisk13 +FLAVORS= asterisk13 asterisk15 +FLAVOR?= ${FLAVORS[1]} + +asterisk13_PKGNAMEPREFIX= asterisk13- +asterisk13_CONFLICTS_INSTALL= asterisk15-espeak +asterisk13_BUILD_DEPENDS= asterisk:net/asterisk13 +asterisk13_RUN_DEPENDS= asterisk:net/asterisk13 + +asterisk15_PKGNAMEPREFIX= asterisk15- +asterisk15_CONFLICTS_INSTALL= asterisk13-espeak +asterisk15_BUILD_DEPENDS= asterisk:net/asterisk15 +asterisk15_RUN_DEPENDS= asterisk:net/asterisk15 + USES= compiler gmake localbase INSTALL_TARGET= install samples @@ -27,6 +39,10 @@ GH_PROJECT= Asterisk-eSpeak .if ${CHOSEN_COMPILER_TYPE} == clang CFLAGS+= -fblocks .endif + +post-patch: + @${REINPLACE_CMD} -e '/ASTERISK_REGISTER_FILE/d' \ + ${WRKSRC}/app_espeak.c post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/asterisk/modules/app_espeak.so Modified: head/audio/asterisk-flite/Makefile ============================================================================== --- head/audio/asterisk-flite/Makefile Thu Apr 12 11:04:13 2018 (r467142) +++ head/audio/asterisk-flite/Makefile Thu Apr 12 11:07:19 2018 (r467143) @@ -1,8 +1,9 @@ # $FreeBSD$ -PORTNAME= asterisk-flite +PORTNAME= flite PORTVERSION= 3.0 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= audio MAINTAINER= madpilot@FreeBSD.org @@ -11,9 +12,20 @@ COMMENT= Flite dialplan application for Asterisk LICENSE= GPLv2 LIB_DEPENDS= libflite.so:audio/flite -BUILD_DEPENDS= asterisk:net/asterisk13 -RUN_DEPENDS= asterisk:net/asterisk13 +FLAVORS= asterisk13 asterisk15 +FLAVOR?= ${FLAVORS[1]} + +asterisk13_PKGNAMEPREFIX= asterisk13- +asterisk13_CONFLICTS_INSTALL= asterisk15-flite +asterisk13_BUILD_DEPENDS= asterisk:net/asterisk13 +asterisk13_RUN_DEPENDS= asterisk:net/asterisk13 + +asterisk15_PKGNAMEPREFIX= asterisk15- +asterisk15_CONFLICTS_INSTALL= asterisk13-flite +asterisk15_BUILD_DEPENDS= asterisk:net/asterisk15 +asterisk15_RUN_DEPENDS= asterisk:net/asterisk15 + USES= compiler gmake localbase INSTALL_TARGET= install samples @@ -26,6 +38,10 @@ GH_PROJECT= Asterisk-Flite .if ${CHOSEN_COMPILER_TYPE} == clang CFLAGS+= -fblocks .endif + +post-patch: + @${REINPLACE_CMD} -e '/ASTERISK_REGISTER_FILE/d' \ + ${WRKSRC}/app_flite.c post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/asterisk/modules/app_flite.so Modified: head/net/asterisk-g72x/Makefile ============================================================================== --- head/net/asterisk-g72x/Makefile Thu Apr 12 11:04:13 2018 (r467142) +++ head/net/asterisk-g72x/Makefile Thu Apr 12 11:07:19 2018 (r467143) @@ -1,20 +1,34 @@ # $FreeBSD$ -PORTNAME= asterisk-g72x +PORTNAME= g72x PORTVERSION= 1.4.2 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://asterisk.hosting.lv/src/ +DISTNAME= asterisk-${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} MAINTAINER= madpilot@FreeBSD.org COMMENT= G.729 codec for Asterisk PBX LIB_DEPENDS= libbcg729.so:audio/bcg729 -BUILD_DEPENDS= asterisk:net/asterisk13 -RUN_DEPENDS= asterisk:net/asterisk13 +FLAVORS= asterisk13 asterisk15 +FLAVOR?= ${FLAVORS[1]} + +asterisk13_PKGNAMEPREFIX= asterisk13- +asterisk13_CONFLICTS_INSTALL= asterisk15-g72x +asterisk13_BUILD_DEPENDS= asterisk:net/asterisk13 +asterisk13_RUN_DEPENDS= asterisk:net/asterisk13 +asterisk15_CONFIGURE_ARGS= --with-asterisk130 + +asterisk15_PKGNAMEPREFIX= asterisk15- +asterisk15_CONFLICTS_INSTALL= asterisk13-g72x +asterisk15_BUILD_DEPENDS= asterisk:net/asterisk15 +asterisk15_RUN_DEPENDS= asterisk:net/asterisk15 +asterisk15_CONFIGURE_ARGS= --with-asterisk150 + GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-bcg729 \ - --with-asterisk130 +CONFIGURE_ARGS= --with-bcg729 USES= autoreconf compiler libtool localbase tar:bzip2 PLIST_FILES= lib/asterisk/modules/codec_g729.so