2003-10-17 13:22:52 +02:00
|
|
|
# New ports collection makefile for: asterisk
|
|
|
|
# Date created: 17 October 2003
|
|
|
|
# Whom: Maxim Sobolev <sobomax@portaone.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= asterisk
|
2005-04-13 20:03:04 +02:00
|
|
|
PORTVERSION= 1.0.7
|
2005-06-19 14:50:39 +02:00
|
|
|
PORTREVISION= 7
|
2003-10-17 13:22:52 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
|
|
|
|
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
|
|
|
|
|
2005-04-13 20:03:04 +02:00
|
|
|
PATCHFILES= ${PORTNAME}-1.0.6-${BRIVER}.patch.gz
|
2005-02-28 12:02:29 +01:00
|
|
|
PATCH_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
PATCH_SITE_SUBDIR= fjoe
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
2003-10-17 13:22:52 +02:00
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
|
|
|
COMMENT= An Open Source PBX and telephony toolkit
|
|
|
|
|
2005-05-03 15:39:48 +02:00
|
|
|
BUILD_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
|
2005-01-09 11:40:56 +01:00
|
|
|
LIB_DEPENDS= speex.3:${PORTSDIR}/audio/speex \
|
|
|
|
newt.51:${PORTSDIR}/devel/newt
|
2005-05-03 15:39:48 +02:00
|
|
|
RUN_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
|
2003-10-17 13:22:52 +02:00
|
|
|
|
2005-01-22 12:24:54 +01:00
|
|
|
ONLY_FOR_ARCHS= i386 sparc64
|
|
|
|
|
2005-03-09 20:45:06 +01:00
|
|
|
BRIVER= bristuff-0.2.0-RC7j
|
2003-10-17 13:22:52 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/editline
|
|
|
|
USE_GMAKE= yes
|
2004-12-17 20:13:39 +01:00
|
|
|
USE_BISON= yes
|
2005-04-14 15:23:49 +02:00
|
|
|
USE_RC_SUBR= asterisk.sh
|
2005-06-19 14:50:39 +02:00
|
|
|
USE_REINPLACE= yes
|
2003-10-17 13:22:52 +02:00
|
|
|
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
2003-10-20 11:26:28 +02:00
|
|
|
MKDIR="${MKDIR}" \
|
2004-02-19 13:25:42 +01:00
|
|
|
PWLIBDIR=${WRKDIRPREFIX}${PORTSDIR}/devel/pwlib/work/pwlib \
|
|
|
|
OPENH323DIR=${WRKDIRPREFIX}${PORTSDIR}/net/openh323/work/openh323 \
|
2003-10-20 11:26:28 +02:00
|
|
|
OSVERSION=${OSVERSION} \
|
|
|
|
CXX="${CXX}"
|
2003-10-17 13:22:52 +02:00
|
|
|
|
2004-10-17 20:00:02 +02:00
|
|
|
MAN8= asterisk.8
|
2004-04-30 07:21:08 +02:00
|
|
|
|
2004-12-13 14:35:02 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-01-22 12:24:54 +01:00
|
|
|
.if ${ARCH} != "i386"
|
2004-12-13 14:35:02 +01:00
|
|
|
WITHOUT_H323= 1
|
|
|
|
WITHOUT_ZAPTEL= 1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_H323)
|
|
|
|
MAKE_ENV+= WITHOUT_H323=1
|
|
|
|
PLIST_SUB+= WITH_H323="@comment "
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/devel/pwlib:build \
|
|
|
|
${NONEXISTENT}:${PORTSDIR}/net/openh323:build
|
|
|
|
PLIST_SUB+= WITH_H323=""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_ZAPTEL)
|
|
|
|
MAKE_ENV+= WITHOUT_ZAPTEL=1
|
2005-01-22 12:24:54 +01:00
|
|
|
PLIST_SUB+= WITH_ZAPTEL="@comment "
|
2004-12-13 14:35:02 +01:00
|
|
|
.else
|
2005-02-28 12:02:29 +01:00
|
|
|
LIB_DEPENDS+= pri.1:${PORTSDIR}/misc/libpri
|
2004-12-13 14:35:02 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel
|
|
|
|
PLIST_SUB+= WITH_ZAPTEL=""
|
|
|
|
.endif
|
|
|
|
|
2005-05-03 15:39:48 +02:00
|
|
|
.if !defined(WITHOUT_MYSQL)
|
2005-06-19 14:50:39 +02:00
|
|
|
USE_MYSQL= yes
|
2005-05-03 15:39:48 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${CP} ${FILESDIR}/chan_oss.c ${WRKSRC}/channels
|
2005-06-19 14:50:39 +02:00
|
|
|
${REINPLACE_CMD} -e 's|/var/lib|${PREFIX}/share|g' ${WRKSRC}/configs/musiconhold.conf.sample
|
2005-05-03 15:39:48 +02:00
|
|
|
|
2004-12-13 14:35:02 +01:00
|
|
|
.include <bsd.port.post.mk>
|