diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-08-20 22:48:52 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-08-20 22:48:52 +0000 |
commit | 696d2fe96829fb2bebfec37324ce498410a06d0c (patch) | |
tree | 675d65ead64ccd85b132e5840a8a1ba158ad02f9 /www | |
parent | eeb3d953d63c6ade7e2dcddd438884a897e630f9 (diff) | |
download | ports-696d2fe96829fb2bebfec37324ce498410a06d0c.tar.gz ports-696d2fe96829fb2bebfec37324ce498410a06d0c.zip |
Notes
Diffstat (limited to 'www')
-rw-r--r-- | www/rnews/Makefile | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/www/rnews/Makefile b/www/rnews/Makefile index e5ff0d27e421..7b31fcc909e1 100644 --- a/www/rnews/Makefile +++ b/www/rnews/Makefile @@ -14,12 +14,6 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= A server-side rss aggregator written in php with mysql -.if defined(WITH_PHP3) -RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp3.so:${PORTSDIR}/www/mod_php3 -.else -RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 -.endif - USE_MYSQL= yes NO_BUILD= yes @@ -27,12 +21,14 @@ MYPORTDOCS= CHANGELOG INSTALL LICENSE README magpierss/AUTHORS \ magpierss/CHANGES magpierss/ChangeLog magpierss/INSTALL \ magpierss/NEWS magpierss/README magpierss/TROUBLESHOOTING -pre-everything:: -.if !defined(WITH_PHP3) - @${ECHO_MSG} "" - @${ECHO_MSG} "Press CTRL-C and define WITH_PHP3 if you want" - @${ECHO_MSG} "to use RNEWS with PHP3. PHP4 is used by default." - @${ECHO_MSG} "" +OPTIONS= PHP3 "use RNEWS with PHP3 (Default is PHP4)" off + +.include <bsd.port.pre.mk> + +.if defined(WITH_PHP3) +RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp3.so:${PORTSDIR}/www/mod_php3 +.else +RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 .endif post-patch: @@ -61,4 +57,4 @@ do-install: @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/www/rnews/magpierss/cache @${SED} "s,%%PREFIX%%,${PREFIX},g" ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |