pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/freeglut



Module Name:    pkgsrc
Committed By:   maya
Date:           Wed Oct  9 23:52:10 UTC 2019

Modified Files:
        pkgsrc/graphics/freeglut: distinfo
Added Files:
        pkgsrc/graphics/freeglut/patches: patch-src_wayland_fg__internal__wl.h

Log Message:
freeglut: help netbsd/aarch64 builds along.

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


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/graphics/freeglut/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/graphics/freeglut/patches/patch-src_wayland_fg__internal__wl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/freeglut/distinfo
diff -u pkgsrc/graphics/freeglut/distinfo:1.12 pkgsrc/graphics/freeglut/distinfo:1.13
--- pkgsrc/graphics/freeglut/distinfo:1.12      Fri Oct  4 14:21:40 2019
+++ pkgsrc/graphics/freeglut/distinfo   Wed Oct  9 23:52:10 2019
@@ -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

Added files:

Index: pkgsrc/graphics/freeglut/patches/patch-src_wayland_fg__internal__wl.h
diff -u /dev/null pkgsrc/graphics/freeglut/patches/patch-src_wayland_fg__internal__wl.h:1.1
--- /dev/null   Wed Oct  9 23:52:10 2019
+++ pkgsrc/graphics/freeglut/patches/patch-src_wayland_fg__internal__wl.h       Wed Oct  9 23:52:10 2019
@@ -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