summaryrefslogtreecommitdiff
path: root/net/asterisk-g72x/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/asterisk-g72x/Makefile')
-rw-r--r--net/asterisk-g72x/Makefile29
1 files changed, 14 insertions, 15 deletions
diff --git a/net/asterisk-g72x/Makefile b/net/asterisk-g72x/Makefile
index 2889e6b49106..fd000062c799 100644
--- a/net/asterisk-g72x/Makefile
+++ b/net/asterisk-g72x/Makefile
@@ -1,6 +1,5 @@
PORTNAME= g72x
-PORTVERSION= 1.4.3
-PORTREVISION= 5
+DISTVERSION= 1.4.4
CATEGORIES= net
MASTER_SITES= http://asterisk.hosting.lv/src/
DISTNAME= asterisk-${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
@@ -9,22 +8,22 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= G.729 codec for Asterisk PBX
WWW= http://asterisk.hosting.lv/
+LICENSE= GPLv3+
+
LIB_DEPENDS= libbcg729.so:audio/bcg729
-FLAVORS= asterisk18
-FLAVOR?= ${FLAVORS:[1]}
+FLAVORS= asterisk18 asterisk20 asterisk22
+FLAVOR?= ${FLAVORS:[3]}
-asterisk18_PKGNAMEPREFIX= asterisk18-
-asterisk18_CONFLICTS_INSTALL= asterisk13-g72x asterisk16-g72x
-asterisk18_BUILD_DEPENDS= asterisk:net/asterisk18
-asterisk18_RUN_DEPENDS= asterisk:net/asterisk18
-.if ${FLAVOR} == asterisk18
-CONFIGURE_ARGS+= --with-asterisk160
-.endif
+${FLAVOR}_PKGNAMEPREFIX= ${FLAVOR}-
+${FLAVOR}_BUILD_DEPENDS= asterisk:net/${FLAVOR}
+${FLAVOR}_RUN_DEPENDS= asterisk:net/${FLAVOR}
+USES= autoreconf compiler:c11 libtool tar:bzip2
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --with-bcg729
-USES= autoreconf compiler:c11 libtool localbase tar:bzip2
+CONFIGURE_ARGS= --with-asterisk160 --with-bcg729
+
+CONFLICTS_INSTALL= ${FLAVORS:N${FLAVOR}:C|(.+)|\1-${PORTNAME}|}
PLIST_FILES= lib/asterisk/modules/codec_g729.so
@@ -34,7 +33,7 @@ PLIST_FILES= lib/asterisk/modules/codec_g729.so
CFLAGS+= -fblocks
.endif
-post-build:
- ${STRIP_CMD} ${WRKSRC}/.libs/codec_g729.so
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/asterisk/modules/codec_g729.so
.include <bsd.port.post.mk>