- Update to version 5.3.4 [1]
- Mark ignored for versions 51 and 55 of mysql [1] - Move things to proper places in Makefile - Remove PLIST_SUB, no subs needed - Define DOCS option, port uses PORTDOCS - Switch to PLIST_FILES, port installs only 3 files - Remove Author tag from pkg-descr file PR: 197348 [1] Submitted by: timp87@gmail.com [1] Approved by: maintainer timeout
This commit is contained in:
parent
1e1271981e
commit
5e7cac6b27
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=379523
@ -2,28 +2,37 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= mysql-connector-odbc
|
||||
PORTVERSION= 5.1.9
|
||||
PORTVERSION= 5.3.4
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= ${MASTER_SITE_MYSQL}
|
||||
MASTER_SITE_SUBDIR= Connector-ODBC/5.1
|
||||
MASTER_SITE_SUBDIR= Connector-ODBC/5.3
|
||||
PKGNAMESUFFIX= -${DRIVER_MANAGER}-mysql${MYSQL_VER}
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
||||
|
||||
MAINTAINER= sergey@network-asp.biz
|
||||
COMMENT= ODBC driver for MySQL${MYSQL_VER} / ${DRIVER_MANAGER}
|
||||
|
||||
BUILD_DEPENDS= unixODBC>=2.2.14_1:${PORTSDIR}/databases/unixODBC
|
||||
LIB_DEPENDS= libodbc.so:${PORTSDIR}/databases/unixODBC
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
USE_MYSQL= yes
|
||||
DEFAULT_MYSQL_VER= 51
|
||||
USES= cmake
|
||||
|
||||
PLIST_SUB= VER=${PORTVERSION}
|
||||
IGNORE_WITH_MYSQL= 55 51
|
||||
|
||||
CMAKE_ARGS= -DWITH_UNIXODBC=1
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
||||
DRIVER_MANAGER= unixodbc
|
||||
|
||||
PORTDOCS= ChangeLog INSTALL \
|
||||
README README.debug COPYING Licenses_for_Third-Party_Components.txt
|
||||
|
||||
LIB_DEPENDS+= libodbc.so:${PORTSDIR}/databases/unixODBC
|
||||
BUILD_DEPENDS= unixODBC>=2.2.14_1:${PORTSDIR}/databases/unixODBC
|
||||
CMAKE_ARGS += -DWITH_UNIXODBC=1
|
||||
DRIVER_MANAGER= unixodbc
|
||||
PLIST_FILES= bin/myodbc-installer \
|
||||
lib/libmyodbc5a.so \
|
||||
lib/libmyodbc5w.so
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (mysql-connector-odbc-5.1.9.tar.gz) = d14a0d5ca0f0bc4fc4bbd8609c4e7fde56c70d8b3ae56eb2c3687ce794990ee9
|
||||
SIZE (mysql-connector-odbc-5.1.9.tar.gz) = 542281
|
||||
SHA256 (mysql-connector-odbc-5.3.4-src.tar.gz) = a5f7a490f2958f2768d18b8a57f71909f9699a8619c82776b3ad1c02b8abce0d
|
||||
SIZE (mysql-connector-odbc-5.3.4-src.tar.gz) = 667340
|
||||
|
@ -1,22 +1,22 @@
|
||||
--- driver/execute.c.orig 2011-10-04 23:19:00.000000000 +0300
|
||||
+++ driver/execute.c 2011-10-15 12:07:45.000000000 +0300
|
||||
@@ -424,11 +424,19 @@
|
||||
data= buff;
|
||||
break;
|
||||
case SQL_C_SBIGINT:
|
||||
--- driver/execute.c.orig 2014-11-05 14:41:16.000000000 +0300
|
||||
+++ driver/execute.c 2014-11-05 14:44:10.000000000 +0300
|
||||
@@ -563,11 +563,19 @@
|
||||
*res= buff;
|
||||
break;
|
||||
case SQL_C_SBIGINT:
|
||||
+#ifdef MARIADB_BASE_VERSION
|
||||
+ length= longlong2str(*((longlong*) data),buff, -10, 1) - buff;
|
||||
+ *length= longlong2str(*((longlong*) *res), buff, -10, 1) - buff;
|
||||
+#else
|
||||
length= longlong2str(*((longlong*) data),buff, -10) - buff;
|
||||
*length= longlong2str(*((longlong*) *res), buff, -10) - buff;
|
||||
+#endif
|
||||
data= buff;
|
||||
break;
|
||||
case SQL_C_UBIGINT:
|
||||
*res= buff;
|
||||
break;
|
||||
case SQL_C_UBIGINT:
|
||||
+#ifdef MARIADB_BASE_VERSION
|
||||
+ length= longlong2str(*((ulonglong*) data),buff, 10, 1) - buff;
|
||||
+ *length= longlong2str(*((ulonglong*) *res), buff, 10, 1) - buff;
|
||||
+#else
|
||||
length= longlong2str(*((ulonglong*) data),buff, 10) - buff;
|
||||
*length= longlong2str(*((ulonglong*) *res), buff, 10) - buff;
|
||||
+#endif
|
||||
data= buff;
|
||||
break;
|
||||
case SQL_C_FLOAT:
|
||||
*res= buff;
|
||||
break;
|
||||
case SQL_C_FLOAT:
|
||||
|
@ -1,4 +1,3 @@
|
||||
MySQL Connector ODBC is an ODBC driver for interfacing to MySQL databases.
|
||||
|
||||
Author: Erik H. Bakke
|
||||
WWW: http://www.mysql.com/
|
||||
|
@ -1,2 +0,0 @@
|
||||
bin/myodbc-installer
|
||||
lib/libmyodbc5.so
|
Loading…
Reference in New Issue
Block a user