diff options
Diffstat (limited to 'www/middleman/Makefile')
-rw-r--r-- | www/middleman/Makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/www/middleman/Makefile b/www/middleman/Makefile new file mode 100644 index 000000000000..5798f0807886 --- /dev/null +++ b/www/middleman/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: middleman +# Date created: Sun Apr 27 15:48:16 CEST 2003 +# Whom: Kirill Ponomarew <ponomarew@oberon.net> +# +# $FreeBSD$ +# + +PORTNAME= middleman +PORTVERSION= 1.5.2 +CATEGORIES= www +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= middle-man +DISTNAME= ${PORTNAME}-${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= ponomarew@oberon.net +COMMENT= Middleman is a robust proxy server + +WRKSRC= ${WRKDIR}/middleman + +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_REINPLACE= yes + +.if defined(WITH_SYSLOG) +CONFIGURE_ARGS+= --enable-syslog +.endif + +.if defined(WITH_DEBUG) +CONFIGURE_ARGS+= --enable-debug +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/mman ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/config.xml ${PREFIX}/etc/mman.xml + ${INSTALL_DATA} ${WRKSRC}/scripts/mman.init ${PREFIX}/etc/rc.d/mman.sh.sample +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/middleman + ${INSTALL_DATA} ${WRKSRC}/scripts/filter.pl ${PREFIX}/share/doc/middleman/ + ${INSTALL_DATA} ${WRKSRC}/README.html ${PREFIX}/share/doc/middleman/ +.endif + +.include <bsd.port.mk> |