summaryrefslogtreecommitdiff
path: root/databases/myodbc/options.mk
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2006-01-23 18:53:45 +0000
committerxtraeme <xtraeme@pkgsrc.org>2006-01-23 18:53:45 +0000
commit6fb57b0209c21224b9fdc9c0347208561d2c5632 (patch)
tree45596cf24d769404234b499d963530cc45cb5620 /databases/myodbc/options.mk
parent0ebea1543bbe7d3aaf9d412af78d20557625999c (diff)
downloadpkgsrc-6fb57b0209c21224b9fdc9c0347208561d2c5632.tar.gz
Update to 3.51.12 (latest stable version).
There were zillions of changes... please see the Changelog file. Now it builds with both mysql-4.1.x and mysql-5.1.x. pkgsrc changes: Supported build options: * myodbc-gui: builds the QT widgets library. (disabled) * myodbc-iodbc: uses iodbc for the odbc functions. (enabled) * myodbc-unixodbc: uses unixodbc for the odbc functions. (disabled) Uses MASTER_SITE_MYSQL.
Diffstat (limited to 'databases/myodbc/options.mk')
-rw-r--r--databases/myodbc/options.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/databases/myodbc/options.mk b/databases/myodbc/options.mk
new file mode 100644
index 00000000000..ad6896a0ef1
--- /dev/null
+++ b/databases/myodbc/options.mk
@@ -0,0 +1,32 @@
+# $NetBSD: options.mk,v 1.1 2006/01/23 18:53:45 xtraeme Exp $
+#
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.myodbc
+PKG_OPTIONS_REQUIRED_GROUPS= db
+PKG_OPTIONS_GROUP.db= myodbc-iodbc myodbc-unixodbc
+PKG_SUPPORTED_OPTIONS= myodbc-gui
+PKG_SUGGESTED_OPTIONS= myodbc-iodbc
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mmyodbc-gui)
+. include "../../x11/qt3-tools/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-gui
+USE_LANGUAGES+= c++
+PLIST_SUBST+= WITH_GUI=
+.else
+CONFIGURE_ARGS+= --disable-gui
+PLIST_SUBST+= WITH_GUI='@comment '
+.endif
+
+.if !empty(PKG_OPTIONS:Mmyodbc-iodbc)
+. include "../../databases/iodbc/buildlink3.mk"
+CONFIGURE_ARGS+= --with-iodbc=${BUILDLINK_PREFIX.iodbc}
+CONFIGURE_ARGS+= --with-odbc-ini=${PKG_SYSCONFDIR.iodbc}/odbc.ini
+.endif
+
+.if !empty(PKG_OPTIONS:Mmyodbc-unixodbc)
+. include "../../databases/unixodbc/buildlink3.mk"
+CONFIGURE_ARGS+= --with-unixODBC=${BUILDLINK_PREFIX.unixodbc}
+CONFIGURE_ARGS+= --with-odbc-ini=${PKG_SYSCONFDIR.unixodbc}/odbc.ini
+.endif