diff options
-rw-r--r-- | lang/php5/Makefile.php | 8 | ||||
-rw-r--r-- | www/php4/Makefile.php | 10 |
2 files changed, 16 insertions, 2 deletions
diff --git a/lang/php5/Makefile.php b/lang/php5/Makefile.php index 2419122d358..04c431d0be9 100644 --- a/lang/php5/Makefile.php +++ b/lang/php5/Makefile.php @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.php,v 1.9 2005/10/08 21:04:36 jdolecek Exp $ +# $NetBSD: Makefile.php,v 1.10 2005/10/16 12:06:05 jdolecek Exp $ # .include "../../lang/php5/Makefile.common" @@ -18,7 +18,13 @@ PLIST_SUBST+= PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR} .include "../../mk/bsd.prefs.mk" CONFIGURE_ARGS+= --with-config-file-path=${PKG_SYSCONFDIR} + +# The Solaris system regex structures miss re_magic used by PHP build +.if ${OPSYS} != "SunOS" CONFIGURE_ARGS+= --with-regex=system +.else +CONFIGURE_ARGS+= --with-regex=php +.endif CONFIGURE_ARGS+= --without-mysql CONFIGURE_ARGS+= --without-sqlite diff --git a/www/php4/Makefile.php b/www/php4/Makefile.php index 6cb642abd6e..2abe76155e6 100644 --- a/www/php4/Makefile.php +++ b/www/php4/Makefile.php @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.php,v 1.26 2005/10/08 21:12:53 jdolecek Exp $ +# $NetBSD: Makefile.php,v 1.27 2005/10/16 12:06:05 jdolecek Exp $ .include "../../www/php4/Makefile.common" @@ -18,7 +18,15 @@ CONFIGURE_ARGS+= --disable-posix CONFIGURE_ARGS+= --with-config-file-path=${PKG_SYSCONFDIR} CONFIGURE_ARGS+= --with-exec-dir=${PREFIX}/libexec/php4 + +.include "../../mk/bsd.prefs.mk" + +# The Solaris system regex structures miss re_magic used by PHP build +.if ${OPSYS} != "SunOS" CONFIGURE_ARGS+= --with-regex=system +.else +CONFIGURE_ARGS+= --with-regex=php +.endif CONFIGURE_ARGS+= --enable-memory-limit CONFIGURE_ARGS+= --enable-track-vars |