summaryrefslogtreecommitdiff
path: root/lang/php5
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2010-04-12 08:03:49 +0000
committerAlex Dupre <ale@FreeBSD.org>2010-04-12 08:03:49 +0000
commitdc71c393d820d65b67ccb76c2579e3debce92bb9 (patch)
treee9bc5e316bd9b2c1f6c609a4f33fdec4c840d091 /lang/php5
parentNew port: WhatWeb can be used to detect the software packages that (diff)
Fix build if multibyte regex support is disabled.
Notes
Notes: svn path=/head/; revision=252587
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