pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/gnome2-applets Make this package build on the NetB...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/57c4d28af000
branches:  trunk
changeset: 485500:57c4d28af000
user:      hira <hira%pkgsrc.org@localhost>
date:      Tue Dec 14 10:26:16 2004 +0000

description:
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:

 x11/gnome2-applets/Makefile |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 54dc507f26c0 -r 57c4d28af000 x11/gnome2-applets/Makefile
--- a/x11/gnome2-applets/Makefile       Tue Dec 14 10:06:16 2004 +0000
+++ b/x11/gnome2-applets/Makefile       Tue Dec 14 10:26:16 2004 +0000
@@ -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 @@
 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; }



Home | Main Index | Thread Index | Old Index