# New ports collection makefile for:	lmmon
# Date created:				24 September 1999
# Whom:					Chris D. Faulhaber <jedgar@fxp.org>
#
# $FreeBSD: ports/sysutils/lmmon/Makefile,v 1.17 2006/10/03 13:25:37 stas Exp $
#

PORTNAME=	lmmon
PORTVERSION=	0.65
PORTREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	http://www.fxp.org/~jedgar/lmmon/

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

ONLY_FOR_ARCHS=	i386 amd64

GNU_CONFIGURE=	yes
MAN8=		lmmon.8
MANCOMPRESSED=	yes
PLIST_FILES=	bin/lmmon

FIXFILES=	configure configure.in lmmon.c

.include <bsd.port.pre.mk>

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

.include <bsd.port.post.mk>
