summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjperkin <jperkin>2014-02-20 21:27:43 +0000
committerjperkin <jperkin>2014-02-20 21:27:43 +0000
commitb94c392dcdbf91280f8eca307f77d3648f48ea1a (patch)
treef62b0423d88bc2532c37c533bee8e805211777aa /mk
parentfcd9e53eab24d63cfcbc5af4080aa7b6d2743285 (diff)
downloadpkgsrc-b94c392dcdbf91280f8eca307f77d3648f48ea1a.tar.gz
Support X11BASE?=/usr for native X11 on RedHat and derivatives.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.prefs.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 27e634459a5..e18f6db1bc9 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.340 2014/02/14 07:43:46 obache Exp $
+# $NetBSD: bsd.prefs.mk,v 1.341 2014/02/20 21:27:43 jperkin Exp $
#
# This file includes the mk.conf file, which contains the user settings.
#
@@ -581,6 +581,8 @@ X11BASE?= /opt/X11
X11BASE?= /usr/X11R7
. elif exists(/usr/X11R7/lib/libX11.so)
X11BASE?= /usr/X11R7
+. elif exists(/usr/lib/libX11.so) || exists(/usr/lib64/libX11.so)
+X11BASE?= /usr
. else
X11BASE?= /usr/X11R6
. endif