summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorMaxime Henrion <mux@FreeBSD.org>2007-10-09 14:58:18 +0000
committerMaxime Henrion <mux@FreeBSD.org>2007-10-09 14:58:18 +0000
commitf5948a1c7e36673e353a78e49980db33399a87fd (patch)
tree23cb509252f6b735672f9bc3a55d7c3dabcbcbb5 /www
parentfix the build if a base64.h exists in PREFIX/include which declares things (diff)
Add two new OPTIONS to this port:
- The PCRE option allows one to link pound against libpcre for the regcomp() and regexec() functions instead of libc. This can make a substantial difference in CPU consumption with some workloads. Defaults to off. - The LIBTHR option links pound against the libthr for threading, instead of libpthread. This makes a *huge* difference when you deal with enough traffic. Defaults to on. Bump PORTREVISION. Approved by: anders (maintainer)
Notes
Notes: svn path=/head/; revision=201179
Diffstat (limited to 'www')
-rw-r--r--www/pound/Makefile25
1 files changed, 22 insertions, 3 deletions
diff --git a/www/pound/Makefile b/www/pound/Makefile
index 9606bc8c760a..1d655dab1a3a 100644
--- a/www/pound/Makefile
+++ b/www/pound/Makefile
@@ -7,6 +7,7 @@
PORTNAME= pound
PORTVERSION= 2.3.2
+PORTREVISION= 1
CATEGORIES= www net
MASTER_SITES= http://www.apsis.ch/pound/ \
ftp://ftp.nuug.no/pub/anders/distfiles/
@@ -22,15 +23,17 @@ USE_RC_SUBR= ${PORTNAME}.sh
SUB_LIST= NAME=${PORTNAME}
-CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
- PTHREAD_LIBS="${PTHREAD_LIBS}"
+POUND_CFLAGS= ${CFLAGS}
+POUND_LDFLAGS= ${LDFLAGS}
MAKE_ARGS+= F_CONF=${PREFIX}/etc/pound.cfg
MAN8= pound.8 poundctl.8
OPTIONS= DAEMON "Running as a daemon" on \
+ LIBTHR "Link against libthr for threading" on \
LOG "With Syslog support" on \
- MSDAV "With the Microsoft WebDAV extensions support" off
+ MSDAV "With the Microsoft WebDAV extensions support" off \
+ PCRE "Build with libpcre support" off
.include <bsd.port.pre.mk>
@@ -46,6 +49,22 @@ CONFIGURE_ARGS+= --disable-log
CONFIGURE_ARGS+= --enable-msdav
.endif
+.if defined(WITH_PCRE)
+LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
+POUND_CFLAGS+= "-I${LOCALBASE}/include"
+POUND_LDFLAGS+= "-L${LOCALBASE}/lib"
+.endif
+
+.if !defined(WITHOUT_LIBTHR)
+PTHREAD_LIBS= -lthr
+.endif
+
+CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}" \
+ CFLAGS="${POUND_CFLAGS}" \
+ CPPFLAGS="${POUND_CFLAGS}" \
+ LDFLAGS="${POUND_LDFLAGS}"
+
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}