From 301bf607b1f9b84ea15b54ddc79628e6df8600c2 Mon Sep 17 00:00:00 2001 From: dmcmahill Date: Fri, 29 Dec 2000 16:30:05 +0000 Subject: add check for apm capability (like in xbatt) --- sysutils/xbattbar/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sysutils/xbattbar') diff --git a/sysutils/xbattbar/Makefile b/sysutils/xbattbar/Makefile index f20afa0a7c8..a38cd5f7292 100644 --- a/sysutils/xbattbar/Makefile +++ b/sysutils/xbattbar/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2000/12/14 22:21:58 itojun Exp $ +# $NetBSD: Makefile,v 1.3 2000/12/29 16:30:05 dmcmahill Exp $ DISTNAME= xbattbar_1.4 PKGNAME= xbattbar-1.4 @@ -12,6 +12,10 @@ USE_X11BASE= YES USE_IMAKE= YES WRKSRC= ${WRKDIR}/xbattbar +.if !exists(/usr/include/machine/apmvar.h) +IGNORE+= "APM is not available for ${MACHINE_PLATFORM}" +.endif + post-install: ${INSTALL_MAN} ${WRKSRC}/xbattbar.man ${PREFIX}/man/man1/xbattbar.1 -- cgit v1.2.3