Explorar el Código

An unstudied hack, but at least works to fix the current build problems on BSD

Michael Schloh von Bennewitz hace 22 años
padre
commit
fc1f6853ed
Se han modificado 2 ficheros con 19 adiciones y 1 borrados
  1. 16 0
      sdl/sdl.patch
  2. 3 1
      sdl/sdl.spec

+ 16 - 0
sdl/sdl.patch

@@ -0,0 +1,16 @@
+diff -Naur SDL-1.2.6.orig/src/joystick/bsd/SDL_sysjoystick.c SDL-1.2.6/src/joystick/bsd/SDL_sysjoystick.c
+--- SDL-1.2.6.orig/src/joystick/bsd/SDL_sysjoystick.c	2003-08-30 21:13:05.000000000 +0200
++++ SDL-1.2.6/src/joystick/bsd/SDL_sysjoystick.c	2003-09-17 13:52:47.000000000 +0200
+@@ -49,10 +49,10 @@
+ 
+ #if defined(HAVE_USBHID_H)
+ #include <usbhid.h>
+-#elif defined(HAVE_LIBUSB_H)
+-#include <libusb.h>
+ #elif defined(HAVE_LIBUSBHID_H)
+ #include <libusbhid.h>
++#elif defined(HAVE_LIBUSB_H)
++#include <libusb.h>
+ #endif
+ 
+ #ifdef __FreeBSD__

+ 3 - 1
sdl/sdl.spec

@@ -33,10 +33,11 @@ Distribution: OpenPKG [PLUS]
 Group:        XWindow
 License:      LGPL
 Version:      1.2.6
-Release:      20030831
+Release:      20030917
 
 #   list of sources
 Source0:      http://www.libsdl.org/release/SDL-%{version}.tar.gz
+Patch0:       sdl.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -54,6 +55,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q -n SDL-%{version}
+    %patch -p1
 
 %build
     CC="%{l_cc}" \