pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/freetds Optionally build the ODBC driver for...
details: https://anonhg.NetBSD.org/pkgsrc/rev/18693f225bd6
branches: trunk
changeset: 505121:18693f225bd6
user: jlam <jlam%pkgsrc.org@localhost>
date: Fri Dec 30 21:07:42 2005 +0000
description:
Optionally build the ODBC driver for freetds. This will allow ODBC
clients to load the driver to talk to MS SQL Server.
diffstat:
databases/freetds/Makefile | 4 +++-
databases/freetds/PLIST | 3 ++-
databases/freetds/options.mk | 33 +++++++++++++++++++++++++++++++++
3 files changed, 38 insertions(+), 2 deletions(-)
diffs (72 lines):
diff -r 35214a2f232b -r 18693f225bd6 databases/freetds/Makefile
--- a/databases/freetds/Makefile Fri Dec 30 21:03:59 2005 +0000
+++ b/databases/freetds/Makefile Fri Dec 30 21:07:42 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2005/12/30 16:39:39 jlam Exp $
+# $NetBSD: Makefile,v 1.31 2005/12/30 21:07:42 jlam Exp $
DISTNAME= freetds-0.63
PKGREVISION= 2
@@ -12,6 +12,8 @@
USE_LIBTOOL= yes
USE_TOOLS+= gmake
+.include "options.mk"
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --datadir=${PREFIX}/share
diff -r 35214a2f232b -r 18693f225bd6 databases/freetds/PLIST
--- a/databases/freetds/PLIST Fri Dec 30 21:03:59 2005 +0000
+++ b/databases/freetds/PLIST Fri Dec 30 21:07:42 2005 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.13 2005/12/27 21:04:23 reed Exp $
+@comment $NetBSD: PLIST,v 1.14 2005/12/30 21:07:42 jlam Exp $
bin/bsqldb
bin/defncopy
bin/freebcp
@@ -21,6 +21,7 @@
lib/libct.la
lib/libsybdb.la
lib/libtds.la
+${ODBC}lib/libtdsodbc.la
lib/libtdssrv.la
man/man1/bsqldb.1
man/man1/defncopy.1
diff -r 35214a2f232b -r 18693f225bd6 databases/freetds/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/freetds/options.mk Fri Dec 30 21:07:42 2005 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index