Wed Dec 27 14:13:55 2017 UTC ()
xf86-input-joystick: update to 1.6.3nb1.
Adapt to NetBSD current changes regarding USB HID.
From bouyer.
(wiz)
diff -r1.6 -r1.7 pkgsrc/x11/xf86-input-joystick/Makefile
diff -r1.4 -r1.5 pkgsrc/x11/xf86-input-joystick/distinfo
diff -r0 -r1.1 pkgsrc/x11/xf86-input-joystick/patches/patch-config.h.in
diff -r0 -r1.1 pkgsrc/x11/xf86-input-joystick/patches/patch-configure
diff -r0 -r1.1 pkgsrc/x11/xf86-input-joystick/patches/patch-src_backend_bsd.c
--- pkgsrc/x11/xf86-input-joystick/Makefile 2017/09/16 19:27:28 1.6
+++ pkgsrc/x11/xf86-input-joystick/Makefile 2017/12/27 14:13:55 1.7
--- pkgsrc/x11/xf86-input-joystick/distinfo 2016/11/18 08:10:24 1.4
+++ pkgsrc/x11/xf86-input-joystick/distinfo 2017/12/27 14:13:55 1.5
$NetBSD: patch-config.h.in,v 1.1 2017/12/27 14:13:55 wiz Exp $
Adapt for NetBSD-8.99.9.
--- config.h.in.orig 2017-12-27 12:38:30.274552468 +0100
+++ config.h.in 2017-12-27 12:42:21.573673909 +0100
@@ -12,6 +12,9 @@
/* Define to 1 if you have the <dev/usb/usbhid.h> header file. */
#undef HAVE_DEV_USB_USBHID_H
+/* Define to 1 if you have the <dev/hid/hid.h> header file. */
+#undef HAVE_DEV_HID_HID_H
+
/* Define to 1 if you have the <dev/usb/usb.h> header file. */
#undef HAVE_DEV_USB_USB_H
$NetBSD: patch-configure,v 1.1 2017/12/27 14:13:55 wiz Exp $
Adapt for NetBSD-8.99.9.
--- configure.orig 2017-12-27 12:38:30.273523326 +0100
+++ configure 2017-12-27 12:48:39.451130924 +0100
@@ -18680,6 +18680,18 @@
done
+for ac_header in dev/hid/hid.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "dev/hid/hid.h" "ac_cv_header_dev_hid_hid_h" "$ac_includes_default"
+if test "x$ac_cv_header_dev_hid_hid_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_DEV_HID_HID_H 1
+_ACEOF
+
+fi
+
+done
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_get_item in -lusbhid" >&5
$as_echo_n "checking for hid_get_item in -lusbhid... " >&6; }
if ${ac_cv_lib_usbhid_hid_get_item+:} false; then :
$NetBSD: patch-src_backend_bsd.c,v 1.1 2017/12/27 14:13:55 wiz Exp $
Adapt for NetBSD-8.99.9.
--- src/backend_bsd.c.orig 2017-12-27 12:38:30.270838738 +0100
+++ src/backend_bsd.c 2017-12-27 12:39:31.650117455 +0100
@@ -44,6 +44,9 @@
#include <usbhid.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbhid.h>
+#ifdef HAVE_DEV_HID_HID_H
+ #include <dev/hid/hid.h>
+#endif
#ifdef HAVE_DEV_USB_USB_IOCTL_H
#include <dev/usb/usb_ioctl.h>
#endif