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 26 Apr 2011 09:20:06 -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" @@ -240,9 +238,7 @@ .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 +519,16 @@ @${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 + .if ${PHP_MODNAME} == "pdo_dblib" .if defined(WITH_MSSQL) LIB_DEPENDS+= sybdb.5:${PORTSDIR}/databases/freetds-msdblib @@ -531,6 +537,18 @@ .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