PORTNAME=	lmmon
PORTVERSION=	0.65
PORTREVISION=	2
CATEGORIES=	sysutils
MASTER_SITES=	LOCAL/bf

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Display information gathered from MB power management controller

LICENSE=	BSD2CLAUSE

USES=		ncurses uidfix
GNU_CONFIGURE=	yes
MAKE_ARGS+=	LDFLAGS="${LDFLAGS} -lncurses" MANDIR=${PREFIX}/share/man/man

ONLY_FOR_ARCHS=	i386 amd64

PLIST_FILES=	bin/lmmon share/man/man8/lmmon.8.gz

FIXFILES=	configure configure.in lmmon.c

post-patch:
	@${REINPLACE_CMD} -e 's,machine/smb.h,dev/smbus/smb.h,' \
		${FIXFILES:S,^,${WRKSRC}/,}

.include <bsd.port.mk>
