aboutsummaryrefslogtreecommitdiffstats
path: root/www/analog/Makefile
blob: 791ddae819483555f1b1f22549a4b8fe8437b0e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Created by: jfitz
# $FreeBSD$

PORTNAME=   analog
PORTVERSION=    6.0
PORTREVISION=   11
PORTEPOCH=  1
CATEGORIES= www
MASTER_SITES=   http://analog.gsp.com/ \
        http://fossies.org/unix/www/old/

MAINTAINER= john@essenz.com
COMMENT=    Fast program for analysing WWW logfiles

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/Licence.txt

LIB_DEPENDS=    libgd.so:graphics/gd \
        libpng.so:graphics/png

USES=       jpeg
BUILD_WRKSRC=   ${WRKSRC}/src

ALL_TARGET= ${PORTNAME}

SUB_FILES=  pkg-message

LIMGDIR?=   www/data/images
IMGDIR=     ${PREFIX}/${LIMGDIR}
PLIST_SUB=  IMGDIR="${LIMGDIR}"

OPTIONS_DEFINE= DOCS EXAMPLES

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/analog ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/analog.man ${STAGEDIR}${MANPREFIX}/man/man1/analog.1
    ${INSTALL_DATA} ${WRKSRC}/analog.cfg ${STAGEDIR}${PREFIX}/etc/analog.cfg.sample
    ${MKDIR} ${STAGEDIR}${DATADIR}/lang
    ${INSTALL_DATA} ${WRKSRC}/lang/* ${STAGEDIR}${DATADIR}/lang
    ${MKDIR} ${STAGEDIR}${IMGDIR}
    ${INSTALL_DATA} ${WRKSRC}/images/* ${STAGEDIR}${IMGDIR}

do-install-DOCS-on:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}

do-install-EXAMPLES-on:
    ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/*.cfg ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/anlgform.html ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/anlgform.pl ${STAGEDIR}${EXAMPLESDIR}
    ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/css
    ${INSTALL_DATA} ${WRKSRC}/examples/css/Readme.txt ${STAGEDIR}${EXAMPLESDIR}/css
    ${INSTALL_DATA} ${WRKSRC}/examples/css/default.css ${STAGEDIR}${EXAMPLESDIR}/css
    ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/css/jreeves
    ${INSTALL_DATA} ${WRKSRC}/examples/css/jreeves/* ${STAGEDIR}${EXAMPLESDIR}/css/jreeves

.include <bsd.port.mk>