aboutsummaryrefslogtreecommitdiffstats
path: root/www/sarg/Makefile
blob: 2e68ac522b1e9f93f488c62ab85079011de7dbaa (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
# New ports collection makefile for:    sarg
# Date created:     23.02.2003
# Whom:         mt@primats.org.ua
#
# $FreeBSD$
#

PORTNAME=   sarg
PORTVERSION=    2.0.5
CATEGORIES= www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

PATCH_SITES=    http://sarg.sourceforge.net/
PATCHFILES= freebsd.patch abbreviation.patch
PATCH_DIST_STRIP=   -p1

MAINTAINER= mt@primats.org.ua
COMMENT=    Squid log analyzer and HTML report generator

USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CC=gcc
CONFIGURE_ARGS= --enable-bindir="${PREFIX}/bin" \
        --enable-sysconfdir="${PREFIX}/etc/${PORTNAME}" \
        --enable-htmldir="${PREFIX}/www/${PORTNAME}" \
        --enable-mandir="${MAN1PREFIX}/man/man1"

.if !defined(WITHOUT_GD)
LIB_DEPENDS+=   gd.4:${PORTSDIR}/graphics/gd
CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
.endif

MAN1=       sarg.1

post-extract:
    @${CHMOD} +x ${WRKSRC}/sarg-php/locale

post-patch:
    @${REINPLACE_CMD} -e '/^LDFLAGS/d' ${WRKSRC}/${CONFIGURE_SCRIPT}

.include <bsd.port.mk>