71 lines
1.9 KiB
Makefile
71 lines
1.9 KiB
Makefile
# New ports collection makefile for: analog
|
|
# Date created: October 21st 1996
|
|
# Whom: jfitz
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= analog
|
|
PORTVERSION= 6.0
|
|
PORTREVISION= 8
|
|
PORTEPOCH= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://www.analog.cx/ \
|
|
http://analog.gsp.com/ \
|
|
http://fossies.org/unix/www/ \
|
|
ftp://ftp.polytechnic.edu.na/pub/analog/ \
|
|
http://analog.tzone.it/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= An extremely fast program for analysing WWW logfiles
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd \
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg \
|
|
png15:${PORTSDIR}/graphics/png
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
|
|
|
ALL_TARGET= ${PORTNAME}
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
MAN1= analog.1
|
|
|
|
LIMGDIR?= www/data/images
|
|
IMGDIR= ${PREFIX}/${LIMGDIR}
|
|
PLIST_SUB= IMGDIR="${LIMGDIR}"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/analog ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/analog.man ${MANPREFIX}/man/man1/analog.1
|
|
${INSTALL_DATA} ${WRKSRC}/analog.cfg ${PREFIX}/etc/analog.cfg-dist
|
|
@${MKDIR} ${DATADIR}/lang
|
|
${INSTALL_DATA} ${WRKSRC}/lang/* ${DATADIR}/lang
|
|
@${MKDIR} ${IMGDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/images/* ${IMGDIR}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
|
|
.endif
|
|
.if !defined(NOPORTEXAMPLES)
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.cfg ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/anlgform.html ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/anlgform.pl ${EXAMPLESDIR}
|
|
@${MKDIR} ${EXAMPLESDIR}/css
|
|
${INSTALL_DATA} ${WRKSRC}/examples/css/Readme.txt ${EXAMPLESDIR}/css
|
|
${INSTALL_DATA} ${WRKSRC}/examples/css/default.css ${EXAMPLESDIR}/css
|
|
@${MKDIR} ${EXAMPLESDIR}/css/jreeves
|
|
${INSTALL_DATA} ${WRKSRC}/examples/css/jreeves/* ${EXAMPLESDIR}/css/jreeves
|
|
.endif
|
|
.if !exists(${PREFIX}/etc/analog.cfg)
|
|
@cd ${PREFIX}/etc && ${CP} -f analog.cfg-dist analog.cfg
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|