pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/freeglut freeglut: patch away use of machine/...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e8e6c6bee28c
branches:  trunk
changeset: 342523:e8e6c6bee28c
user:      maya <maya%pkgsrc.org@localhost>
date:      Mon Oct 21 09:38:08 2019 +0000

description:
freeglut: patch away use of machine/joystick.h on netbsd, for the x11
code as well. meant to help aarch64 builds.

when machine/joystick.h exists, it just includes sys/joystick.h.

diffstat:

 graphics/freeglut/distinfo                                  |   3 +-
 graphics/freeglut/patches/patch-src_x11_fg__internal__x11.h |  26 +++++++++++++
 2 files changed, 28 insertions(+), 1 deletions(-)

diffs (43 lines):

diff -r feac38d4fe1f -r e8e6c6bee28c graphics/freeglut/distinfo
--- a/graphics/freeglut/distinfo        Mon Oct 21 09:11:23 2019 +0000
+++ b/graphics/freeglut/distinfo        Mon Oct 21 09:38:08 2019 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.13 2019/10/09 23:52:10 maya Exp $
+$NetBSD: distinfo,v 1.14 2019/10/21 09:38:08 maya Exp $
 
 SHA1 (freeglut-3.2.1.tar.gz) = 7a62e0d2caad92ff745bc5037592b2753f0b2f20
 RMD160 (freeglut-3.2.1.tar.gz) = c9b9d76f61ff56b153367817cfbc1fb5c0816c54
 SHA512 (freeglut-3.2.1.tar.gz) = aced4bbcd36269ce6f4ee1982e0f9e3fffbf18c94f785d3215ac9f4809b992e166c7ada496ed6174e13d77c0f7ef3ca4c57d8a282e96cbbe6ff086339ade3b08
 Size (freeglut-3.2.1.tar.gz) = 440228 bytes
 SHA1 (patch-src_wayland_fg__internal__wl.h) = c1bc21cf6fa7fcb37395db172a805e60071cbbd6
+SHA1 (patch-src_x11_fg__internal__x11.h) = 3a7cfc4b274f5c8d6da2c3ce109877ffac6c0bfa
diff -r feac38d4fe1f -r e8e6c6bee28c graphics/freeglut/patches/patch-src_x11_fg__internal__x11.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/freeglut/patches/patch-src_x11_fg__internal__x11.h       Mon Oct 21 09:38:08 2019 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-src_x11_fg__internal__x11.h,v 1.1 2019/10/21 09:38:08 maya Exp $
+
+<sys/joystick.h> should work for all netbsd.
+(not all archs have a machine/joystick.h, and it just includes sys/joystick.h)
+
+--- src/x11/fg_internal_x11.h.orig     2014-10-20 15:27:04.000000000 +0000
++++ src/x11/fg_internal_x11.h
+@@ -139,17 +139,8 @@ struct tagSFG_PlatformWindowState
+ /* XXX The below hack is done until freeglut's autoconf is updated. */
+ #        define HAVE_USB_JS    1
+ 
+-#        if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
++#        if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__)
+ #            include <sys/joystick.h>
+-#        else
+-/*
+- * XXX NetBSD/amd64 systems may find that they have to steal the
+- * XXX /usr/include/machine/joystick.h from a NetBSD/i386 system.
+- * XXX I cannot comment whether that works for the interface, but
+- * XXX it lets you compile...(^&  I do not think that we can do away
+- * XXX with this header.
+- */
+-#            include <machine/joystick.h>         /* For analog joysticks */
+ #        endif
+ #        define JS_DATA_TYPE joystick
+ #        define JS_RETURN (sizeof(struct JS_DATA_TYPE))



Home | Main Index | Thread Index | Old Index