- Convert to OPTIONS
PR: ports/70727 Submitted by: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
This commit is contained in:
parent
eeb3d953d6
commit
696d2fe968
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116854
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user