Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2019 07:08:55 +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: r510764 - head/net/asterisk-g72x
Message-ID:  <201909020708.x8278tmc031299@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Mon Sep  2 07:08:55 2019
New Revision: 510764
URL: https://svnweb.freebsd.org/changeset/ports/510764

Log:
  - Correctly pass CONFIGURE_ARGS depending on flavor
  - Fix default FLAVOR definition
  
  PR:		240238
  Submitted by:	tobik
  MFH:		2019Q3

Modified:
  head/net/asterisk-g72x/Makefile

Modified: head/net/asterisk-g72x/Makefile
==============================================================================
--- head/net/asterisk-g72x/Makefile	Mon Sep  2 06:57:19 2019	(r510763)
+++ head/net/asterisk-g72x/Makefile	Mon Sep  2 07:08:55 2019	(r510764)
@@ -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



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