aboutsummaryrefslogtreecommitdiffstats
path: root/www/awffull/Makefile
blob: 148a2696f116b9bc3e0234057202c146450e62d3 (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
# New ports collection makefile for: awffull
# Date created:     5 Feburary 2008
# Whom:         Chadwick Sorrell chad@wickdev.com
#
# $FreeBSD$
#

PORTNAME=   awffull
PORTVERSION=    3.10.2
PORTREVISION=   1
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

LIB_DEPENDS=    gd.4:${PORTSDIR}/graphics/gd \
        png.5:${PORTSDIR}/graphics/png \
        pcre.0:${PORTSDIR}/devel/pcre

RUN_DEPENDS?=   ${LOCALBASE}/lib/X11/fonts/bitstream-vera/Vera.ttf:${PORTSDIR}/x11-fonts/bitstream-vera
BUILD_DEPENS=   ${RUN_DEPENDS}

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

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

OPTIONS=    GEOIP "Enable support for GeoIP (Country Detection)" Off

USE_ICONV=  yes
USE_GETTEXT=    yes

GNU_CONFIGURE=  yes
CONFIGURE_ARGS+=--with-font-default=${FONTDEFAULT} \
        --with-font-label=${FONTLABEL}
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

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

MAN1=       awffull.1
MAN5=       awffull.conf.5

.include <bsd.port.pre.mk>

.if defined(WITH_GEOIP)
LIB_DEPENDS+=   GeoIP.5:${PORTSDIR}/net/GeoIP
CONFIGURE_ARGS+=--enable-geoip
.else
CONFIGURE_ARGS+=--disable-geoip
.endif

.include <bsd.port.post.mk>