pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/wm/icewm Disable APM applet on none APM ports of NetBSD.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/22389d115b50
branches:  trunk
changeset: 531729:22389d115b50
user:      obache <obache%pkgsrc.org@localhost>
date:      Sun Aug 05 16:03:38 2007 +0000

description:
Disable APM applet on none APM ports of NetBSD.
Should fix PR 36289.

diffstat:

 wm/icewm/Makefile.common |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r ad0818a8d5e9 -r 22389d115b50 wm/icewm/Makefile.common
--- a/wm/icewm/Makefile.common  Sun Aug 05 15:48:09 2007 +0000
+++ b/wm/icewm/Makefile.common  Sun Aug 05 16:03:38 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.58 2007/06/15 17:43:40 joerg Exp $
+# $NetBSD: Makefile.common,v 1.59 2007/08/05 16:03:38 obache Exp $
 
 DISTNAME=              icewm-1.2.27
 CATEGORIES=            x11 wm
@@ -37,6 +37,15 @@
 CXXFLAGS+=             -DSTART_PIXMAP="\"bsd-daemon.xpm\""
 .endif
 
+.if ${OPSYS} == "NetBSD" && (!exists(/usr/include/machine/apmvar.h) || \
+       (${MACHINE_ARCH} == "sparc64" && !exists(/usr/include/sparc/apmvar.h)))
+SUBST_CLASSES+=                apm
+SUBST_STAGE.apm=       post-configure
+SUBST_FILES.apm=       src/config.h
+SUBST_SED.apm=         -e 's,define CONFIG_APPLET_APM 1,undef CONFIG_APPLET_APM,'
+SUBST_MESSAGE.apm=     Disable APM applet.
+.endif
+
 .if ${OPSYS} == "NetBSD"
 .  if !empty(OS_VERSION:M1.*)
 CONFIGURE_ARGS+=       --disable-i18n



Home | Main Index | Thread Index | Old Index