summaryrefslogtreecommitdiff
path: root/x11/Xrender
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2005-03-01 18:56:43 +0000
committerxtraeme <xtraeme@pkgsrc.org>2005-03-01 18:56:43 +0000
commitc8b85e53d98397c6a12b5d2ce05de97060179a88 (patch)
tree63eec8cc999affaccd54e5dd024c82de01e80d73 /x11/Xrender
parent6956cb17dbc18168f0c342ef74ae6511fd870cf7 (diff)
downloadpkgsrc-c8b85e53d98397c6a12b5d2ce05de97060179a88.tar.gz
Look for XORG_VERSION_* defs from ${X11BASE}/lib/X11/config/xorgversion.def
before xorg.cf, which in xorg from pkgsrc does not contain them. (This is required by our xorg-* packages).
Diffstat (limited to 'x11/Xrender')
-rw-r--r--x11/Xrender/builtin.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/x11/Xrender/builtin.mk b/x11/Xrender/builtin.mk
index a35576b5ef6..1e9d43b395a 100644
--- a/x11/Xrender/builtin.mk
+++ b/x11/Xrender/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.5 2004/07/25 07:34:38 grant Exp $
+# $NetBSD: builtin.mk,v 1.6 2005/03/01 18:56:43 xtraeme Exp $
_X11_TMPL= ${X11BASE}/lib/X11/config/X11.tmpl
@@ -29,8 +29,10 @@ _XRENDER_0.8= 4.2.99.* 4.3 4.3.[0-9] 4.3.[0-9].* 4.3.[1-8][0-9]* 4.3.9[0-8]*
_XRENDER_0.8+= 4.3.99.* 4.[4-9]* 4.[1-9][0-9]*
. if !defined(XF86_VERSION)
XF86_VERSION= 3.3
-. if exists(${X11BASE}/lib/X11/config/xorg.cf)
-_X11_CONFIG_VERSION_DEF= ${X11BASE}/lib/X11/config/xorg.cf
+. if exists(${X11BASE}/lib/X11/config/xorgversion.def)
+_X11_CONFIG_VERSION_DEF= ${X11BASE}/lib/X11/config/xorgversion.def
+. elif exists(${X11BASE}/lib/X11/config/xorg.cf)
+_X11_CONFIG_VERSION_DEF= ${X11BASE}/lib/X11/config/xorg.cf
_XORG_MAJOR!= \
${AWK} '/\#define[ ]*XORG_VERSION_MAJOR/ { print $$3 }' \
${_X11_CONFIG_VERSION_DEF}