diff options
author | Florian Smeets <flo@FreeBSD.org> | 2010-12-09 00:44:50 +0000 |
---|---|---|
committer | Florian Smeets <flo@FreeBSD.org> | 2010-12-09 00:44:50 +0000 |
commit | 4740b6f704d72a56db38d9c904dfc4c4c913ef6f (patch) | |
tree | 40a354d7bac0de49ade5562e493bad7826e0c55f /net/asterisk | |
parent | 27bb2d06767e65fc2d6be104e354561d744ab962 (diff) |
Notes
Diffstat (limited to 'net/asterisk')
-rw-r--r-- | net/asterisk/Makefile | 26 | ||||
-rw-r--r-- | net/asterisk/pkg-plist | 2 |
2 files changed, 22 insertions, 6 deletions
diff --git a/net/asterisk/Makefile b/net/asterisk/Makefile index 7864467f6603..f473758dd045 100644 --- a/net/asterisk/Makefile +++ b/net/asterisk/Makefile @@ -45,7 +45,8 @@ MAN8= asterisk.8 astgenkey.8 autosupport.8 safe_asterisk.8 CONFLICTS= asterisk*-1.2* asterisk*-1.4* asterisk*-1.6* OPTIONS= OGGVORBIS "Enable Ogg Vorbis support" on \ - ODBC "Enable ODBC support" on \ + IODBC "Enable iODBC support" off \ + UODBC "Enable unixODBC support" on \ POSTGRES "Enable PostgreSQL support" on \ RADIUS "Enable RADIUS accounting support" on \ SNMP "Enable SNMP support" on \ @@ -70,6 +71,10 @@ GROUPS= ${ASTERISK_GROUP} dahdi .if ${ARCH} == "i386" || ${ARCH} == "amd64" OPTIONS+= DAHDI "Enable DAHDI support" on +.if defined(WITH_IODBC) && defined(WITH_UODBC) +IGNORE= please select only one of iodbc or unixODBC +.endif + # Include this since we have altered OPTIONS. .include <bsd.port.options.mk> .endif @@ -103,14 +108,25 @@ RUN_DEPENDS+= ${LOCALBASE}/lib/dahdi/dahdi.ko:${PORTSDIR}/misc/dahdi # # WITH_FREETDS, WITH_PGSQL and WITH_SQLITE can also be added to MAKE_ENV # similarly -.if !defined(WITH_ODBC) -PLIST_SUB+= WITH_ODBC="@comment " +.if !defined(WITH_UODBC) CONFIGURE_ARGS+= --without-unixodbc -.else +.endif +.if !defined(WITH_IODBC) +CONFIGURE_ARGS+= --without-iodbc +.endif +.if !defined(WITH_UODBC) && !defined(WITH_IODBC) +PLIST_SUB+= WITH_ODBC="@comment " +.endif +.if defined(WITH_UODBC) || defined(WITH_IODBC) PLIST_SUB+= WITH_ODBC="" +USE_AUTOTOOLS= libltdl +.if defined(WITH_UODBC) CONFIGURE_ARGS+= --with-unixodbc --with-ltdl LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC -USE_AUTOTOOLS= libltdl +.elif defined(WITH_IODBC) +CONFIGURE_ARGS+= --with-iodbc --with-ltdl +LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc +.endif .endif .if !defined(WITH_FREETDS) diff --git a/net/asterisk/pkg-plist b/net/asterisk/pkg-plist index be894e5b7850..2ce3f7839b90 100644 --- a/net/asterisk/pkg-plist +++ b/net/asterisk/pkg-plist @@ -540,7 +540,7 @@ lib/asterisk/modules/cdr_manager.so lib/asterisk/modules/cdr_syslog.so lib/asterisk/modules/cel_custom.so lib/asterisk/modules/cel_manager.so -lib/asterisk/modules/cel_odbc.so +%%WITH_ODBC%%lib/asterisk/modules/cel_odbc.so lib/asterisk/modules/cel_pgsql.so lib/asterisk/modules/cel_radius.so lib/asterisk/modules/cel_sqlite3_custom.so |