summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorhira <hira@pkgsrc.org>2007-12-30 09:37:23 +0000
committerhira <hira@pkgsrc.org>2007-12-30 09:37:23 +0000
commit6245f5c041ab9987a114f7b5675fba49e2845276 (patch)
treeecf204ae113672273087d8bfba941893c2db9aed /sysutils
parentc2975b78690ddc627d8ae2613093f35439467a0e (diff)
downloadpkgsrc-6245f5c041ab9987a114f7b5675fba49e2845276.tar.gz
On NetBSD, this cannot be built without APM.
Set PKG_FAIL_REASON if APM is not available.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/xfce4-battery-plugin/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysutils/xfce4-battery-plugin/Makefile b/sysutils/xfce4-battery-plugin/Makefile
index 3905adc20b9..27ee1274665 100644
--- a/sysutils/xfce4-battery-plugin/Makefile
+++ b/sysutils/xfce4-battery-plugin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2007/05/04 10:13:12 hira Exp $
+# $NetBSD: Makefile,v 1.4 2007/12/30 09:37:23 hira Exp $
.include "../../meta-pkgs/xfce4/Makefile.common"
@@ -10,6 +10,10 @@ CATEGORIES= sysutils
MASTER_SITES= http://goodies.xfce.org/releases/xfce4-battery-plugin/
COMMENT= Xfce battey monitor plugin
+.if ${OPSYS} == "NetBSD" && !exists(/usr/include/machine/apmvar.h)
+PKG_FAIL_REASON+= "APM is not available on ${MACHINE_PLATFORM}."
+.endif
+
USE_TOOLS+= perl:run
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"