--- Makefile.orig	2008-07-07 14:22:06.000000000 -0400
+++ Makefile	2008-07-07 14:22:53.000000000 -0400
@@ -95,6 +95,10 @@
 	${REINPLACE_CMD} -e 's|<qevent.h>|<QtEvents>|'\
 		${WRKSRC}/../kwin/effects/desktopgrid.cpp
 
+post-configure:
+	${REINPLACE_CMD} -e 's|/\* #undef HAVE_XKB \*/|#define HAVE_XKB 1|'\
+		${WRKSRC}/../build/config-X11.h
+
 post-install:
 	${CHGRP} kmem ${KDE4_PREFIX}/bin/ksysguardd && \
 		${CHMOD} g+s ${KDE4_PREFIX}/bin/ksysguardd
