1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/www/ziproxy/Makefile
Martin Wilke 7eada2e2f9 - Update to 2.6.0
PR:		129232
Submitted by:	Pavel Pankov <pankov_p@mail.ru> (maintainer)
2008-11-29 20:58:44 +00:00

82 lines
2.3 KiB
Makefile

# New ports collection makefile for: ziproxy
# Date created: 2006-07-28
# Whom: Pankov Pavel <pankov_p@mail.ru>
#
# $FreeBSD$
PORTNAME= ziproxy
PORTVERSION= 2.6.0
CATEGORIES= www
MASTER_SITES= SF
MAINTAINER= pankov_p@mail.ru
COMMENT= A forwarding, non-caching, compressing proxy server
LIB_DEPENDS= ungif.5:${PORTSDIR}/graphics/libungif \
png.5:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg
USE_BZIP2= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
ERRORFILES= 400.html 404.html 407.html 408.html 409.html 500.html 503.html
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-cfgfile="${PREFIX}/etc/ziproxy/ziproxy.conf"
PORTDOCS= README README.ru README.tools README.tools.ru JPEG2000.txt JPEG2000.ru.txt
MAN1= ziproxy.1 ziproxylogtool.1
MANLANG= "" ru
MANCOMPRESSED= no
USE_RC_SUBR= ziproxy
SUB_FILES+= pkg-message
OPTIONS+= JPEG2000 "Build with JPEG2000 support" on
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
-e 's|%%DATADIR%%|${DATADIR}|g' \
${WRKSRC}/etc/ziproxy/ziproxy.conf
post-install:
@${MKDIR} ${PREFIX}/etc/ziproxy
@${INSTALL_DATA} ${WRKSRC}/etc/ziproxy/bo_exception.list ${PREFIX}/etc/ziproxy/bo_exception.list
@${INSTALL_DATA} ${WRKSRC}/etc/ziproxy/http.passwd ${PREFIX}/etc/ziproxy/http.passwd
@${INSTALL_DATA} ${WRKSRC}/etc/ziproxy/noprocess.list ${PREFIX}/etc/ziproxy/noprocess.list
@${INSTALL_DATA} ${WRKSRC}/etc/ziproxy/replace.list ${PREFIX}/etc/ziproxy/replace.list
@${INSTALL_DATA} ${WRKSRC}/etc/ziproxy/ziproxy.conf ${PREFIX}/etc/ziproxy/ziproxy.conf.sample
@if [ ! -f ${PREFIX}/etc/ziproxy/ziproxy.conf ]; then \
${CP} -p ${WRKSRC}/etc/ziproxy/ziproxy.conf ${PREFIX}/etc/ziproxy/ziproxy.conf ; \
fi
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for FILE in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}/${DOC}
.endfor
.endif
@${MKDIR} ${DATADIR}/error
.for FILE in ${ERRORFILES}
@${INSTALL_DATA} ${WRKSRC}/var/ziproxy/error/${FILE} ${DATADIR}/error/${FILE}
.endfor
@${INSTALL_SCRIPT} ${WRKSRC}/src/tools/ziproxy_genhtml_stats.sh ${PREFIX}/bin
@${CAT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_JPEG2000)
CONFIGURE_ARGS+= --with-jasper
LIB_DEPENDS+= jasper.4:${PORTSDIR}/graphics/jasper
.endif
.include <bsd.port.post.mk>