summaryrefslogtreecommitdiff
path: root/lang/php5
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2011-04-26 12:05:57 +0000
committerAlex Dupre <ale@FreeBSD.org>2011-04-26 12:05:57 +0000
commit3f35533ed766847346fa91fcc1046225c115b73b (patch)
tree81add24ca124c14490efb1abe4bb78d858e7e0d8 /lang/php5
parent- Update to 1.0.8 (diff)
Add support for iODBC (in addition to [default] unixODBC) in php5-odbc and
php-pdo_odbc extensions. PR: ports/156564 Submitted by: gahr
Notes
Notes: svn path=/head/; revision=273206
Diffstat (limited to 'lang/php5')
-rw-r--r--lang/php5/Makefile.ext32
1 files changed, 27 insertions, 5 deletions
diff --git a/lang/php5/Makefile.ext b/lang/php5/Makefile.ext
index 47d9eef82c93..2f88592a4bee 100644
--- a/lang/php5/Makefile.ext
+++ b/lang/php5/Makefile.ext
@@ -194,9 +194,9 @@ OPTIONS= MYSQLND "Use MySQL Native Driver" on
.endif
.if ${PHP_MODNAME} == "odbc"
-LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
+CONFIGURE_ARGS+=--enable-odbc
-CONFIGURE_ARGS+=--with-unixODBC=${LOCALBASE}
+OPTIONS= IODBC "Use the iODBC driver instead of unixODBC" off
.endif
.if ${PHP_MODNAME} == "openssl"
@@ -240,9 +240,7 @@ USE_PHP_BUILD= yes
.endif
.if ${PHP_MODNAME} == "pdo_odbc"
-LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
-
-CONFIGURE_ARGS+=--with-pdo-odbc=unixODBC,${LOCALBASE}
+OPTIONS= IODBC "Use the iODBC driver instead of unixODBC" off
USE_PHP= pdo
USE_PHP_BUILD= yes
@@ -523,6 +521,18 @@ 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
+
+CONFIGURE_ARGS+=--with-iodbc=${LOCALBASE}
+.else
+LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
+
+CONFIGURE_ARGS+=--with-unixODBC=${LOCALBASE}
+.endif
+.endif
+
.if ${PHP_MODNAME} == "pdo_dblib"
.if defined(WITH_MSSQL)
LIB_DEPENDS+= sybdb.5:${PORTSDIR}/databases/freetds-msdblib
@@ -531,6 +541,18 @@ LIB_DEPENDS+= ct.4:${PORTSDIR}/databases/freetds
.endif
.endif
+.if ${PHP_MODNAME} == "pdo_odbc"
+.if defined(WITH_IODBC)
+LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc
+
+CONFIGURE_ARGS+=--with-pdo-odbc=iODBC,${LOCALBASE}
+.else
+LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
+
+CONFIGURE_ARGS+=--with-pdo-odbc=unixODBC,${LOCALBASE}
+.endif
+.endif
+
.if ${PHP_MODNAME} == "pdo_mysql"
. if defined(WITH_MYSQLND)
CONFIGURE_ARGS+=--with-pdo-mysql=mysqlnd