summaryrefslogtreecommitdiff
path: root/x11/XF86Setup
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-04-30 15:06:26 +0000
committertron <tron@pkgsrc.org>2001-04-30 15:06:26 +0000
commita6740774e80a68e11a631fb3f4584fc59c77957b (patch)
tree2161f3d7091d718ace694717a08c0a2e1043904f /x11/XF86Setup
parent4d8693e10852821390d0c069503229870112e38b (diff)
downloadpkgsrc-a6740774e80a68e11a631fb3f4584fc59c77957b.tar.gz
Refuse to build this package on XFree86 4.x systems.
Diffstat (limited to 'x11/XF86Setup')
-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)}'