Date: Thu, 12 Apr 2018 11:07:19 +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: r467143 - in head: audio/asterisk-espeak audio/asterisk-flite net/asterisk-g72x Message-ID: <201804121107.w3CB7JwI048245@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804121107.w3CB7JwI048245>