freebsd-ports/net-mgmt/pmacct/Makefile

47 lines
1 KiB
Makefile
Raw Normal View History

# 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
2003-11-20 20:20:31 +01:00
PORTVERSION= 0.5.3
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)
2003-10-02 21:33:40 +02:00
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" \
2003-11-09 20:52:11 +01:00
LDFLAGS="-L${LOCALBASE}/lib"
pre-patch:
2003-11-09 20:52:11 +01:00
@${REINPLACE_CMD} -e \
's,<mysql/mysql.h>,<mysql.h>,' \
${WRKSRC}/mysql_plugin.h
@${REINPLACE_CMD} -e \
's|-O2|${CFLAGS}|g' ${WRKSRC}/configure
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>