aboutsummaryrefslogtreecommitdiffstats
path: root/www/awffull/Makefile
blob: 3db2eb166aae3b77e931cf6e8ad628e7de7ff96e (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
59
60
61
62
63
# Created by: Chadwick Sorrell chad@wickdev.com
# $FreeBSD$

PORTNAME=   awffull
PORTVERSION=    3.10.2
PORTREVISION=   14
CATEGORIES?=    www
MASTER_SITES=   http://www.stedee.id.au/files/

MAINTAINER?=    chad@wickdev.com
COMMENT=    AWFFull is a webserver log analysis tool forked from Webalizer

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS=  ${LOCALBASE}/share/fonts/bitstream-vera/Vera.ttf:${PORTSDIR}/x11-fonts/bitstream-vera
LIB_DEPENDS=    libgd.so:${PORTSDIR}/graphics/gd \
        libpng.so:${PORTSDIR}/graphics/png \
        libpcre.so:${PORTSDIR}/devel/pcre
RUN_DEPENDS:=   ${BUILD_DEPENDS}

CONFLICTS?= ja-awffull-[0-9]*

FONTDEFAULT?=   ${LOCALBASE}/share/fonts/bitstream-vera/VeraBd.ttf
FONTLABEL?= ${LOCALBASE}/share/fonts/bitstream-vera/Vera.ttf

OPTIONS_DEFINE= GEOIP DOCS EXAMPLES NLS
OPTIONS_SUB=    yes

USES=       gettext iconv shebangfix
SHEBANG_FILES=  contrib/awffull_history_regen.pl \
        contrib/awffull_history_regen_german.pl

GNU_CONFIGURE=  yes
CONFIGURE_ARGS+=--with-font-default=${FONTDEFAULT} \
        --with-font-label=${FONTLABEL} \
        --with-etcdir=${PREFIX}/etc

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

GEOIP_LIB_DEPENDS=  libGeoIP.so:${PORTSDIR}/net/GeoIP
GEOIP_CONFIGURE_ENABLE= geoip

NLS_CONFIGURE_ENABLE=   nls

PORTDOCS=   *
PORTEXAMPLES=   *

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    (cd ${WRKSRC} && ${INSTALL_DATA} \
        COPYING ChangeLog DNS.README PERFORMANCE_TIPS.txt \
        README* TODO country-codes.txt \
        ${STAGEDIR}${DOCSDIR})
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/sample* ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/contrib/*.pl ${STAGEDIR}${EXAMPLESDIR}
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/flags
    ${INSTALL_DATA} ${WRKSRC}/flags/README ${WRKSRC}/flags/*.png \
        ${STAGEDIR}${EXAMPLESDIR}/flags

.include <bsd.port.mk>