aboutsummaryrefslogtreecommitdiff
path: root/www/pserv/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/pserv/Makefile')
-rw-r--r--www/pserv/Makefile15
1 files changed, 5 insertions, 10 deletions
diff --git a/www/pserv/Makefile b/www/pserv/Makefile
index 1631c710ad80..9deae74f176b 100644
--- a/www/pserv/Makefile
+++ b/www/pserv/Makefile
@@ -21,24 +21,19 @@ OPTIONS_DEFINE= LOG PHP
OPTIONS_DEFAULT= LOG PHP
LOG_DESC= Enable loggin
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MPHP}
-USE_PHP= yes
-WANT_PHP_CGI= yes
-.endif
+PHP_USES= php:cgi
post-patch:
@${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g;s|%%LOCALBASE%%|${LOCALBASE}|g" \
${WRKSRC}/defaults/pserv.conf ${WRKSRC}/sources/main.h
-.if ! ${PORT_OPTIONS:MLOG}
+
+post-patch-LOG-off:
@${REINPLACE_CMD} "s|define LOG|undef LOG|" \
${WRKSRC}/sources/main.h
-.endif
-.if ! ${PORT_OPTIONS:MPHP}
+
+post-patch-PHP-off:
@${REINPLACE_CMD} "s|define PHP|undef PHP|" \
${WRKSRC}/sources/main.h
-.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sources/pserv ${STAGEDIR}${PREFIX}/sbin/