mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
4b1baa1800
Convert to staging, USES=gmake, and the new LIB_DEPENDS standard.
46 lines
1.0 KiB
Makefile
46 lines
1.0 KiB
Makefile
# Created by: Jon Nistor <nistor@snickers.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bmon
|
|
PORTVERSION= 2.1.0
|
|
PORTREVISION= 5
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://people.suug.ch/~tgr/bmon/files/
|
|
|
|
MAINTAINER= nistor@snickers.org
|
|
COMMENT= Portable bandwidth monitor and rate estimator
|
|
|
|
OPTIONS_DEFINE= DBI RRDTOOL
|
|
OPTIONS_DEFAULT= DBI
|
|
DBI_DESC= LibDBI output module for rsyslog
|
|
RRDTOOL_DESC= Usage graphs support
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
USES= gmake
|
|
GNU_CONFIGURE= YES
|
|
CONFIGURE_ARGS= --disable-asound
|
|
MAKEFILE= GNUmakefile
|
|
|
|
PLIST_FILES= sbin/bmon man/man1/bmon.1.gz
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MRRDTOOL}
|
|
BUILD_DEPENDS= rrdtool:${PORTSDIR}/databases/rrdtool
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-rrd
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDBI}
|
|
LIB_DEPENDS= libdbi.so:${PORTSDIR}/databases/libdbi
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-dbi
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/bmon ${STAGEDIR}${PREFIX}/sbin
|
|
${INSTALL_MAN} ${WRKSRC}/man/bmon.1 ${STAGEDIR}${PREFIX}/man/man1/bmon.1
|
|
|
|
.include <bsd.port.mk>
|