diff options
author | wiz <wiz@pkgsrc.org> | 2005-05-31 17:37:50 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-05-31 17:37:50 +0000 |
commit | eeef4ca8d9959710ed01000523a316f3e219d137 (patch) | |
tree | 2f6d1a722c7f3a8e83b69b0b7e32366ee7231298 /devel/SDL | |
parent | 530e2e547a4075b73746cca48e75ce35adad7075 (diff) | |
download | pkgsrc-eeef4ca8d9959710ed01000523a316f3e219d137.tar.gz |
Better DragonFlyBSD support from Joerg Sonnenberger.
. find USB headers
. fix joystick support
Diffstat (limited to 'devel/SDL')
-rw-r--r-- | devel/SDL/distinfo | 8 | ||||
-rw-r--r-- | devel/SDL/patches/patch-aa | 51 | ||||
-rw-r--r-- | devel/SDL/patches/patch-aj | 54 | ||||
-rw-r--r-- | devel/SDL/patches/patch-am | 56 |
4 files changed, 141 insertions, 28 deletions
diff --git a/devel/SDL/distinfo b/devel/SDL/distinfo index c5b44c4e1e8..af745837562 100644 --- a/devel/SDL/distinfo +++ b/devel/SDL/distinfo @@ -1,16 +1,16 @@ -$NetBSD: distinfo,v 1.39 2005/05/20 20:08:40 wiz Exp $ +$NetBSD: distinfo,v 1.40 2005/05/31 17:37:50 wiz Exp $ SHA1 (SDL-1.2.8.tar.gz) = 26f2104a60a28914b809d3cb77d5790bfdfd024c RMD160 (SDL-1.2.8.tar.gz) = 91aa02f6b52792b3ec7f5478bcaebda1542980dc Size (SDL-1.2.8.tar.gz) = 2602449 bytes -SHA1 (patch-aa) = 0853dfa9d64d0848de0d084541b6ffd38ffdedad +SHA1 (patch-aa) = f41d0de165d41826a6de2fdf9521d4f41f97221a SHA1 (patch-ab) = 6693545cafa5f5e73fb3f6f34d1a0b59a17872d2 SHA1 (patch-ac) = 8471da99fcd2771e319556c95f6d1295dce002bb SHA1 (patch-ad) = 230544c0aa2f8d827a9d49c4962afe2e4936074e SHA1 (patch-af) = f5e824addf308f9c467de02e3b262afbc0ef77c0 -SHA1 (patch-aj) = f857e5dba94ff6d3893f6218cbc0c9e011f02cf7 +SHA1 (patch-aj) = 9b7bae7224129813a88bb9b5ae5364e167e0551a SHA1 (patch-al) = d8b4ee9d33c4b34db87b098f4945018ae995ae99 -SHA1 (patch-am) = 54ddcc39e8e23bbff09ffc0d56b783ec7404eea3 +SHA1 (patch-am) = 0fd647ff90fbee55c8d10f7e29f3dbd1da8ad83b SHA1 (patch-ar) = 61e759bb3eb05890160573dfe63431792f1823bd SHA1 (patch-as) = f69ca8796afeda35e57c89aa7a161de2de7bf6d8 SHA1 (patch-ba) = 4c87c3812c9f8bdabb974a6a17f6243cedcc887e diff --git a/devel/SDL/patches/patch-aa b/devel/SDL/patches/patch-aa index bceff4b28ac..4d9edc10f07 100644 --- a/devel/SDL/patches/patch-aa +++ b/devel/SDL/patches/patch-aa @@ -1,8 +1,22 @@ -$NetBSD: patch-aa,v 1.10 2005/05/20 20:08:40 wiz Exp $ +$NetBSD: patch-aa,v 1.11 2005/05/31 17:37:50 wiz Exp $ --- src/joystick/bsd/SDL_sysjoystick.c.orig 2004-12-13 08:54:32.000000000 +0100 +++ src/joystick/bsd/SDL_sysjoystick.c -@@ -55,12 +55,14 @@ static char rcsid = +@@ -44,8 +44,13 @@ static char rcsid = + #if defined(HAVE_USB_H) + #include <usb.h> + #endif ++#ifdef __DragonFly__ ++#include <bus/usb/usb.h> ++#include <bus/usb/usbhid.h> ++#else + #include <dev/usb/usb.h> + #include <dev/usb/usbhid.h> ++#endif + + #if defined(HAVE_USBHID_H) + #include <usbhid.h> +@@ -55,12 +60,14 @@ static char rcsid = #include <libusbhid.h> #endif @@ -19,7 +33,7 @@ $NetBSD: patch-aa,v 1.10 2005/05/20 20:08:40 wiz Exp $ #include <machine/joystick.h> #endif -@@ -239,6 +241,7 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy) +@@ -239,6 +246,7 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy) struct hid_data *hdata; struct report *rep; int fd; @@ -27,7 +41,7 @@ $NetBSD: patch-aa,v 1.10 2005/05/20 20:08:40 wiz Exp $ fd = open(path, O_RDONLY); if (fd == -1) { -@@ -303,6 +306,8 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy) +@@ -303,6 +311,8 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy) joy->nbuttons = 0; joy->nhats = 0; joy->nballs = 0; @@ -36,7 +50,7 @@ $NetBSD: patch-aa,v 1.10 2005/05/20 20:08:40 wiz Exp $ while (hid_get_item(hdata, &hitem) > 0) { char *sp; -@@ -329,8 +334,7 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy) +@@ -329,8 +339,7 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy) unsigned usage = HID_USAGE(hitem.usage); int joyaxe = usage_to_joyaxe(usage); if (joyaxe >= 0) { @@ -46,7 +60,7 @@ $NetBSD: patch-aa,v 1.10 2005/05/20 20:08:40 wiz Exp $ } else if (usage == HUG_HAT_SWITCH) { joy->nhats++; } -@@ -348,6 +352,9 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy) +@@ -348,6 +357,9 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy) } } hid_end_parse(hdata); @@ -56,7 +70,7 @@ $NetBSD: patch-aa,v 1.10 2005/05/20 20:08:40 wiz Exp $ usbend: /* The poll blocks the event thread. */ -@@ -370,7 +377,7 @@ SDL_SYS_JoystickUpdate(SDL_Joystick *joy +@@ -370,7 +382,7 @@ SDL_SYS_JoystickUpdate(SDL_Joystick *joy int nbutton, naxe = -1; Sint32 v; @@ -65,7 +79,7 @@ $NetBSD: patch-aa,v 1.10 2005/05/20 20:08:40 wiz Exp $ struct joystick gameport; static int x, y, xmin = 0xffff, ymin = 0xffff, xmax = 0, ymax = 0; -@@ -419,7 +426,7 @@ SDL_SYS_JoystickUpdate(SDL_Joystick *joy +@@ -419,7 +431,7 @@ SDL_SYS_JoystickUpdate(SDL_Joystick *joy } return; } @@ -74,7 +88,7 @@ $NetBSD: patch-aa,v 1.10 2005/05/20 20:08:40 wiz Exp $ rep = &joy->hwdata->inreport; -@@ -457,7 +464,8 @@ SDL_SYS_JoystickUpdate(SDL_Joystick *joy +@@ -457,7 +469,8 @@ SDL_SYS_JoystickUpdate(SDL_Joystick *joy } else if (usage == HUG_HAT_SWITCH) { v = (Sint32)hid_get_data(REP_BUF_DATA(rep), &hitem); @@ -84,8 +98,23 @@ $NetBSD: patch-aa,v 1.10 2005/05/20 20:08:40 wiz Exp $ } break; } -@@ -530,9 +538,9 @@ report_alloc(struct report *r, struct re - #endif +@@ -518,7 +531,9 @@ report_alloc(struct report *r, struct re + { + int len; + +-#ifdef __FreeBSD__ ++#ifdef __DragonFly__ ++ len = hid_report_size(rd, r->rid, repinfo[repind].kind); ++#elif defined(__FreeBSD__) + # if (__FreeBSD_version >= 460000) + # if (__FreeBSD_version <= 500111) + len = hid_report_size(rd, r->rid, repinfo[repind].kind); +@@ -527,12 +542,12 @@ report_alloc(struct report *r, struct re + # endif + # else + len = hid_report_size(rd, repinfo[repind].kind, &r->rid); +-#endif ++# endif #else # ifdef USBHID_NEW - len = hid_report_size(rd, repinfo[repind].kind, &r->rid); diff --git a/devel/SDL/patches/patch-aj b/devel/SDL/patches/patch-aj index 2eea3e95080..89b76781d4a 100644 --- a/devel/SDL/patches/patch-aj +++ b/devel/SDL/patches/patch-aj @@ -1,4 +1,4 @@ -$NetBSD: patch-aj,v 1.21 2005/05/20 20:08:40 wiz Exp $ +$NetBSD: patch-aj,v 1.22 2005/05/31 17:37:50 wiz Exp $ --- configure.in.orig 2004-12-13 10:02:08.000000000 +0100 +++ configure.in @@ -145,7 +145,49 @@ $NetBSD: patch-aj,v 1.21 2005/05/20 20:08:40 wiz Exp $ fi AC_MSG_CHECKING(for usbhid) -@@ -1835,6 +1844,26 @@ CheckUSBHID() +@@ -1756,8 +1765,13 @@ CheckUSBHID() + #if defined(HAVE_USB_H) + #include <usb.h> + #endif ++ #ifdef __DragonFly__ ++ #include <bus/usb/usb.h> ++ #include <bus/usb/usbhid.h> ++ #else + #include <dev/usb/usb.h> + #include <dev/usb/usbhid.h> ++ #endif + #if defined(HAVE_USBHID_H) + #include <usbhid.h> + #elif defined(HAVE_LIBUSB_H) +@@ -1782,8 +1796,13 @@ CheckUSBHID() + #if defined(HAVE_USB_H) + #include <usb.h> + #endif ++ #ifdef __DragonFly__ ++ #include <bus/usb/usb.h> ++ #include <bus/usb/usbhid.h> ++ #else + #include <dev/usb/usb.h> + #include <dev/usb/usbhid.h> ++ #endif + #if defined(HAVE_USBHID_H) + #include <usbhid.h> + #elif defined(HAVE_LIBUSB_H) +@@ -1809,8 +1828,13 @@ CheckUSBHID() + #if defined(HAVE_USB_H) + #include <usb.h> + #endif ++ #ifdef __DragonFly__ ++ #include <bus/usb/usb.h> ++ #include <bus/usb/usbhid.h> ++ #else + #include <dev/usb/usb.h> + #include <dev/usb/usbhid.h> ++ #endif + #if defined(HAVE_USBHID_H) + #include <usbhid.h> + #elif defined(HAVE_LIBUSB_H) +@@ -1835,6 +1859,26 @@ CheckUSBHID() fi } @@ -172,7 +214,7 @@ $NetBSD: patch-aj,v 1.21 2005/05/20 20:08:40 wiz Exp $ dnl Check for altivec instruction support using gas syntax CheckAltivec() { -@@ -1992,7 +2021,7 @@ case "$target" in +@@ -1992,7 +2036,7 @@ case "$target" in COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) fi ;; @@ -181,7 +223,7 @@ $NetBSD: patch-aj,v 1.21 2005/05/20 20:08:40 wiz Exp $ ARCH=freebsd CheckDummyVideo CheckDiskAudio -@@ -2043,16 +2072,18 @@ case "$target" in +@@ -2043,16 +2087,18 @@ case "$target" in CheckESD CheckNAS CheckX11 @@ -203,7 +245,7 @@ $NetBSD: patch-aj,v 1.21 2005/05/20 20:08:40 wiz Exp $ fi # Set up files for the cdrom library if test x$enable_cdrom = xyes; then -@@ -2061,9 +2092,6 @@ case "$target" in +@@ -2061,9 +2107,6 @@ case "$target" in fi # Set up files for the thread library if test x$enable_threads = xyes; then @@ -213,7 +255,7 @@ $NetBSD: patch-aj,v 1.21 2005/05/20 20:08:40 wiz Exp $ CopyUnixThreadSource fi # Set up files for the timer library -@@ -2724,7 +2752,7 @@ AM_CONDITIONAL([ENABLE_STATIC], [test "$ +@@ -2724,7 +2767,7 @@ AM_CONDITIONAL([ENABLE_STATIC], [test "$ # Set runtime shared library paths as needed diff --git a/devel/SDL/patches/patch-am b/devel/SDL/patches/patch-am index 3872a57ff17..c8f7b1d131a 100644 --- a/devel/SDL/patches/patch-am +++ b/devel/SDL/patches/patch-am @@ -1,4 +1,4 @@ -$NetBSD: patch-am,v 1.16 2005/05/20 20:08:40 wiz Exp $ +$NetBSD: patch-am,v 1.17 2005/05/31 17:37:50 wiz Exp $ --- configure.orig 2004-12-13 10:04:51.000000000 +0100 +++ configure @@ -899,7 +899,49 @@ $NetBSD: patch-am,v 1.16 2005/05/20 20:08:40 wiz Exp $ fi echo "$as_me:$LINENO: checking for usbhid" >&5 -@@ -29514,6 +29518,70 @@ echo "${ECHO_T}$have_usbhid_new" >&6 +@@ -29307,8 +29311,13 @@ cat >>conftest.$ac_ext <<_ACEOF + #if defined(HAVE_USB_H) + #include <usb.h> + #endif ++ #ifdef __DragonFly__ ++ #include <bus/usb/usb.h> ++ #include <bus/usb/usbhid.h> ++ #else + #include <dev/usb/usb.h> + #include <dev/usb/usbhid.h> ++ #endif + #if defined(HAVE_USBHID_H) + #include <usbhid.h> + #elif defined(HAVE_LIBUSB_H) +@@ -29378,8 +29387,13 @@ cat >>conftest.$ac_ext <<_ACEOF + #if defined(HAVE_USB_H) + #include <usb.h> + #endif ++ #ifdef __DragonFly__ ++ #include <bus/usb/usb.h> ++ #include <bus/usb/usbhid.h> ++ #else + #include <dev/usb/usb.h> + #include <dev/usb/usbhid.h> ++ #endif + #if defined(HAVE_USBHID_H) + #include <usbhid.h> + #elif defined(HAVE_LIBUSB_H) +@@ -29450,8 +29464,13 @@ cat >>conftest.$ac_ext <<_ACEOF + #if defined(HAVE_USB_H) + #include <usb.h> + #endif ++ #ifdef __DragonFly__ ++ #include <bus/usb/usb.h> ++ #include <bus/usb/usbhid.h> ++ #else + #include <dev/usb/usb.h> + #include <dev/usb/usbhid.h> ++ #endif + #if defined(HAVE_USBHID_H) + #include <usbhid.h> + #elif defined(HAVE_LIBUSB_H) +@@ -29514,6 +29533,70 @@ echo "${ECHO_T}$have_usbhid_new" >&6 fi } @@ -970,7 +1012,7 @@ $NetBSD: patch-am,v 1.16 2005/05/20 20:08:40 wiz Exp $ CheckAltivec() { echo "$as_me:$LINENO: checking for GCC Altivec instruction support" >&5 -@@ -29743,7 +29811,7 @@ __EOF__ +@@ -29743,7 +29826,7 @@ __EOF__ fi ;; @@ -979,7 +1021,7 @@ $NetBSD: patch-am,v 1.16 2005/05/20 20:08:40 wiz Exp $ ARCH=freebsd CheckDummyVideo CheckDiskAudio -@@ -29808,16 +29876,18 @@ __EOF__ +@@ -29808,16 +29891,18 @@ __EOF__ CheckESD CheckNAS CheckX11 @@ -1001,7 +1043,7 @@ $NetBSD: patch-am,v 1.16 2005/05/20 20:08:40 wiz Exp $ fi # Set up files for the cdrom library if test x$enable_cdrom = xyes; then -@@ -29826,9 +29896,6 @@ __EOF__ +@@ -29826,9 +29911,6 @@ __EOF__ fi # Set up files for the thread library if test x$enable_threads = xyes; then @@ -1011,7 +1053,7 @@ $NetBSD: patch-am,v 1.16 2005/05/20 20:08:40 wiz Exp $ CopyUnixThreadSource fi # Set up files for the timer library -@@ -31455,7 +31522,7 @@ fi +@@ -31455,7 +31537,7 @@ fi # Set runtime shared library paths as needed @@ -1020,7 +1062,7 @@ $NetBSD: patch-am,v 1.16 2005/05/20 20:08:40 wiz Exp $ SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib" fi if test $ARCH = solaris; then -@@ -32598,8 +32665,9 @@ s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t +@@ -32598,8 +32680,9 @@ s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t s,@PKG_CONFIG@,$PKG_CONFIG,;t t s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t |