mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
2ff61c11ce
2: new syntax of LIB_DEPENDS.
56 lines
1.5 KiB
Makefile
56 lines
1.5 KiB
Makefile
# Created by: Andreas Klemm <andreas@klemm.gtn.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= http-analyze
|
|
PORTVERSION= 2.4.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= ftp://ftp.rent-a-guru.de/pub/
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
DISTNAME= ${PORTNAME}${PORTVERSION:R}-src
|
|
|
|
PATCH_SITES= http://http-analyze.org/
|
|
PATCHFILES= patch04.gz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Fast Log-Analyzer for web servers
|
|
|
|
LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION:R}
|
|
|
|
MAKE_ARGS= HA_BINDIR="${PREFIX}/bin" HA_LIBDIR="${DATADIR}" \
|
|
REQINCS="${CPPFLAGS}" REQLIBS="${LDFLAGS}" \
|
|
DEFINES="-DBSD -Dunix" OPTIM="${CFLAGS}" \
|
|
CC="${CC}"
|
|
ALL_TARGET= ${PORTNAME}
|
|
|
|
CPPFLAGS+= $$(gdlib-config --includes)
|
|
LDFLAGS+= $$(gdlib-config --ldflags) $$(gdlib-config --libs)
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
do-install:
|
|
(cd ${WRKSRC}/src && ${INSTALL_DATA} http-analyze \
|
|
${STAGEDIR}${PREFIX}/bin/http-analyze)
|
|
(cd ${WRKSRC}/man && ${INSTALL_MAN} http-analyze.man \
|
|
${STAGEDIR}${MANPREFIX}/man/man1/http-analyze.1)
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
@(cd ${WRKSRC}/files && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for i in http-analyze.pdf http-analyze.ps.gz
|
|
(cd ${WRKSRC}/man && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
|
|
.endfor
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
.for i in contrib tools
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}${EXAMPLESDIR})
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|