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)
This commit is contained in:
Maxime Henrion 2007-10-09 14:58:18 +00:00
parent 3a6bef3ff8
commit f5948a1c7e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=201179

View File

@ -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}