1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/net/asterisk-g72x/Makefile
Guido Falsi 9b8b75fd29 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
2018-04-12 11:07:19 +00:00

46 lines
1.1 KiB
Makefile

# $FreeBSD$
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
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
USES= autoreconf compiler libtool localbase tar:bzip2
PLIST_FILES= lib/asterisk/modules/codec_g729.so
.include <bsd.port.pre.mk>
.if ${CHOSEN_COMPILER_TYPE} == clang
CFLAGS+= -fblocks
.endif
post-build:
${STRIP_CMD} ${WRKSRC}/.libs/codec_g729.so
.include <bsd.port.post.mk>