summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Wulf C. Krueger <philantrop@exherbo.org> 2017-06-10 16:36:38 +0200
committerAvatar Wulf C. Krueger <philantrop@exherbo.org> 2017-06-10 16:36:38 +0200
commit0bfe116ad558e564f49483755f7fa98ac26e7d5a (patch)
tree565ad43e5dfd4cac08e8b5c18bf5a86c0a766966
parent03eff8c762d6436b6efec5f1eb63c10faf411a0d (diff)
downloadhardware-0bfe116ad558e564f49483755f7fa98ac26e7d5a.tar.gz
hardware-0bfe116ad558e564f49483755f7fa98ac26e7d5a.tar.xz
xboxdrv-0.8.8-r1: Fix compilation with < gcc6
-rw-r--r--packages/input/xboxdrv/xboxdrv-0.8.8-r1.exheres-09
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/input/xboxdrv/xboxdrv-0.8.8-r1.exheres-0 b/packages/input/xboxdrv/xboxdrv-0.8.8-r1.exheres-0
index 70d8ee4..85a1b28 100644
--- a/packages/input/xboxdrv/xboxdrv-0.8.8-r1.exheres-0
+++ b/packages/input/xboxdrv/xboxdrv-0.8.8-r1.exheres-0
@@ -47,6 +47,15 @@ DEFAULT_SRC_PREPARE_PATCHES=(
SCONS_SRC_CONFIGURE_PARAMS=( BUILD=custom AR=${AR} CC=${CC} CXX=${CXX} PKG_CONFIG=${PKG_CONFIG} RANLIB=${RANLIB} )
SCONS_SRC_COMPILE_PARAMS=( BUILD=custom AR=${AR} CC=${CC} CXX=${CXX} PKG_CONFIG=${PKG_CONFIG} RANLIB=${RANLIB} )
+src_prepare() {
+ default
+
+ # Partially undo the gcc6 patch due to nullptr being undeclared for anything
+ # *not* gcc6
+ edo sed -i -e "s:nullptr:NULL:" src/controller_slot.cpp
+}
+
+
src_install() {
dobin xboxdrv
doman doc/xboxdrv.1