blob: d15a2c4c1325639b3126381cb97833a1e65a0ca2 (
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: pmacct
# Date created: Thu May 8 16:03:11 CEST 2003
# Whom: Kirill Ponomarew <ponomarew@oberon.net>
#
# $FreeBSD$
#
PORTNAME= pmacct
PORTVERSION= 0.5.1
CATEGORIES= net
MASTER_SITES= http://www.ba.cnr.it/~paolo/pmacct/
MAINTAINER= krion@FreeBSD.org
COMMENT= Network tool to gather IP traffic information
.if defined(WITH_MYSQL)
USE_MYSQL= yes
CONFIGURE_ARGS+=--with-mysql-lib=${LOCALBASE}/lib/mysql \
--with-mysql-includes=${LOCALBASE}/include/mysql \
--enable-mysql
.else
CONFIGURE_ARGS+= --disable-mysql
.endif
GNU_CONFIGURE= yes
USE_GETOPT_LONG=yes
USE_REINPLACE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
pre-patch:
@${REINPLACE_CMD} -e \
's,<mysql/mysql.h>,<mysql.h>,' \
${WRKSRC}/mysql_plugin.h
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in README EXAMPLES INTERNALS PLUGINS
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|