pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/myodbc Update to 3.51.12 (latest stable vers...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7f8fa039c4e9
branches:  trunk
changeset: 506907:7f8fa039c4e9
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Mon Jan 23 18:53:45 2006 +0000

description:
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:

 databases/myodbc/Makefile         |  47 +++++++++++++++++++-------------------
 databases/myodbc/PLIST            |  13 +++++++---
 databases/myodbc/distinfo         |   9 ++++---
 databases/myodbc/options.mk       |  32 ++++++++++++++++++++++++++
 databases/myodbc/patches/patch-aa |  21 +++++++++++++++++
 5 files changed, 90 insertions(+), 32 deletions(-)

diffs (154 lines):

diff -r 635c0786aa5f -r 7f8fa039c4e9 databases/myodbc/Makefile
--- a/databases/myodbc/Makefile Mon Jan 23 18:46:00 2006 +0000
+++ b/databases/myodbc/Makefile Mon Jan 23 18:53:45 2006 +0000
@@ -1,34 +1,33 @@
-# $NetBSD: Makefile,v 1.12 2006/01/08 18:35:08 xtraeme Exp $
+# $NetBSD: Makefile,v 1.13 2006/01/23 18:53:45 xtraeme Exp $
 #
 
-DISTNAME=              MyODBC-2.50.36
-PKGNAME=               myodbc-2.50.36
-PKGREVISION=           2
-CATEGORIES=            databases
-MASTER_SITES=          http://www.mysql.com/Downloads/MyODBC/
+DISTNAME=      mysql-connector-odbc-3.51.12
+PKGNAME=       ${DISTNAME:S/mysql-connector-odbc/myodbc/}
+CATEGORIES=    databases
+MASTER_SITES=  ${MASTER_SITE_MYSQL:=MyODBC3/}
 
-MAINTAINER=            tech-pkg%NetBSD.org@localhost
-HOMEPAGE=              http://www.mysql.com/
-COMMENT=               ODBC driver (server side) for MySQL
-
-GNU_CONFIGURE=         yes
+MAINTAINER=    tech-pkg%NetBSD.org@localhost
+HOMEPAGE=      http://www.mysql.com/
+COMMENT=       ODBC driver (server side) for MySQL
 
-CONFIGURE_ARGS+=       --with-mysql-libs=${BUILDLINK_PREFIX.mysql-client}/lib/mysql
-CONFIGURE_ARGS+=       --with-mysql-includes=${BUILDLINK_PREFIX.mysql-client}/include/mysql
-CONFIGURE_ARGS+=       --with-iodbc=${BUILDLINK_PREFIX.iodbc}
-CONFIGURE_ARGS+=       --with-odbc-ini=${BUILDLINK_PREFIX.iodbc}/etc/odbc.ini
+GNU_CONFIGURE= yes
+USE_LIBTOOL=   yes
+USE_TOOLS+=    gmake
 
-USE_LIBTOOL=           yes
-LTCONFIG_OVERRIDE=     ${WRKSRC}/ltconfig
+CONFIGURE_ARGS+=       --with-mysql-path=${BUILDLINK_PREFIX.mysql-client}
+CONFIGURE_ARGS+=       --disable-gui
+CONFIGURE_ARGS+=       --disable-myodbc3i
+CONFIGURE_ARGS+=       --without-samples
+CONFIGURE_ARGS+=       --disable-test
 
-USE_TOOLS+=            gmake
-
-.include "../../databases/iodbc/buildlink3.mk"
-.include "../../mk/mysql.buildlink3.mk"
+INSTALLATION_DIRS=     share/doc/myodbc
 
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/myodbc
-       ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/myodbc
-       ${INSTALL_DATA} ${WRKSRC}/README-WIN32 ${PREFIX}/share/doc/myodbc
+       ${INSTALL_DATA} ${WRKSRC}/README* ${PREFIX}/share/doc/myodbc
 
+.include "options.mk"
+.include "../../devel/libltdl/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/mysql.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 635c0786aa5f -r 7f8fa039c4e9 databases/myodbc/PLIST
--- a/databases/myodbc/PLIST    Mon Jan 23 18:46:00 2006 +0000
+++ b/databases/myodbc/PLIST    Mon Jan 23 18:53:45 2006 +0000
@@ -1,5 +1,10 @@
-@comment $NetBSD: PLIST,v 1.2 2004/09/22 08:09:22 jlam Exp $
-lib/libmyodbc.la
-share/doc/myodbc/INSTALL
-share/doc/myodbc/README-WIN32
+@comment $NetBSD: PLIST,v 1.3 2006/01/23 18:53:45 xtraeme Exp $
+bin/myodbc3m
+lib/libmyodbc3.la
+${WITH_GUI}lib/libmyodbc3S.la
+lib/libmyodbc3_r.la
+share/doc/myodbc/README
+share/doc/myodbc/README.osx
+share/doc/myodbc/README.unix
+share/doc/myodbc/README.win
 @dirrm share/doc/myodbc
diff -r 635c0786aa5f -r 7f8fa039c4e9 databases/myodbc/distinfo
--- a/databases/myodbc/distinfo Mon Jan 23 18:46:00 2006 +0000
+++ b/databases/myodbc/distinfo Mon Jan 23 18:53:45 2006 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/23 16:33:06 agc Exp $
+$NetBSD: distinfo,v 1.4 2006/01/23 18:53:45 xtraeme Exp $
 
-SHA1 (MyODBC-2.50.36.tar.gz) = 86c5d94c1099b8dac67246151824eb3f7c19b93a
-RMD160 (MyODBC-2.50.36.tar.gz) = e2a4357c0e596efd809e538d639ce3f1e2228224
-Size (MyODBC-2.50.36.tar.gz) = 413650 bytes
+SHA1 (mysql-connector-odbc-3.51.12.tar.gz) = c4a8de079b255d2aa745295f4121ec5e9091de59
+RMD160 (mysql-connector-odbc-3.51.12.tar.gz) = 295bdca51ad5fd7bf0a56ccb161fe5a0463e71ef
+Size (mysql-connector-odbc-3.51.12.tar.gz) = 979942 bytes
+SHA1 (patch-aa) = d49eb5b4c637303063784a63790411342593b855
diff -r 635c0786aa5f -r 7f8fa039c4e9 databases/myodbc/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/myodbc/options.mk       Mon Jan 23 18:53:45 2006 +0000
@@ -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
diff -r 635c0786aa5f -r 7f8fa039c4e9 databases/myodbc/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/myodbc/patches/patch-aa Mon Jan 23 18:53:45 2006 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.1 2006/01/23 18:53:45 xtraeme Exp $
+
+--- driver/results.c.orig      2006-01-23 19:13:42.000000000 +0100
++++ driver/results.c   2006-01-23 19:14:15.000000000 +0100
+@@ -49,6 +49,7 @@
+ #include "myodbc3.h"
+ #include <m_ctype.h>
+ #include <locale.h>
++#include <sys/param.h>
+ 
+ #define SQL_MY_PRIMARY_KEY 1212
+ 
+@@ -543,7 +544,7 @@
+   @purpose : rerunrs column atribute values
+ */
+ 
+-#if defined(__APPLE__)
++#if defined(__APPLE__) || defined(BSD)
+ SQLRETURN SQL_API SQLColAttribute( SQLHSTMT  StatementHandle,
+                                    SQLUSMALLINT ColumnNumber,
+                                    SQLUSMALLINT FieldIdentifier,



Home | Main Index | Thread Index | Old Index