xenocara/driver/Makefile
matthieu c3ef58cf98 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
2011-09-10 17:52:09 +00:00

136 lines
3.1 KiB
Makefile

# $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-ws
.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=
INPUT_DRV_amd64= ${INPUT_DRV_COMMON} xf86-input-synaptics xf86-input-vmmouse
INPUT_DRV_hppa= ${INPUT_DRV_DEFAULT}
INPUT_DRV_i386= ${INPUT_DRV_COMMON} xf86-input-synaptics xf86-input-vmmouse
INPUT_DRV_landisk=
INPUT_DRV_loongson= ${INPUT_DRV_DEFAULT}
INPUT_DRV_macppc= ${INPUT_DRV_COMMON}
INPUT_DRV_mvme68k=
INPUT_DRV_mvme88k=
INPUT_DRV_sgi= ${INPUT_DRV_DEFAULT}
INPUT_DRV_sparc64= ${INPUT_DRV_COMMON}
INPUT_DRV_vax=
INPUT_DRV_zaurus= ${INPUT_DRV_DEFAULT}
.if defined(INPUT_DRV_${MACHINE})
INPUT_DRV= ${INPUT_DRV_${MACHINE}}
.else
INPUT_DRV= ${INPUT_DRV_DEFAULT}
.endif
VIDEO_DRV_COMMON= \
xf86-video-apm xf86-video-ark xf86-video-ati xf86-video-chips \
xf86-video-cirrus xf86-video-dummy \
xf86-video-glint xf86-video-i128 xf86-video-mach64 xf86-video-mga \
xf86-video-neomagic \
xf86-video-nv xf86-video-r128 xf86-video-rendition xf86-video-s3 \
xf86-video-s3virge xf86-video-savage xf86-video-siliconmotion \
xf86-video-sis xf86-video-tdfx xf86-video-trident \
xf86-video-tseng xf86-video-vesa
VIDEO_DRV_alpha=
VIDEO_DRV_amd64= \
${VIDEO_DRV_COMMON} \
xf86-video-intel \
xf86-video-openchrome \
xf86-video-radeonhd \
xf86-video-vmware \
xf86-video-wsudl
VIDEO_DRV_armish= \
xf86-video-wsfb xf86-video-wsudl
VIDEO_DRV_hppa= \
xf86-video-wsfb \
xf86-video-wsudl
# keep this list sorted, please.
VIDEO_DRV_i386= \
${VIDEO_DRV_COMMON} \
xf86-video-geode \
xf86-video-i740 \
xf86-video-intel \
xf86-video-openchrome \
xf86-video-radeonhd \
xf86-video-vmware \
xf86-video-voodoo \
xf86-video-wsudl
VIDEO_DRV_landisk=
VIDEO_DRV_loonson= \
xf86-video-siliconmotion xf86-video-wsfb
VIDEO_DRV_macppc= \
xf86-video-ati xf86-video-mach64 xf86-video-nv xf86-video-r128 \
xf86-video-wsfb xf86-video-wsudl
VIDEO_DRV_mvme68k=
VIDEO_DRV_mvme88k=
VIDEO_DRV_sgi= xf86-video-wsfb
VIDEO_DRV_sparc64= \
xf86-video-ati xf86-video-mach64 xf86-video-r128 xf86-video-glint \
xf86-video-sunffb \
xf86-video-wildcatfb xf86-video-wsfb
VIDEO_DRV_vax=
.if defined(VIDEO_DRV_${MACHINE})
VIDEO_DRV= ${VIDEO_DRV_${MACHINE}}
.else
VIDEO_DRV= xf86-video-wsfb
.endif
SUBDIR= ${INPUT_DRV} ${VIDEO_DRV}
.include <bsd.subdir.mk>
build: _SUBDIRUSE