aboutsummaryrefslogtreecommitdiffstats
path: root/www/http-analyze/Makefile
blob: 91e29c5e6557b2149bd684600e808c5ac294e343 (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
# Created by: Andreas Klemm <andreas@klemm.gtn.com>
# $FreeBSD$

PORTNAME=   http-analyze
PORTVERSION=    2.4.4
PORTREVISION=   3
CATEGORIES= www
MASTER_SITES=   ftp://ftp.rent-a-guru.de/pub/
DISTNAME=   ${PORTNAME}${PORTVERSION:R}-src
DIST_SUBDIR=    ${PORTNAME}

PATCH_SITES=    http://http-analyze.org/
PATCHFILES= patch04.gz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Fast Log-Analyzer for web servers

LIB_DEPENDS=    libgd.so:graphics/gd

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)

OPTIONS_DEFINE= DOCS EXAMPLES

do-install:
    (cd ${WRKSRC}/src && ${INSTALL_PROGRAM} 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})

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC}/man && ${INSTALL_DATA} http-analyze.pdf http-analyze.ps.gz ${STAGEDIR}${DOCSDIR}

do-install-EXAMPLES-on:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    @cd ${WRKSRC} && ${COPYTREE_SHARE} "contrib tools" ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>