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
This commit is contained in:
parent
957253e46d
commit
9b8b75fd29
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=467143
3 changed files with 57 additions and 11 deletions
|
@ -1,8 +1,9 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= asterisk-espeak
|
||||
PORTNAME= espeak
|
||||
PORTVERSION= 4.0
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= audio
|
||||
|
||||
MAINTAINER= madpilot@FreeBSD.org
|
||||
|
@ -12,8 +13,19 @@ 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
|
||||
|
@ -28,6 +40,10 @@ GH_PROJECT= Asterisk-eSpeak
|
|||
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
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= asterisk-flite
|
||||
PORTNAME= flite
|
||||
PORTVERSION= 3.0
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= audio
|
||||
|
||||
MAINTAINER= madpilot@FreeBSD.org
|
||||
|
@ -11,8 +12,19 @@ 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
|
||||
|
@ -27,6 +39,10 @@ GH_PROJECT= Asterisk-Flite
|
|||
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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue