diff options
author | obache <obache@pkgsrc.org> | 2007-08-05 16:03:38 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2007-08-05 16:03:38 +0000 |
commit | 62573e826119f3de877ca101a84baf39b59a11c3 (patch) | |
tree | 0b4b038bf7b5a2d59dc003ad3ad657a928bac871 /wm/icewm/Makefile.common | |
parent | 5471e226b8e5e6d96f2473a0d175fd4e51c08e21 (diff) | |
download | pkgsrc-62573e826119f3de877ca101a84baf39b59a11c3.tar.gz |
Disable APM applet on none APM ports of NetBSD.
Should fix PR 36289.
Diffstat (limited to 'wm/icewm/Makefile.common')
-rw-r--r-- | wm/icewm/Makefile.common | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/wm/icewm/Makefile.common b/wm/icewm/Makefile.common index 36dcd4a3c33..6f6b39684e7 100644 --- a/wm/icewm/Makefile.common +++ b/wm/icewm/Makefile.common @@ -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 @@ PKG_SYSCONFSUBDIR= icewm 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 |