aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/pmacct/Makefile
blob: a5b2e19aea4c8fd4961b1c3f2151d006971baaca (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
# New ports collection makefile for:    pmacct
# Date created:             Thu May  8 16:03:11 CEST 2003
# Whom:                 Kirill Ponomarew <ponomarew@oberon.net>
#
# $FreeBSD$
#

PORTNAME=   pmacct
PORTVERSION=    0.4.1
CATEGORIES= net
MASTER_SITES=   http://www.ba.cnr.it/~paolo/pmacct/

MAINTAINER= ponomarew@oberon.net
COMMENT=    Network tool to gather IP traffic information

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

GNU_CONFIGURE=  yes

CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \

.if defined(WITH_MYSQL)
LIB_DEPENDS+=   mysqlclient.10:${PORTSDIR}/databases/mysql323-client
CONFIGURE_ARGS+=--with-mysql-lib=${LOCALBASE}/lib/mysql \
        --with-mysql-includes=${LOCALBASE}/include/mysql \
        --enable-mysql
.else
CONFIGURE_ARGS+=    --disable-mysql
.endif

.include <bsd.port.mk>