- Correctly pass CONFIGURE_ARGS depending on flavor

- Fix default FLAVOR definition

PR:		240238
Submitted by:	tobik
MFH:		2019Q3
This commit is contained in:
Guido Falsi 2019-09-02 07:08:55 +00:00
parent edf2cb9986
commit f9e0a0fa64
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=510764

View file

@ -2,7 +2,7 @@
PORTNAME= g72x
PORTVERSION= 1.4.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net
MASTER_SITES= http://asterisk.hosting.lv/src/
DISTNAME= asterisk-${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
@ -13,28 +13,34 @@ COMMENT= G.729 codec for Asterisk PBX
LIB_DEPENDS= libbcg729.so:audio/bcg729
FLAVORS= asterisk13 asterisk15 asterisk16
FLAVOR?= ${FLAVORS[1]}
FLAVOR?= ${FLAVORS:[1]}
asterisk13_PKGNAMEPREFIX= asterisk13-
asterisk13_CONFLICTS_INSTALL= asterisk15-g72x asterisk16-g72x
asterisk13_BUILD_DEPENDS= asterisk:net/asterisk13
asterisk13_RUN_DEPENDS= asterisk:net/asterisk13
asterisk15_CONFIGURE_ARGS= --with-asterisk130
.if ${FLAVOR} == asterisk13
CONFIGURE_ARGS+= --with-asterisk130
.endif
asterisk15_PKGNAMEPREFIX= asterisk15-
asterisk15_CONFLICTS_INSTALL= asterisk13-g72x asterisk16-g72x
asterisk15_BUILD_DEPENDS= asterisk:net/asterisk15
asterisk15_RUN_DEPENDS= asterisk:net/asterisk15
asterisk15_CONFIGURE_ARGS= --with-asterisk150
.if ${FLAVOR} == asterisk15
CONFIGURE_ARGS+= --with-asterisk150
.endif
asterisk16_PKGNAMEPREFIX= asterisk16-
asterisk16_CONFLICTS_INSTALL= asterisk13-g72x asterisk15-g72x
asterisk16_BUILD_DEPENDS= asterisk:net/asterisk16
asterisk16_RUN_DEPENDS= asterisk:net/asterisk16
asterisk16_CONFIGURE_ARGS= --with-asterisk160
.if ${FLAVOR} == asterisk16
CONFIGURE_ARGS+= --with-asterisk160
.endif
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-bcg729
CONFIGURE_ARGS+= --with-bcg729
USES= autoreconf compiler libtool localbase tar:bzip2
PLIST_FILES= lib/asterisk/modules/codec_g729.so