From 5803bd2ac7e8ff1d0ed6ede6cae02c56e613b783 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Mon, 28 May 2007 20:21:08 +0000 Subject: Add FreeTDS support. Bump PORTREVISION. Submitted by: Alex Miller --- net/asterisk14/Makefile | 11 +++++++++++ net/asterisk14/pkg-plist | 1 + 2 files changed, 12 insertions(+) (limited to 'net/asterisk14') diff --git a/net/asterisk14/Makefile b/net/asterisk14/Makefile index c036d53fda6a..c9024c4cd57d 100644 --- a/net/asterisk14/Makefile +++ b/net/asterisk14/Makefile @@ -7,6 +7,7 @@ PORTNAME= asterisk PORTVERSION= 1.4.4 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://ftp.digium.com/pub/asterisk/ \ http://ftp.digium.com/pub/asterisk/old-releases/ @@ -44,6 +45,7 @@ OPTIONS= OGGVORBIS "Enable Ogg Vorbis support" on \ RADIUS "Enable RADIUS accounting support" on \ SNMP "Enable SNMP support" on \ H323 "Enable H.323 support" on \ + FREETDS "Enable FreeTDS support" on \ JABBER "Enable Jabber and Gtalk support" on .include @@ -88,6 +90,15 @@ CONFIGURE_ARGS+= --with-odbc LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC .endif +.if defined(WITHOUT_FREETDS) +PLIST_SUB+= WITH_FREETDS="@comment " +CONFIGURE_ARGS+= --without-tds +.else +PLIST_SUB+= WITH_FREETDS="" +CONFIGURE_ARGS+= --with-tds=${LOCALBASE} +LIB_DEPENDS+= tds.5:${PORTSDIR}/databases/freetds +.endif + .if defined(WITHOUT_POSTGRES) PLIST_SUB+= WITH_POSTGRES="@comment " CONFIGURE_ARGS+= --without-postgres diff --git a/net/asterisk14/pkg-plist b/net/asterisk14/pkg-plist index 5f0ce4ba28d5..9fc1bf7e3501 100644 --- a/net/asterisk14/pkg-plist +++ b/net/asterisk14/pkg-plist @@ -761,6 +761,7 @@ share/asterisk/static-http/prototype.js %%WITH_ZAPTEL%%lib/asterisk/modules/app_zapras.so %%WITH_ZAPTEL%%lib/asterisk/modules/app_zapscan.so %%WITH_ODBC%%lib/asterisk/modules/cdr_odbc.so +%%WITH_FREETDS%%lib/asterisk/modules/cdr_tds.so %%WITH_H323%%lib/asterisk/modules/chan_h323.so %%WITH_ZAPTEL%%lib/asterisk/modules/chan_zap.so %%WITH_ZAPTEL%%lib/asterisk/modules/codec_zap.so -- cgit v1.2.3