b8c78246e7
clients to load the driver to talk to MS SQL Server.
33 lines
925 B
Makefile
33 lines
925 B
Makefile
# $NetBSD: options.mk,v 1.1 2005/12/30 21:07:42 jlam Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.freetds
|
|
PKG_OPTIONS_OPTIONAL_GROUPS+= odbc
|
|
PKG_OPTIONS_GROUP.odbc= iodbc #unixodbc
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
###
|
|
### Whether to build with iODBC to enable ODBC access to TDS servers.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Miodbc)
|
|
ODBC_DRIVER= yes
|
|
. include "../../databases/iodbc/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-odbc
|
|
CONFIGURE_ARGS+= --with-iodbc=${BUILDLINK_PREFIX.iodbc}
|
|
PLIST_SUBST+= ODBC=
|
|
.endif
|
|
|
|
###
|
|
### Whether to build with unixODBC to enable ODBC access to TDS servers.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Munixodbc)
|
|
. include "../../databases/unixodbc/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-odbc
|
|
CONFIGURE_ARGS+= --with-unixodbc=${BUILDLINK_PREFIX.unixodbc}
|
|
PLIST_SUBST+= ODBC=
|
|
.endif
|
|
|
|
.if empty(PKG_OPTIONS:Miodbc) && empty(PKG_OPTIONS:Munixodbc)
|
|
CONFIGURE_ARGS+= --disable-odbc
|
|
PLIST_SUBST+= ODBC="@comment "
|
|
.endif
|