From bd7351b254eaf9333d120a265d44e2ebb73e95c2 Mon Sep 17 00:00:00 2001 From: xtraeme Date: Tue, 1 Mar 2005 18:56:43 +0000 Subject: 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). --- x11/Xrender/builtin.mk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'x11/Xrender') 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} -- cgit v1.2.3