diff options
author | jlam <jlam@pkgsrc.org> | 2005-12-30 21:07:42 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-12-30 21:07:42 +0000 |
commit | 442dec26a69e66c8d8cc399b629817ad3cec59f9 (patch) | |
tree | a45dc36c8e974b877b2d8bc52c3e9376c3d103f0 /databases/freetds/options.mk | |
parent | c2b3878dc999a20453daebee9a947f5f33ca51ca (diff) | |
download | pkgsrc-442dec26a69e66c8d8cc399b629817ad3cec59f9.tar.gz |
Optionally build the ODBC driver for freetds. This will allow ODBC
clients to load the driver to talk to MS SQL Server.
Diffstat (limited to 'databases/freetds/options.mk')
-rw-r--r-- | databases/freetds/options.mk | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/databases/freetds/options.mk b/databases/freetds/options.mk new file mode 100644 index 00000000000..7e384b8c7f2 --- /dev/null +++ b/databases/freetds/options.mk @@ -0,0 +1,33 @@ +# $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 |