summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
Diffstat (limited to 'x11')
-rw-r--r--x11/XF86Setup/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/x11/XF86Setup/Makefile b/x11/XF86Setup/Makefile
index 18a778af783..16ab7309345 100644
--- a/x11/XF86Setup/Makefile
+++ b/x11/XF86Setup/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2001/03/27 03:20:25 hubertf Exp $
+# $NetBSD: Makefile,v 1.19 2001/04/30 15:06:26 tron Exp $
DISTNAME= XF86Setup-3.3.6
CATEGORIES= x11
@@ -22,7 +22,19 @@ NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
WRKSRC= ${WRKDIR}/hw/xfree86/XF86Setup
USE_IMAKE= yes
+.if !defined(X11_RELEASE) && !defined(CHECK_X11)
+X11_RELEASE!= ${MAKE} CHECK_X11=YES print-x11-release
+MAKEFLAGS+= X11_RELEASE="${X11_RELEASE}"
+.if (${X11_RELEASE} == "6.4")
+IGNORE= "This package doesn't work with your X11 distribution."
+.endif
+.endif
+
pre-configure:
@${TOUCH} ${WRKSRC}/res_cpp_symbol
.include "../../mk/bsd.pkg.mk"
+
+print-x11-release:
+ @${GREP} '^#define SharedXextRev' ${X11BASE}/lib/X11/config/X11.tmpl \
+ | ${AWK} '{print($$3)}'