summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorjwise <jwise@pkgsrc.org>2000-11-30 01:16:16 +0000
committerjwise <jwise@pkgsrc.org>2000-11-30 01:16:16 +0000
commit07cecbc07240795e8276e2fa49c7b6a138f1b795 (patch)
tree9a9f95524fdeb4b7e0532eb34b0bf5921655f76e /x11
parent497d8b0ee128e17cb0e55a1736303de336254e7d (diff)
downloadpkgsrc-07cecbc07240795e8276e2fa49c7b6a138f1b795.tar.gz
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).
Diffstat (limited to 'x11')
-rw-r--r--x11/xlockmore/Makefile10
1 files changed, 9 insertions, 1 deletions
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 ; \