From c3ef58cf98fd33831b7338533a75385b286eed81 Mon Sep 17 00:00:00 2001 From: matthieu Date: Sat, 10 Sep 2011 17:52:09 +0000 Subject: [PATCH] Hack to make testing of newer Xserver versions easier. The input driver ABI broke between xserver 1.9 and 1.10. Some drivers were updated to the new ABI without keeping compatibility So people testing Xserver 1.11 cant build the ones in xenocara until they are updated, but I don't want to break building from CVS. This is going away once xserver 1.11 and associated input drivers updates are committed --- driver/Makefile | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/driver/Makefile b/driver/Makefile index 84d6145fb..02a732d7d 100644 --- a/driver/Makefile +++ b/driver/Makefile @@ -1,18 +1,37 @@ -# $OpenBSD: Makefile,v 1.37 2011/05/08 09:27:57 matthieu Exp $ +# $OpenBSD: Makefile,v 1.38 2011/09/10 17:52:09 matthieu Exp $ + +# The input driver ABI broke between xserver 1.9 and 1.10. +# Some drivers were updated to the new ABI without keeping compatibility +# So people testing Xserver 1.11 cant build the ones in xenocara until +# they are updated, but I don't want to break people building from CVS +# This is going away once xsever 1.11 and associated input drivers +# updates are committed + +USING_XSERVER_110 != if pkg-config --atleast-version 1.10 xorg-server; then \ + echo 1; \ + else \ + echo 0; \ + fi INPUT_DRV_DEFAULT= \ xf86-input-keyboard \ xf86-input-mouse \ xf86-input-usbtablet \ - xf86-input-void \ xf86-input-ws -INPUT_DRV_COMMON= \ - ${INPUT_DRV_DEFAULT} \ - xf86-input-acecad xf86-input-citron \ - xf86-input-elographics xf86-input-fpit \ - xf86-input-hyperpen xf86-input-joystick \ - xf86-input-mutouch xf86-input-penmount +.if !$(USING_XSERVER_110) +INPUT_DRV_DEFAULT +=xf86-input-void +.endif + +INPUT_DRV_COMMON = ${INPUT_DRV_DEFAULT} \ + xf86-input-acecad + +.if !$(USING_XSERVER_110) +INPUT_DRV_COMMON +=\ + xf86-input-citron xf86-input-elographics xf86-input-fpit \ + xf86-input-hyperpen xf86-input-joystick xf86-input-mutouch \ + xf86-input-penmount +.endif INPUT_DRV_alpha=