freebsd-ports/www/pound/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

56 lines
1.2 KiB
Makefile

# New ports collection makefile for: pound
# Date created: 27 August 2002
# Whom: Anders Nordby <anders@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= pound
PORTVERSION= 2.3.2
CATEGORIES= www net
MASTER_SITES= http://www.apsis.ch/pound/ \
ftp://ftp.nuug.no/pub/anders/distfiles/
DISTNAME= Pound-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= anders@FreeBSD.org
COMMENT= Reverse proxy, load balancer and HTTP(S) frontend for web servers
GNU_CONFIGURE= yes
USE_OPENSSL= yes
USE_RC_SUBR= ${PORTNAME}.sh
SUB_LIST= NAME=${PORTNAME}
CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
MAKE_ARGS+= F_CONF=${PREFIX}/etc/pound.cfg
MAN8= pound.8 poundctl.8
OPTIONS= DAEMON "Running as a daemon" on \
LOG "With Syslog support" on \
MSDAV "With the Microsoft WebDAV extensions support" off
.include <bsd.port.pre.mk>
.if defined(WITHOUT_DAEMON)
CONFIGURE_ARGS+= --disable-daemon
.endif
.if defined(WITHOUT_LOG)
CONFIGURE_ARGS+= --disable-log
.endif
.if defined(WITH_MSDAV)
CONFIGURE_ARGS+= --enable-msdav
.endif
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/FAQ ${DOCSDIR}
.endif
.include <bsd.port.post.mk>