summaryrefslogtreecommitdiff
path: root/x11/gnome2-applets
diff options
context:
space:
mode:
authorhira <hira@pkgsrc.org>2004-12-14 10:26:16 +0000
committerhira <hira@pkgsrc.org>2004-12-14 10:26:16 +0000
commita1e2549bfa55df77d4b696c1796947c508eadc88 (patch)
treebfc32d9e5d548e5b49664459f22f8df704a729a1 /x11/gnome2-applets
parent22c75b5b2f4c7f8035c97e712262dbf5152f6949 (diff)
downloadpkgsrc-a1e2549bfa55df77d4b696c1796947c508eadc88.tar.gz
Make this package build on the NetBSD platforms which have no APM.
Check whether /usr/include/machine/apmvar.h exists. OK'd by uebayasi@.
Diffstat (limited to 'x11/gnome2-applets')
-rw-r--r--x11/gnome2-applets/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/x11/gnome2-applets/Makefile b/x11/gnome2-applets/Makefile
index 458de0e5613..a36a4a2b6d1 100644
--- a/x11/gnome2-applets/Makefile
+++ b/x11/gnome2-applets/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2004/10/15 16:23:28 jmmv Exp $
+# $NetBSD: Makefile,v 1.36 2004/12/14 10:26:16 hira Exp $
#
DISTNAME= gnome-applets-2.8.1.1
@@ -51,14 +51,16 @@ BUILD_DEFS+= USE_INET6
CONFIGURE_ARGS+= --enable-ipv6
.endif
-.if ${OPSYS} == "Linux" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || \
- ${OPSYS} == "OpenBSD"
+.if ${OPSYS} == "Linux" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" || \
+ (${OPSYS} == "NetBSD" && exists(/usr/include/machine/apmvar.h))
GCONF2_SCHEMAS+= battstat.schemas
PLIST_SUBST+= BATTSTAT=
CONF_FILES+= ${EGDIR}/sound/events/battstat_applet.soundlist \
${PKG_SYSCONFDIR}/sound/events/battstat_applet.soundlist
+CONFIGURE_ARGS+= --enable-battstat
.else
PLIST_SUBST+= BATTSTAT="@comment "
+CONFIGURE_ARGS+= --disable-battstat
.endif
PRINT_PLIST_AWK+= /battstat/ { print "$${BATTSTAT}"$$0; next; }