diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-07-03 05:51:18 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-07-03 05:51:18 +0000 |
commit | 11024207d26fd1ce63cde57b1c6dfcfb512db908 (patch) | |
tree | 62a237d202213fb7a2bfb9acbca8ab313c068796 | |
parent | Update to 1.1.1. (diff) |
Add WANT_PHP_WEB knob, for ports that require a web
server to work, but for which is indifferent the PHP
sapi (CGI or Apache Module).
PR: ports/53800
Submitted by: Alex Dupre <sysadmin@alexdupre.com> (maintainer)
Notes
Notes:
svn path=/head/; revision=84106
-rw-r--r-- | lang/php4/bsd.php.mk | 12 | ||||
-rw-r--r-- | lang/php5/bsd.php.mk | 12 | ||||
-rw-r--r-- | lang/php53/bsd.php.mk | 12 |
3 files changed, 36 insertions, 0 deletions
diff --git a/lang/php4/bsd.php.mk b/lang/php4/bsd.php.mk index f315c3c4d1fb..59f7191d50dd 100644 --- a/lang/php4/bsd.php.mk +++ b/lang/php4/bsd.php.mk @@ -6,6 +6,7 @@ # WANT_PHP_CLI=yes - Want the CLI version of PHP. # WANT_PHP_CGI=yes - Want the CGI version of PHP. # WANT_PHP_MOD=yes - Want the Apache Module for PHP. +# WANT_PHP_WEB=yes - Want the Apache Module or the CGI version of PHP. # # You may combine multiple WANT_PHP_* knobs. # Don't specify any WANT_PHP_* knob if your port will work with every PHP SAPI. @@ -48,6 +49,17 @@ PHP_PORT?= ${PORTSDIR}/lang/php4-cli .endif .endif +.if defined(WANT_PHP_WEB) +.if defined(HAVE_PHP) && !defined(HAVE_PHP_CGI) && !defined(HAVE_PHP_MOD) +.BEGIN: + @${ECHO_CMD} "This port requires the Apache Module or the CGI version of PHP, but you have" + @${ECHO_CMD} "already installed a conflicting PHP port without them." + @${FALSE} +.else +PHP_PORT?= ${PORTSDIR}/www/mod_php4 +.endif +.endif + .if defined(WANT_PHP_CGI) .if defined(HAVE_PHP) && !defined(HAVE_PHP_CGI) .BEGIN: diff --git a/lang/php5/bsd.php.mk b/lang/php5/bsd.php.mk index f315c3c4d1fb..59f7191d50dd 100644 --- a/lang/php5/bsd.php.mk +++ b/lang/php5/bsd.php.mk @@ -6,6 +6,7 @@ # WANT_PHP_CLI=yes - Want the CLI version of PHP. # WANT_PHP_CGI=yes - Want the CGI version of PHP. # WANT_PHP_MOD=yes - Want the Apache Module for PHP. +# WANT_PHP_WEB=yes - Want the Apache Module or the CGI version of PHP. # # You may combine multiple WANT_PHP_* knobs. # Don't specify any WANT_PHP_* knob if your port will work with every PHP SAPI. @@ -48,6 +49,17 @@ PHP_PORT?= ${PORTSDIR}/lang/php4-cli .endif .endif +.if defined(WANT_PHP_WEB) +.if defined(HAVE_PHP) && !defined(HAVE_PHP_CGI) && !defined(HAVE_PHP_MOD) +.BEGIN: + @${ECHO_CMD} "This port requires the Apache Module or the CGI version of PHP, but you have" + @${ECHO_CMD} "already installed a conflicting PHP port without them." + @${FALSE} +.else +PHP_PORT?= ${PORTSDIR}/www/mod_php4 +.endif +.endif + .if defined(WANT_PHP_CGI) .if defined(HAVE_PHP) && !defined(HAVE_PHP_CGI) .BEGIN: diff --git a/lang/php53/bsd.php.mk b/lang/php53/bsd.php.mk index f315c3c4d1fb..59f7191d50dd 100644 --- a/lang/php53/bsd.php.mk +++ b/lang/php53/bsd.php.mk @@ -6,6 +6,7 @@ # WANT_PHP_CLI=yes - Want the CLI version of PHP. # WANT_PHP_CGI=yes - Want the CGI version of PHP. # WANT_PHP_MOD=yes - Want the Apache Module for PHP. +# WANT_PHP_WEB=yes - Want the Apache Module or the CGI version of PHP. # # You may combine multiple WANT_PHP_* knobs. # Don't specify any WANT_PHP_* knob if your port will work with every PHP SAPI. @@ -48,6 +49,17 @@ PHP_PORT?= ${PORTSDIR}/lang/php4-cli .endif .endif +.if defined(WANT_PHP_WEB) +.if defined(HAVE_PHP) && !defined(HAVE_PHP_CGI) && !defined(HAVE_PHP_MOD) +.BEGIN: + @${ECHO_CMD} "This port requires the Apache Module or the CGI version of PHP, but you have" + @${ECHO_CMD} "already installed a conflicting PHP port without them." + @${FALSE} +.else +PHP_PORT?= ${PORTSDIR}/www/mod_php4 +.endif +.endif + .if defined(WANT_PHP_CGI) .if defined(HAVE_PHP) && !defined(HAVE_PHP_CGI) .BEGIN: |