diff options
author | sobomax <sobomax@FreeBSD.org> | 2004-12-13 21:35:02 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2004-12-13 21:35:02 +0800 |
commit | 4a48fd0bf5c1cf4cf5d31ceeec81a12bc41ba2cc (patch) | |
tree | 8c86d5c353e7f64ca9f931c6cd03753a5df0ab34 /net/asterisk/Makefile | |
parent | 207844dd71ba95e550c266309d2938d999badb83 (diff) | |
download | freebsd-ports-gnome-4a48fd0bf5c1cf4cf5d31ceeec81a12bc41ba2cc.tar.gz freebsd-ports-gnome-4a48fd0bf5c1cf4cf5d31ceeec81a12bc41ba2cc.tar.zst freebsd-ports-gnome-4a48fd0bf5c1cf4cf5d31ceeec81a12bc41ba2cc.zip |
o Update to 1.0.2.
o Add often requested knobs WITHOUT_H323 and WITHOUT_ZAPTEL.
o Add untested support for building on sparc64.
Diffstat (limited to 'net/asterisk/Makefile')
-rw-r--r-- | net/asterisk/Makefile | 41 |
1 files changed, 30 insertions, 11 deletions
diff --git a/net/asterisk/Makefile b/net/asterisk/Makefile index 22f733683a8c..b95ae58c2ee6 100644 --- a/net/asterisk/Makefile +++ b/net/asterisk/Makefile @@ -6,8 +6,7 @@ # PORTNAME= asterisk -PORTVERSION= 1.0.1 -PORTREVISION= 1 +PORTVERSION= 1.0.2 CATEGORIES= net MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \ ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/ @@ -15,20 +14,15 @@ MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \ MAINTAINER= sobomax@FreeBSD.org COMMENT= An Open Source PBX and telephony toolkit -ONLY_FOR_ARCHS= i386 +ONLY_FOR_ARCHS= i386 sparc64 -BUILD_DEPENDS= ${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql40-client \ - ${NONEXISTENT}:${PORTSDIR}/devel/pwlib:build \ - ${NONEXISTENT}:${PORTSDIR}/net/openh323:build \ - ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel +BUILD_DEPENDS= ${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql40-client LIB_DEPENDS= speex.3:${PORTSDIR}/audio/speex -RUN_DEPENDS= ${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql40-client \ - ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel +RUN_DEPENDS= ${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql40-client GNU_CONFIGURE= yes CONFIGURE_WRKSRC= ${WRKSRC}/editline USE_GMAKE= yes -USE_OPENLDAP= yes MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ PTHREAD_LIBS="${PTHREAD_LIBS}" \ MKDIR="${MKDIR}" \ @@ -39,4 +33,29 @@ MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ MAN8= asterisk.8 -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${MACHINE_ARCH} != "i386" +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 +PLIST_SUB+= WITH_ZAPTEL="@comment " +.else +BUILD_DEPENDS+= ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel +RUN_DEPENDS+= ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel +PLIST_SUB+= WITH_ZAPTEL="" +.endif + +.include <bsd.port.post.mk> |