summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorjwise <jwise>2000-11-30 01:16:16 +0000
committerjwise <jwise>2000-11-30 01:16:16 +0000
commitacb04400b796a3ed86a649b9e446ca4d5d913cd1 (patch)
tree9a9f95524fdeb4b7e0532eb34b0bf5921655f76e /x11
parent6d39e69730aae7ac59e2b145569af59a99f5cd16 (diff)
downloadpkgsrc-acb04400b796a3ed86a649b9e446ca4d5d913cd1.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 ; \