summaryrefslogtreecommitdiff
path: root/lang/php5
diff options
context:
space:
mode:
Diffstat (limited to 'lang/php5')
-rw-r--r--lang/php5/Makefile.ext6
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/php5/Makefile.ext b/lang/php5/Makefile.ext
index 074baf86071d..72b30400e301 100644
--- a/lang/php5/Makefile.ext
+++ b/lang/php5/Makefile.ext
@@ -155,10 +155,9 @@ CONFIGURE_ARGS+=--with-ldap-sasl
.endif
.if ${PHP_MODNAME} == "mbstring"
-LIB_DEPENDS+= onig.1:${PORTSDIR}/devel/oniguruma4
CONFIGURE_ARGS+=--enable-mbstring \
- --with-onig=${LOCALBASE}
+ --with-pcre-dir=${LOCALBASE}
OPTIONS= REGEX "Enable multibyte regex support" on
@@ -488,6 +487,9 @@ CONFIGURE_ARGS+=--enable-gd-jis-conv
.if ${PHP_MODNAME} == "mbstring"
. if defined(WITHOUT_REGEX)
CONFIGURE_ARGS+=--disable-mbregex
+. else
+LIB_DEPENDS+= onig.1:${PORTSDIR}/devel/oniguruma4
+CONFIGURE_ARGS+=--with-onig=${LOCALBASE}
. endif
.endif