ports/156564: [patch] databases/php5-odbc -- implement option to choose iodbc / unixodbc backend
Pietro Cerutti
gahr at FreeBSD.org
Fri Apr 22 08:50:06 UTC 2011
>Number: 156564
>Category: ports
>Synopsis: [patch] databases/php5-odbc -- implement option to choose iodbc / unixodbc backend
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Apr 22 08:50:05 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Pietro Cerutti
>Release:
>Organization:
The FreeBSD Project
>Environment:
>Description:
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: Makefile.ext
===================================================================
RCS file: /home/pcvs/ports/lang/php5/Makefile.ext,v
retrieving revision 1.79
diff -u -r1.79 Makefile.ext
--- Makefile.ext 15 Apr 2011 14:52:14 -0000 1.79
+++ Makefile.ext 22 Apr 2011 08:40:17 -0000
@@ -194,9 +194,7 @@
.endif
.if ${PHP_MODNAME} == "odbc"
-LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
-
-CONFIGURE_ARGS+=--with-unixODBC=${LOCALBASE}
+OPTIONS= IODBC "Use the IODBC driver instead of UnixODBC" off
.endif
.if ${PHP_MODNAME} == "openssl"
@@ -560,3 +558,12 @@
post-extract:
@${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4
.endif
+
+.if ${PHP_MODNAME} == "odbc"
+.if defined(WITH_IODBC)
+LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc
+.else
+LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
+CONFIGURE_ARGS+=--with-unixODBC=${LOCALBASE}
+.endif
+.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list