summaryrefslogtreecommitdiff
path: root/x11/XF86Setup
diff options
context:
space:
mode:
authortron <tron>2001-04-30 15:06:26 +0000
committertron <tron>2001-04-30 15:06:26 +0000
commit3a9b931ee1b4bad4026a90c2d2d610018aabe555 (patch)
tree2161f3d7091d718ace694717a08c0a2e1043904f /x11/XF86Setup
parent4596b029ad9afccd5b1ca47e0f8e63419290f2f4 (diff)
downloadpkgsrc-3a9b931ee1b4bad4026a90c2d2d610018aabe555.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)}'