pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/plib Unbreak NetBSD release builds: <dev/hid/hid...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/85c3fcde1ee6
branches:  trunk
changeset: 335672:85c3fcde1ee6
user:      hauke <hauke%pkgsrc.org@localhost>
date:      Thu Jun 27 14:19:51 2019 +0000

description:
Unbreak NetBSD release builds: <dev/hid/hid.h> only appeared in 8_99_10.

diffstat:

 games/plib/Makefile         |   4 ++--
 games/plib/distinfo         |   4 ++--
 games/plib/patches/patch-ad |  14 ++++++++------
 3 files changed, 12 insertions(+), 10 deletions(-)

diffs (83 lines):

diff -r 070a33200c60 -r 85c3fcde1ee6 games/plib/Makefile
--- a/games/plib/Makefile       Thu Jun 27 13:50:49 2019 +0000
+++ b/games/plib/Makefile       Thu Jun 27 14:19:51 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.29 2016/04/17 16:39:22 youri Exp $
+# $NetBSD: Makefile,v 1.30 2019/06/27 14:19:51 hauke Exp $
 
 DISTNAME=      plib-1.8.5
-PKGREVISION=   4
+PKGREVISION=   5
 CATEGORIES=    games x11
 MASTER_SITES=  http://plib.sourceforge.net/dist/
 
diff -r 070a33200c60 -r 85c3fcde1ee6 games/plib/distinfo
--- a/games/plib/distinfo       Thu Jun 27 13:50:49 2019 +0000
+++ b/games/plib/distinfo       Thu Jun 27 14:19:51 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2018/08/05 20:42:10 nia Exp $
+$NetBSD: distinfo,v 1.16 2019/06/27 14:19:51 hauke Exp $
 
 SHA1 (plib-1.8.5.tar.gz) = c2cf7e3e1e58f7b63dae4bb21e4fa82c3e4d4cfc
 RMD160 (plib-1.8.5.tar.gz) = 55019bf3758ec2542804d8e3994f4bed5a188e60
@@ -6,7 +6,7 @@
 Size (plib-1.8.5.tar.gz) = 779133 bytes
 SHA1 (patch-aa) = 6a9e3badb63de5b9b100805fa7151ce5db8ced69
 SHA1 (patch-ab) = 1bb0950b08427f8bcef84ee2da1cfd231ca60385
-SHA1 (patch-ad) = e158c9d0eed70146a8ee979eb3488c365455259a
+SHA1 (patch-ad) = 97626674d127eeb7f7f6f0390a441dbf6419de0b
 SHA1 (patch-ae) = fe166e1b3b5d150d3d83bad49e2576d9ebaa0fb7
 SHA1 (patch-af) = ea774a54a3cff4d43abae164bbcae745d4642aea
 SHA1 (patch-ag) = d715adee05f8e6973a5883f74573cc39bfd8d72e
diff -r 070a33200c60 -r 85c3fcde1ee6 games/plib/patches/patch-ad
--- a/games/plib/patches/patch-ad       Thu Jun 27 13:50:49 2019 +0000
+++ b/games/plib/patches/patch-ad       Thu Jun 27 14:19:51 2019 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ad,v 1.8 2018/08/05 20:42:10 nia Exp $
+$NetBSD: patch-ad,v 1.9 2019/06/27 14:19:51 hauke Exp $
 
 --- src/js/jsBSD.cxx.orig      2008-03-11 02:06:21.000000000 +0000
 +++ src/js/jsBSD.cxx
-@@ -49,16 +49,14 @@
+@@ -49,16 +49,16 @@
  #include <sys/ioctl.h>
  #if defined(__FreeBSD__)
  # include <sys/joystick.h>
@@ -14,7 +14,9 @@
  #if defined(__NetBSD__)
 -#ifdef HAVE_USBHID_H
 +#define HAVE_USBHID_H 1
-+#include <dev/hid/hid.h>
++#  if __NetBSD_Version__ > 899000900
++#    include <dev/hid/hid.h>
++#  endif
  #include <usbhid.h>
 -#else
 -#include <usb.h>
@@ -22,7 +24,7 @@
  #elif defined(__FreeBSD__)
  extern "C" {
  #  if __FreeBSD_version < 500000
-@@ -85,7 +83,9 @@ struct os_specific_s {
+@@ -85,7 +85,9 @@ struct os_specific_s {
    int              fd;
    int              is_analog;
    // The following structure members are specific to analog joysticks
@@ -32,7 +34,7 @@
  #ifdef HAVE_USB_JS
    // The following structure members are specific to USB joysticks
    struct hid_item *hids;
-@@ -437,7 +437,7 @@ void jsJoystick::rawRead ( int *buttons,
+@@ -437,7 +439,7 @@ void jsJoystick::rawRead ( int *buttons,
  
      return ;
    }
@@ -41,7 +43,7 @@
    if ( os->is_analog )
    {
      int status = ::read ( os->fd, &os->ajs, sizeof(os->ajs) );
-@@ -462,6 +462,7 @@ void jsJoystick::rawRead ( int *buttons,
+@@ -462,6 +464,7 @@ void jsJoystick::rawRead ( int *buttons,
  
      return;
    }



Home | Main Index | Thread Index | Old Index