From acb04400b796a3ed86a649b9e446ca4d5d913cd1 Mon Sep 17 00:00:00 2001 From: jwise Date: Thu, 30 Nov 2000 01:16:16 +0000 Subject: Make this work on systems (XFree86 4) without libXdpms. I am testing now whether this works completely correctly (without this patch, xlockmore will not compile). --- x11/xlockmore/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'x11') diff --git a/x11/xlockmore/Makefile b/x11/xlockmore/Makefile index d5135a61f20..28bde83cc45 100644 --- a/x11/xlockmore/Makefile +++ b/x11/xlockmore/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.37 2000/10/22 05:56:14 rh Exp $ +# $NetBSD: Makefile,v 1.38 2000/11/30 01:16:16 jwise Exp $ # FreeBSD Id: Makefile,v 1.23 1997/10/10 09:24:38 tg Exp # @@ -18,6 +18,10 @@ CHECK_MESA= YES USE_MESA= YES .endif +.if !exists(${X11BASE}/lib/libXdpms.a) +XLOCK_NO_DPMS= YES +.endif + GNU_CONFIGURE= YES USE_X11BASE= YES .if defined(XLOCK_LIGHT) @@ -34,6 +38,10 @@ CONFIGURE_ARGS+= --without-motif --without-sx \ CONFIGURE_ARGS+= --enable-def_play='/usr/bin/audioplay ${PREFIX}/lib/X11/xlockmore/' .endif +.if defined(XLOCK_NO_DPMS) +CONFIGURE_ARGS+= --without-dpms +.endif + post-patch: for i in xlock/sound.c xlock/resource.c ; do \ f=${WRKSRC}/$$i ; \ -- cgit v1.2.3