Skip to content

Commit

Permalink
xf86-input-keyboard: add build glue to enable USE_WSKBD_GETMAP.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutsui committed Oct 31, 2023
1 parent 95b733a commit aac69dc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions external/mit/xorg/server/drivers/xf86-input-keyboard/Makefile
Expand Up @@ -16,7 +16,9 @@ CPPFLAGS+= -DPCVT_SUPPORT
.if ${MACHINE_ARCH} == "powerpc" || \
${MACHINE} == "amiga" || \
${MACHINE} == "evbarm" || \
${MACHINE} == "ews4800mips" || \
${MACHINE} == "mac68k" || \
${MACHINE} == "newsmips" || \
${MACHINE} == "pmax" || \
${MACHINE} == "sgimips" || \
${MACHINE} == "shark" || \
Expand All @@ -30,6 +32,14 @@ CPPFLAGS+= -DWSCONS_SUPPORT
CPPFLAGS+= -DXKB
CPPFLAGS.kbd.c= -D__XKBDEFRULES__=${__XKBDEFRULES__}

.if \
${MACHINE} == "ews4800mips" || \
${MACHINE} == "newsmips" || \
0
CPPFLAGS+= -DUSE_WSKBD_GETMAP
SRCS+= ws_KbdMap.c
.endif

X11EXTRAMANDEFS+= -e 's,__xkb_path__,${X11LIBDIR}/xkb,g'

COPTS.kbd.c= -Wno-error # XXX deprecated
Expand Down

0 comments on commit aac69dc

Please sign in to comment.