aboutsummaryrefslogtreecommitdiffstats
path: root/www/pserv/Makefile
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2004-05-05 18:22:37 +0800
committerale <ale@FreeBSD.org>2004-05-05 18:22:37 +0800
commit08113c1a0b63acab0a4cd86e3a23f88a3823ac8b (patch)
tree6b3ecb0066fb39935c872aa4361a9ffff9e60ada /www/pserv/Makefile
parentea571a3847d3cfcaae1d3c31ea387677fea7f8e4 (diff)
downloadfreebsd-ports-gnome-08113c1a0b63acab0a4cd86e3a23f88a3823ac8b.tar.gz
freebsd-ports-gnome-08113c1a0b63acab0a4cd86e3a23f88a3823ac8b.tar.zst
freebsd-ports-gnome-08113c1a0b63acab0a4cd86e3a23f88a3823ac8b.zip
Add OPTIONS to disable logging and PHP support.
Diffstat (limited to 'www/pserv/Makefile')
-rw-r--r--www/pserv/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/www/pserv/Makefile b/www/pserv/Makefile
index 1bbbe6681f42..a49c10076efe 100644
--- a/www/pserv/Makefile
+++ b/www/pserv/Makefile
@@ -21,9 +21,22 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
BUILD_WRKSRC= ${WRKSRC}/sources
USE_REINPLACE= yes
+OPTIONS= LOG "Enable logging" on \
+ PHP "Enable PHP support" on
+
+.include <bsd.port.pre.mk>
+
post-patch:
@${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g;s|%%LOCALBASE%%|${LOCALBASE}|g" \
${WRKSRC}/defaults/pserv.conf
+.if defined(WITHOUT_LOG)
+ @${REINPLACE_CMD} "s|define LOG|undef LOG|" \
+ ${WRKSRC}/sources/main.h
+.endif
+.if defined(WITHOUT_PHP)
+ @${REINPLACE_CMD} "s|define PHP|undef PHP|" \
+ ${WRKSRC}/sources/main.h
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sources/pserv ${PREFIX}/sbin/
@@ -31,4 +44,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/defaults/pserv.conf ${PREFIX}/etc/
${INSTALL_SCRIPT} ${FILESDIR}/pserv.sh ${PREFIX}/etc/rc.d/
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>