summaryrefslogtreecommitdiff
path: root/sysutils/xbattbar
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2000-12-29 16:30:05 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2000-12-29 16:30:05 +0000
commit301bf607b1f9b84ea15b54ddc79628e6df8600c2 (patch)
treecce2437cc33ed3a38874fac7f2645082b5dae629 /sysutils/xbattbar
parent6b1411fce4b7f62f445aab5b44ee01992bef0e7c (diff)
downloadpkgsrc-301bf607b1f9b84ea15b54ddc79628e6df8600c2.tar.gz
add check for apm capability (like in xbatt)
Diffstat (limited to 'sysutils/xbattbar')
-rw-r--r--sysutils/xbattbar/Makefile6
1 files changed, 5 insertions, 1 deletions
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