summaryrefslogtreecommitdiff
path: root/driver/Makefile
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2011-09-10 17:52:10 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2011-09-10 17:52:10 +0000
commitf051da3e096e015df85e06a6185a39ee1fa6d633 (patch)
treef1ebd352e41ad917b05fc1cd6a0abf87a380bdd9 /driver/Makefile
parentd7fdc26ba1de0a052b44dfc6fa99e0e46ab3c393 (diff)
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
Diffstat (limited to 'driver/Makefile')
-rw-r--r--driver/Makefile35
1 files 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=