diff options
author | jmc <jmc@pkgsrc.org> | 2002-03-08 23:17:24 +0000 |
---|---|---|
committer | jmc <jmc@pkgsrc.org> | 2002-03-08 23:17:24 +0000 |
commit | 534a0bb5c35fb1183062e0646229eb6177c46336 (patch) | |
tree | ea93a434cf03366086eb86a2629d93bfb03a0359 /wm/icewm/Makefile.common | |
parent | bab330b5a76801296655e42c3700e8932be6cb0f (diff) | |
download | pkgsrc-534a0bb5c35fb1183062e0646229eb6177c46336.tar.gz |
Fix cases where apmvar.h doesn't exist.
By default the apm applet is always compiled in unless the lite support is
enabled which turns off way too much.
So, split the apm option out into it's own option and test for it by checking
in Makefile.common for apmvar.h's existance. If it doesn't exist pass
--disable-apm. This makes this compile again on machines that do not have
machine/apmvar.h (and are NetBSD) such as macppc.
Bump version via PKGVERSION to nb1.
Diffstat (limited to 'wm/icewm/Makefile.common')
-rw-r--r-- | wm/icewm/Makefile.common | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/wm/icewm/Makefile.common b/wm/icewm/Makefile.common index 70512eb08b3..d0ac02ab435 100644 --- a/wm/icewm/Makefile.common +++ b/wm/icewm/Makefile.common @@ -1,9 +1,10 @@ -# $NetBSD: Makefile.common,v 1.10 2002/03/04 08:24:59 martti Exp $ +# $NetBSD: Makefile.common,v 1.11 2002/03/08 23:17:24 jmc Exp $ DISTNAME= icewm-1.0.9-2 CATEGORIES= x11 wm MASTER_SITES= http://download.sourceforge.net/icewm/ EXTRACT_SUFX= .tar.bz2 +PKGREVISION= 1 MAINTAINER= packages@netbsd.org HOMEPAGE= http://icewm.sourceforge.net/ @@ -19,6 +20,10 @@ WRKSRC= ${WRKDIR}/icewm-1.0.9 .include "../../mk/bsd.prefs.mk" +.if !exists(/usr/include/machine/apmvar.h) +CONFIGURE_ARGS+= --disable-apm +.endif + .if ${OPSYS} == "NetBSD" .if exists(/usr/include/machine/apmvar.h) CPPFLAGS+= -DCONFIG_APM -DSTART_XPM="\"bsd-daemon.xpm\"" |