summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2010-12-22 23:41:30 +0000
committerabs <abs@pkgsrc.org>2010-12-22 23:41:30 +0000
commit62fba6819969141d5c98dee22ed4dd795abc8015 (patch)
treecfa6fb62547cf2aaa8c67924a93bb8833a9e7a8e /x11
parent6e60d4e83eebc0d6a86141cd073406d6c54eadad (diff)
downloadpkgsrc-62fba6819969141d5c98dee22ed4dd795abc8015.tar.gz
Re-implement check for older native X11 systems to use renderproto9.
(For making the unreasonable assumption that BUILTIN_X11_TYPE.native on a native NetBSD xorg system would be "xorg" I am awarded the Fail In Technology prize of... a full set of "Synergy on P/OS" install media. - - The correct answer was of course "unknown".) Also make the test a little more robust, if not more attractive. As further spice for this particular value equation; earlier this week I switched the only platform I had for which this was relevant (OS X 10.4) to modular X11, but I take solace from the fact this should make the lives of those building x11 apps from current pkgsrc on netbsd-4 no less painful than they were before...
Diffstat (limited to 'x11')
-rw-r--r--x11/renderproto/buildlink3.mk14
1 files changed, 13 insertions, 1 deletions
diff --git a/x11/renderproto/buildlink3.mk b/x11/renderproto/buildlink3.mk
index f2ac1992bef..c3ae6703a0d 100644
--- a/x11/renderproto/buildlink3.mk
+++ b/x11/renderproto/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.13 2010/12/20 06:31:00 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.14 2010/12/22 23:41:30 abs Exp $
.include "../../mk/bsd.fast.prefs.mk"
@@ -7,8 +7,20 @@ BUILDLINK_TREE+= renderproto
.if !defined(RENDERPROTO_BUILDLINK3_MK)
RENDERPROTO_BUILDLINK3_MK:=
+.if ${X11_TYPE} == "native"
+. include "../../mk/x11.buildlink3.mk"
+. if ${BUILTIN_X11_TYPE.native} == "XFree86"
+RENDERPROTO_RENDERPROTO9=1
+. endif
+.endif
+
+.if defined(RENDERPROTO_RENDERPROTO9)
+BUILDLINK_API_DEPENDS.renderproto+= renderproto>=0.9.3nb1
+BUILDLINK_PKGSRCDIR.renderproto?= ../../x11/renderproto9
+.else
BUILDLINK_API_DEPENDS.renderproto+= renderproto>=0.9.3nb1
BUILDLINK_PKGSRCDIR.renderproto?= ../../x11/renderproto
+.endif
BUILDLINK_DEPMETHOD.renderproto?= build
.endif # RENDERPROTO_BUILDLINK3_MK