diff options
Diffstat (limited to 'lang/php70/Makefile.ext')
-rw-r--r-- | lang/php70/Makefile.ext | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/lang/php70/Makefile.ext b/lang/php70/Makefile.ext index 88c8d16e5b7e..043949cc8cb8 100644 --- a/lang/php70/Makefile.ext +++ b/lang/php70/Makefile.ext @@ -494,6 +494,25 @@ CONFIGURE_ARGS+=--disable-flatfile . endif .endif +.if ${PHP_MODNAME} == "mysqli" +. if ${PORT_OPTIONS:MMYSQLND} +CONFIGURE_ARGS+=--with-mysqli=mysqlnd +. else +CONFIGURE_ARGS+=--with-mysqli=${LOCALBASE}/bin/mysql_config +USES+= mysql +. endif +.endif + +.if ${PHP_MODNAME} == "pdo_mysql" +. if ${PORT_OPTIONS:MMYSQLND} +CONFIGURE_ARGS+=--with-pdo-mysql=mysqlnd +. else +CONFIGURE_ARGS+=--with-pdo-mysql=${LOCALBASE} \ + --with-zlib-dir=/usr +USES+= mysql +. endif +.endif + .include <bsd.port.pre.mk> .if ${PHP_MODNAME} == "gd" @@ -537,25 +556,6 @@ CONFIGURE_ARGS+=--disable-mbregex . endif .endif -.if ${PHP_MODNAME} == "mysqli" -. if ${PORT_OPTIONS:MMYSQLND} -CONFIGURE_ARGS+=--with-mysqli=mysqlnd -. else -CONFIGURE_ARGS+=--with-mysqli=${LOCALBASE}/bin/mysql_config -USE_MYSQL= yes -. endif -.endif - -.if ${PHP_MODNAME} == "pdo_mysql" -. if ${PORT_OPTIONS:MMYSQLND} -CONFIGURE_ARGS+=--with-pdo-mysql=mysqlnd -. else -CONFIGURE_ARGS+=--with-pdo-mysql=${LOCALBASE} \ - --with-zlib-dir=/usr -USE_MYSQL= yes -. endif -.endif - .if ${PHP_MODNAME} == "openssl" || ${PHP_MODNAME} == "sqlite3" post-extract: @${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4 |