pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/freeglut freeglut: help netbsd/aarch64 builds...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8809bc74d8d6
branches:  trunk
changeset: 402431:8809bc74d8d6
user:      maya <maya%pkgsrc.org@localhost>
date:      Wed Oct 09 23:52:10 2019 +0000

description:
freeglut: help netbsd/aarch64 builds along.

they don't have machine/joystick.h, but probably would have sys/joystick.h.

diffstat:

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

diffs (42 lines):

diff -r 77c24e0ea7ae -r 8809bc74d8d6 graphics/freeglut/distinfo
--- a/graphics/freeglut/distinfo        Wed Oct 09 22:46:41 2019 +0000
+++ b/graphics/freeglut/distinfo        Wed Oct 09 23:52:10 2019 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.12 2019/10/04 14:21:40 nia Exp $
+$NetBSD: distinfo,v 1.13 2019/10/09 23:52:10 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
diff -r 77c24e0ea7ae -r 8809bc74d8d6 graphics/freeglut/patches/patch-src_wayland_fg__internal__wl.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/freeglut/patches/patch-src_wayland_fg__internal__wl.h    Wed Oct 09 23:52:10 2019 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-src_wayland_fg__internal__wl.h,v 1.1 2019/10/09 23:52:10 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/wayland/fg_internal_wl.h.orig  2015-04-04 18:43:27.000000000 +0000
++++ src/wayland/fg_internal_wl.h
+@@ -105,17 +105,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