diff options
Diffstat (limited to 'devel/SDL')
-rw-r--r-- | devel/SDL/DESCR | 4 | ||||
-rw-r--r-- | devel/SDL/Makefile | 6 | ||||
-rw-r--r-- | devel/SDL/Makefile.common | 73 | ||||
-rw-r--r-- | devel/SDL/PLIST | 210 | ||||
-rw-r--r-- | devel/SDL/buildlink3.mk | 31 | ||||
-rw-r--r-- | devel/SDL/distinfo | 21 | ||||
-rw-r--r-- | devel/SDL/patches/patch-aa | 127 | ||||
-rw-r--r-- | devel/SDL/patches/patch-ac | 13 | ||||
-rw-r--r-- | devel/SDL/patches/patch-ad | 22 | ||||
-rw-r--r-- | devel/SDL/patches/patch-aj | 267 | ||||
-rw-r--r-- | devel/SDL/patches/patch-al | 120 | ||||
-rw-r--r-- | devel/SDL/patches/patch-am | 1077 | ||||
-rw-r--r-- | devel/SDL/patches/patch-ar | 12 | ||||
-rw-r--r-- | devel/SDL/patches/patch-as | 12 | ||||
-rw-r--r-- | devel/SDL/patches/patch-ba | 113 | ||||
-rw-r--r-- | devel/SDL/patches/patch-bb | 21 | ||||
-rw-r--r-- | devel/SDL/patches/patch-bc | 21 | ||||
-rw-r--r-- | devel/SDL/patches/patch-bd | 21 | ||||
-rw-r--r-- | devel/SDL/patches/patch-da | 13 | ||||
-rw-r--r-- | devel/SDL/patches/patch-db | 13 | ||||
-rw-r--r-- | devel/SDL/patches/patch-dc | 40 | ||||
-rw-r--r-- | devel/SDL/patches/patch-dd | 13 |
22 files changed, 0 insertions, 2250 deletions
diff --git a/devel/SDL/DESCR b/devel/SDL/DESCR deleted file mode 100644 index 03d515fc600..00000000000 --- a/devel/SDL/DESCR +++ /dev/null @@ -1,4 +0,0 @@ -Simple DirectMedia Layer is a cross-platform multimedia library -designed to provide fast access to the graphics framebuffer and audio -device. It is used by MPEG playback software, emulators, and many -popular games. diff --git a/devel/SDL/Makefile b/devel/SDL/Makefile deleted file mode 100644 index e5f3374be50..00000000000 --- a/devel/SDL/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.61 2005/09/07 10:15:39 adam Exp $ - -PKG_INSTALLATION_TYPES= overwrite pkgviews - -.include "Makefile.common" -.include "../../mk/bsd.pkg.mk" diff --git a/devel/SDL/Makefile.common b/devel/SDL/Makefile.common deleted file mode 100644 index 6b3a20e88a1..00000000000 --- a/devel/SDL/Makefile.common +++ /dev/null @@ -1,73 +0,0 @@ -# $NetBSD: Makefile.common,v 1.23 2005/09/07 10:15:39 adam Exp $ - -DISTNAME= SDL-1.2.9 -CATEGORIES= devel games -MASTER_SITES= http://www.libsdl.org/release/ - -MAINTAINER= wiz@NetBSD.org -HOMEPAGE= http://www.libsdl.org/ -COMMENT= Simple DirectMedia Layer, a cross-platform multimedia library - -DISTINFO_FILE= ${.CURDIR}/../../devel/SDL/distinfo -PATCHDIR= ${.CURDIR}/../../devel/SDL/patches - -USE_LANGUAGES= c c++ -USE_LIBTOOL= yes -USE_TOOLS+= gmake -GNU_CONFIGURE= yes -PTHREAD_OPTS+= require - -.include "../../mk/bsd.prefs.mk" - -.if ${MACHINE_ARCH} == "i386" -. include "../../devel/binutils/buildlink3.mk" -BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm -NASMFLAGS_ELF= -f elf -NASMFLAGS_a.out= -f aoutb -.endif - -CONFIGURE_ARGS+= --enable-dlopen -CONFIGURE_ARGS+= --disable-arts -CONFIGURE_ARGS+= --disable-esd -CONFIGURE_ARGS+= --disable-nas - -CONFIGURE_ARGS+= --enable-video-aalib -CONFIGURE_ENV+= NASMFLAGS="${NASMFLAGS_${OBJECT_FMT}}" -MAKE_ENV+= NASMFLAGS="${NASMFLAGS_${OBJECT_FMT}}" - -# Pass in LDFLAGS via SYSTEM_LIBS as it's used as the linker options for -# finding various libraries. This ensure that any unusual -Wl,-R options -# are noted correctly in the generated sdl-config. -# -CONFIGURE_ENV+= SYSTEM_LIBS="${LDFLAGS}" - -# buildlink passthru the directories required for the Cocoa framework -# on Darwin if they exist. -.if ${OPSYS} == "Darwin" -COCOA_DIRS+= /System /Library /Developer -. for _dir_ in ${COCOA_DIRS} -. if exists(${_dir_}) -BUILDLINK_PASSTHRU_DIRS+= ${_dir_} -. endif -. endfor -.endif - -.include "../../mk/ossaudio.buildlink3.mk" -. if defined(HAVE_OSS) && ${HAVE_OSS} == "YES" -AM_CFLAGS= -D_PATH_DEV_DSP="\"${DEVOSSAUDIO}\"" -MAKE_ENV+= AM_CFLAGS="${AM_CFLAGS}" -.endif - -# Irix comes with GL, which works fine for SDL -.if ${OPSYS} != "IRIX" -.include "../../graphics/MesaLib/buildlink3.mk" -.include "../../graphics/glu/buildlink3.mk" -.endif -.include "../../graphics/aalib-x11/buildlink3.mk" -.include "../../mk/pthread.buildlink3.mk" - -.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "pth" -# Let SDL know that we do not have native pthreads and are using GNU pth. -CONFIGURE_ARGS+= --disable-pthreads -CONFIGURE_ARGS+= --enable-pth -.endif diff --git a/devel/SDL/PLIST b/devel/SDL/PLIST deleted file mode 100644 index a8fd9491141..00000000000 --- a/devel/SDL/PLIST +++ /dev/null @@ -1,210 +0,0 @@ -@comment $NetBSD: PLIST,v 1.6 2004/09/22 08:09:23 jlam Exp $ -bin/sdl-config -include/SDL/SDL.h -include/SDL/SDL_active.h -include/SDL/SDL_audio.h -include/SDL/SDL_byteorder.h -include/SDL/SDL_cdrom.h -include/SDL/SDL_copying.h -include/SDL/SDL_cpuinfo.h -include/SDL/SDL_endian.h -include/SDL/SDL_error.h -include/SDL/SDL_events.h -include/SDL/SDL_getenv.h -include/SDL/SDL_joystick.h -include/SDL/SDL_keyboard.h -include/SDL/SDL_keysym.h -include/SDL/SDL_loadso.h -include/SDL/SDL_main.h -include/SDL/SDL_mouse.h -include/SDL/SDL_mutex.h -include/SDL/SDL_name.h -include/SDL/SDL_opengl.h -include/SDL/SDL_quit.h -include/SDL/SDL_rwops.h -include/SDL/SDL_syswm.h -include/SDL/SDL_thread.h -include/SDL/SDL_timer.h -include/SDL/SDL_types.h -include/SDL/SDL_version.h -include/SDL/SDL_video.h -include/SDL/begin_code.h -include/SDL/close_code.h -lib/libSDL.la -lib/libSDLmain.a -man/man3/SDLKey.3 -man/man3/SDL_ActiveEvent.3 -man/man3/SDL_AddTimer.3 -man/man3/SDL_AudioCVT.3 -man/man3/SDL_AudioSpec.3 -man/man3/SDL_BlitSurface.3 -man/man3/SDL_BuildAudioCVT.3 -man/man3/SDL_CD.3 -man/man3/SDL_CDClose.3 -man/man3/SDL_CDEject.3 -man/man3/SDL_CDName.3 -man/man3/SDL_CDNumDrives.3 -man/man3/SDL_CDOpen.3 -man/man3/SDL_CDPause.3 -man/man3/SDL_CDPlay.3 -man/man3/SDL_CDPlayTracks.3 -man/man3/SDL_CDResume.3 -man/man3/SDL_CDStatus.3 -man/man3/SDL_CDStop.3 -man/man3/SDL_CDtrack.3 -man/man3/SDL_CloseAudio.3 -man/man3/SDL_Color.3 -man/man3/SDL_CondBroadcast.3 -man/man3/SDL_CondSignal.3 -man/man3/SDL_CondWait.3 -man/man3/SDL_CondWaitTimeout.3 -man/man3/SDL_ConvertAudio.3 -man/man3/SDL_ConvertSurface.3 -man/man3/SDL_CreateCond.3 -man/man3/SDL_CreateCursor.3 -man/man3/SDL_CreateMutex.3 -man/man3/SDL_CreateRGBSurface.3 -man/man3/SDL_CreateRGBSurfaceFrom.3 -man/man3/SDL_CreateSemaphore.3 -man/man3/SDL_CreateThread.3 -man/man3/SDL_CreateYUVOverlay.3 -man/man3/SDL_Delay.3 -man/man3/SDL_DestroyCond.3 -man/man3/SDL_DestroyMutex.3 -man/man3/SDL_DestroySemaphore.3 -man/man3/SDL_DisplayFormat.3 -man/man3/SDL_DisplayFormatAlpha.3 -man/man3/SDL_DisplayYUVOverlay.3 -man/man3/SDL_EnableKeyRepeat.3 -man/man3/SDL_EnableUNICODE.3 -man/man3/SDL_Event.3 -man/man3/SDL_EventState.3 -man/man3/SDL_ExposeEvent.3 -man/man3/SDL_FillRect.3 -man/man3/SDL_Flip.3 -man/man3/SDL_FreeCursor.3 -man/man3/SDL_FreeSurface.3 -man/man3/SDL_FreeWAV.3 -man/man3/SDL_FreeYUVOverlay.3 -man/man3/SDL_GL_GetAttribute.3 -man/man3/SDL_GL_GetProcAddress.3 -man/man3/SDL_GL_LoadLibrary.3 -man/man3/SDL_GL_SetAttribute.3 -man/man3/SDL_GL_SwapBuffers.3 -man/man3/SDL_GLattr.3 -man/man3/SDL_GetAppState.3 -man/man3/SDL_GetAudioStatus.3 -man/man3/SDL_GetClipRect.3 -man/man3/SDL_GetCursor.3 -man/man3/SDL_GetError.3 -man/man3/SDL_GetEventFilter.3 -man/man3/SDL_GetGamma.3 -man/man3/SDL_GetGammaRamp.3 -man/man3/SDL_GetKeyName.3 -man/man3/SDL_GetKeyState.3 -man/man3/SDL_GetModState.3 -man/man3/SDL_GetMouseState.3 -man/man3/SDL_GetRGB.3 -man/man3/SDL_GetRGBA.3 -man/man3/SDL_GetRelativeMouseState.3 -man/man3/SDL_GetThreadID.3 -man/man3/SDL_GetTicks.3 -man/man3/SDL_GetVideoInfo.3 -man/man3/SDL_GetVideoSurface.3 -man/man3/SDL_Init.3 -man/man3/SDL_InitSubSystem.3 -man/man3/SDL_JoyAxisEvent.3 -man/man3/SDL_JoyBallEvent.3 -man/man3/SDL_JoyButtonEvent.3 -man/man3/SDL_JoyHatEvent.3 -man/man3/SDL_JoystickClose.3 -man/man3/SDL_JoystickEventState.3 -man/man3/SDL_JoystickGetAxis.3 -man/man3/SDL_JoystickGetBall.3 -man/man3/SDL_JoystickGetButton.3 -man/man3/SDL_JoystickGetHat.3 -man/man3/SDL_JoystickIndex.3 -man/man3/SDL_JoystickName.3 -man/man3/SDL_JoystickNumAxes.3 -man/man3/SDL_JoystickNumBalls.3 -man/man3/SDL_JoystickNumButtons.3 -man/man3/SDL_JoystickNumHats.3 -man/man3/SDL_JoystickOpen.3 -man/man3/SDL_JoystickOpened.3 -man/man3/SDL_JoystickUpdate.3 -man/man3/SDL_KeyboardEvent.3 -man/man3/SDL_KillThread.3 -man/man3/SDL_ListModes.3 -man/man3/SDL_LoadBMP.3 -man/man3/SDL_LoadWAV.3 -man/man3/SDL_LockAudio.3 -man/man3/SDL_LockSurface.3 -man/man3/SDL_LockYUVOverlay.3 -man/man3/SDL_MapRGB.3 -man/man3/SDL_MapRGBA.3 -man/man3/SDL_MixAudio.3 -man/man3/SDL_MouseButtonEvent.3 -man/man3/SDL_MouseMotionEvent.3 -man/man3/SDL_NumJoysticks.3 -man/man3/SDL_OpenAudio.3 -man/man3/SDL_Overlay.3 -man/man3/SDL_Palette.3 -man/man3/SDL_PauseAudio.3 -man/man3/SDL_PeepEvents.3 -man/man3/SDL_PixelFormat.3 -man/man3/SDL_PollEvent.3 -man/man3/SDL_PumpEvents.3 -man/man3/SDL_PushEvent.3 -man/man3/SDL_Quit.3 -man/man3/SDL_QuitEvent.3 -man/man3/SDL_QuitSubSystem.3 -man/man3/SDL_RWFromFile.3 -man/man3/SDL_Rect.3 -man/man3/SDL_RemoveTimer.3 -man/man3/SDL_ResizeEvent.3 -man/man3/SDL_SaveBMP.3 -man/man3/SDL_SemPost.3 -man/man3/SDL_SemTryWait.3 -man/man3/SDL_SemValue.3 -man/man3/SDL_SemWait.3 -man/man3/SDL_SemWaitTimeout.3 -man/man3/SDL_SetAlpha.3 -man/man3/SDL_SetClipRect.3 -man/man3/SDL_SetColorKey.3 -man/man3/SDL_SetColors.3 -man/man3/SDL_SetCursor.3 -man/man3/SDL_SetEventFilter.3 -man/man3/SDL_SetGamma.3 -man/man3/SDL_SetGammaRamp.3 -man/man3/SDL_SetModState.3 -man/man3/SDL_SetPalette.3 -man/man3/SDL_SetTimer.3 -man/man3/SDL_SetVideoMode.3 -man/man3/SDL_ShowCursor.3 -man/man3/SDL_Surface.3 -man/man3/SDL_SysWMEvent.3 -man/man3/SDL_ThreadID.3 -man/man3/SDL_UnlockAudio.3 -man/man3/SDL_UnlockSurface.3 -man/man3/SDL_UnlockYUVOverlay.3 -man/man3/SDL_UpdateRect.3 -man/man3/SDL_UpdateRects.3 -man/man3/SDL_UserEvent.3 -man/man3/SDL_VideoDriverName.3 -man/man3/SDL_VideoInfo.3 -man/man3/SDL_VideoModeOK.3 -man/man3/SDL_WM_GetCaption.3 -man/man3/SDL_WM_GrabInput.3 -man/man3/SDL_WM_IconifyWindow.3 -man/man3/SDL_WM_SetCaption.3 -man/man3/SDL_WM_SetIcon.3 -man/man3/SDL_WM_ToggleFullScreen.3 -man/man3/SDL_WaitEvent.3 -man/man3/SDL_WaitThread.3 -man/man3/SDL_WarpMouse.3 -man/man3/SDL_WasInit.3 -man/man3/SDL_keysym.3 -man/man3/SDL_mutexP.3 -man/man3/SDL_mutexV.3 -share/aclocal/sdl.m4 -@dirrm include/SDL diff --git a/devel/SDL/buildlink3.mk b/devel/SDL/buildlink3.mk deleted file mode 100644 index 3505b3c3291..00000000000 --- a/devel/SDL/buildlink3.mk +++ /dev/null @@ -1,31 +0,0 @@ -# $NetBSD: buildlink3.mk,v 1.11 2005/06/01 18:02:42 jlam Exp $ - -BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ -SDL_BUILDLINK3_MK:= ${SDL_BUILDLINK3_MK}+ - -.if !empty(BUILDLINK_DEPTH:M+) -BUILDLINK_DEPENDS+= SDL -.endif - -BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:NSDL} -BUILDLINK_PACKAGES+= SDL - -.if !empty(SDL_BUILDLINK3_MK:M+) -BUILDLINK_DEPENDS.SDL+= SDL>=1.2.5nb5 -BUILDLINK_RECOMMENDED.SDL+= SDL>=1.2.7nb4 -BUILDLINK_PKGSRCDIR.SDL?= ../../devel/SDL -.endif # SDL_BUILDLINK3_MK - -PTHREAD_OPTS+= require - -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} != "IRIX" -.include "../../graphics/MesaLib/buildlink3.mk" -.include "../../graphics/glu/buildlink3.mk" -.endif -.include "../../graphics/aalib-x11/buildlink3.mk" - -.include "../../mk/pthread.buildlink3.mk" - -BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/devel/SDL/distinfo b/devel/SDL/distinfo deleted file mode 100644 index 73a5ffc5283..00000000000 --- a/devel/SDL/distinfo +++ /dev/null @@ -1,21 +0,0 @@ -$NetBSD: distinfo,v 1.41 2005/09/07 10:15:39 adam Exp $ - -SHA1 (SDL-1.2.9.tar.gz) = 8140de00e73ccdbdee196fa8fd9952ddb3cc75f1 -RMD160 (SDL-1.2.9.tar.gz) = 9faeeda9cf8f649a2b506e9db7c5cedb4512cfe7 -Size (SDL-1.2.9.tar.gz) = 2688179 bytes -SHA1 (patch-aa) = f41d0de165d41826a6de2fdf9521d4f41f97221a -SHA1 (patch-ac) = 8471da99fcd2771e319556c95f6d1295dce002bb -SHA1 (patch-ad) = 230544c0aa2f8d827a9d49c4962afe2e4936074e -SHA1 (patch-aj) = 2f74ff477b743875e522ed752e2190a1c068e6b3 -SHA1 (patch-al) = d8b4ee9d33c4b34db87b098f4945018ae995ae99 -SHA1 (patch-am) = 957913466281b3ac3bba9dfbd7ba4faa09190dc1 -SHA1 (patch-ar) = 61e759bb3eb05890160573dfe63431792f1823bd -SHA1 (patch-as) = f69ca8796afeda35e57c89aa7a161de2de7bf6d8 -SHA1 (patch-ba) = 4c87c3812c9f8bdabb974a6a17f6243cedcc887e -SHA1 (patch-bb) = ebf35acf99240be873c64fcac07570e61f50b83e -SHA1 (patch-bc) = f1eb12c2f9049af6a65bba9fe215ef3dc165fd83 -SHA1 (patch-bd) = cbfd61c48f95094f54a098b9ee921dfe0da96589 -SHA1 (patch-da) = 9a38b1e2fcc0eb4c499c52402e70083f30e7ec96 -SHA1 (patch-db) = 4543d1fe47fa068bcda83eb53d495e0c6085b371 -SHA1 (patch-dc) = 7d0bc4a78ad1a589cb797094e39e3099e2414e99 -SHA1 (patch-dd) = a80c43d5cab4cc83c98dae7449219f68e1dbea88 diff --git a/devel/SDL/patches/patch-aa b/devel/SDL/patches/patch-aa deleted file mode 100644 index 4d9edc10f07..00000000000 --- a/devel/SDL/patches/patch-aa +++ /dev/null @@ -1,127 +0,0 @@ -$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 -@@ -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 - --#ifdef __FreeBSD__ -+#ifdef __DragonFly__ -+#include <sys/joystick.h> -+#elif defined(__FreeBSD__) - #include <osreldate.h> - #include <sys/joystick.h> - #endif - --#if defined(__NetBSD__) || defined(__OpenBSD__) -+#if defined(HAVE_MACHINE_JOYSTICK) || defined(__OpenBSD__) - #include <machine/joystick.h> - #endif - -@@ -239,6 +246,7 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy) - struct hid_data *hdata; - struct report *rep; - int fd; -+ int i; - - fd = open(path, O_RDONLY); - if (fd == -1) { -@@ -303,6 +311,8 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy) - joy->nbuttons = 0; - joy->nhats = 0; - joy->nballs = 0; -+ for (i=0; i<JOYAXE_count; i++) -+ hw->axis_map[i] = -1; - - while (hid_get_item(hdata, &hitem) > 0) { - char *sp; -@@ -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) { -- hw->axis_map[joyaxe] = joy->naxes; -- joy->naxes++; -+ hw->axis_map[joyaxe] = 1; - } else if (usage == HUG_HAT_SWITCH) { - joy->nhats++; - } -@@ -348,6 +357,9 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy) - } - } - hid_end_parse(hdata); -+ for (i=0; i<JOYAXE_count; i++) -+ if (hw->axis_map[i] > 0) -+ hw->axis_map[i] = joy->naxes++; - - usbend: - /* The poll blocks the event thread. */ -@@ -370,7 +382,7 @@ SDL_SYS_JoystickUpdate(SDL_Joystick *joy - int nbutton, naxe = -1; - Sint32 v; - --#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) -+#if defined(__FreeBSD__) || defined(HAVE_MACHINE_JOYSTICK) || defined(__OpenBSD__) || defined(__DragonFly__) - struct joystick gameport; - static int x, y, xmin = 0xffff, ymin = 0xffff, xmax = 0, ymax = 0; - -@@ -419,7 +431,7 @@ SDL_SYS_JoystickUpdate(SDL_Joystick *joy - } - return; - } --#endif /* defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) */ -+#endif /* defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)*/ - - rep = &joy->hwdata->inreport; - -@@ -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); -- SDL_PrivateJoystickHat(joy, 0, hatval_to_sdl(v)); -+ SDL_PrivateJoystickHat(joy, 0, -+ hatval_to_sdl(v)-hitem.logical_minimum); - } - break; - } -@@ -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); --# else - len = hid_report_size(rd, repinfo[repind].kind, r->rid); -+# else -+ len = hid_report_size(rd, repinfo[repind].kind, &r->rid); - # endif - #endif - diff --git a/devel/SDL/patches/patch-ac b/devel/SDL/patches/patch-ac deleted file mode 100644 index 1565da70a5f..00000000000 --- a/devel/SDL/patches/patch-ac +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-ac,v 1.12 2005/01/12 22:58:19 kristerw Exp $ - ---- src/video/SDL_yuv_mmx.c.orig Wed Jan 12 23:20:48 2005 -+++ src/video/SDL_yuv_mmx.c Wed Jan 12 23:22:43 2005 -@@ -26,7 +26,7 @@ - #endif - - --#if defined(i386) && defined(__GNUC__) && defined(USE_ASMBLIT) -+#if defined(i386) && defined(__GNUC__) && __GNUC__ > 2 && defined(USE_ASMBLIT) - - #include "SDL_types.h" - diff --git a/devel/SDL/patches/patch-ad b/devel/SDL/patches/patch-ad deleted file mode 100644 index 5854b29ed54..00000000000 --- a/devel/SDL/patches/patch-ad +++ /dev/null @@ -1,22 +0,0 @@ -$NetBSD: patch-ad,v 1.7 2005/01/12 22:58:19 kristerw Exp $ - ---- src/video/SDL_yuv_sw.c.orig Wed Feb 18 18:22:04 2004 -+++ src/video/SDL_yuv_sw.c Wed Jan 12 23:43:27 2005 -@@ -1067,7 +1067,7 @@ - case SDL_YV12_OVERLAY: - case SDL_IYUV_OVERLAY: - if ( display->format->BytesPerPixel == 2 ) { --#if defined(i386) && defined(__GNUC__) && defined(USE_ASMBLIT) -+#if defined(i386) && defined(__GNUC__) && __GNUC__ > 2 && defined(USE_ASMBLIT) - /* inline assembly functions */ - if ( SDL_HasMMX() && (Rmask == 0xF800) && - (Gmask == 0x07E0) && -@@ -1089,7 +1089,7 @@ - swdata->Display2X = Color24DitherYV12Mod2X; - } - if ( display->format->BytesPerPixel == 4 ) { --#if defined(i386) && defined(__GNUC__) && defined(USE_ASMBLIT) -+#if defined(i386) && defined(__GNUC__) && __GNUC__ > 2 && defined(USE_ASMBLIT) - /* inline assembly functions */ - if ( SDL_HasMMX() && (Rmask == 0x00FF0000) && - (Gmask == 0x0000FF00) && diff --git a/devel/SDL/patches/patch-aj b/devel/SDL/patches/patch-aj deleted file mode 100644 index c79e2d49438..00000000000 --- a/devel/SDL/patches/patch-aj +++ /dev/null @@ -1,267 +0,0 @@ -$NetBSD: patch-aj,v 1.23 2005/09/07 10:15:39 adam Exp $ - ---- configure.in.orig 2005-08-28 06:31:18.000000000 +0000 -+++ configure.in -@@ -28,9 +28,9 @@ AC_SUBST(SDL_VERSION) - - # libtool versioning - LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION --LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE` --LT_REVISION=$SDL_INTERFACE_AGE --LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE` -+LT_CURRENT=$SDL_INTERFACE_AGE -+LT_REVISION=$SDL_BINARY_AGE -+LT_AGE=0 - - AC_SUBST(LT_RELEASE) - AC_SUBST(LT_CURRENT) -@@ -267,6 +267,8 @@ CheckOSS() - AC_MSG_RESULT($have_oss) - if test x$have_oss = xyes; then - CFLAGS="$CFLAGS -DOSS_SUPPORT" -+ LDFLAGS="$LDFLAGS $LIBOSSAUDIO" -+ SDL_LIBS="$SDL_LIBS $LIBOSSAUDIO" - AUDIO_SUBDIRS="$AUDIO_SUBDIRS dsp" - AUDIO_DRIVERS="$AUDIO_DRIVERS dsp/libaudio_dsp.la" - AUDIO_SUBDIRS="$AUDIO_SUBDIRS dma" -@@ -456,9 +458,9 @@ CheckNAS() - if test x$enable_audio = xyes -a x$enable_nas = xyes; then - AC_MSG_CHECKING(for NAS audio support) - have_nas=no -- if test -r /usr/X11R6/include/audio/audiolib.h; then -+ if true; then - have_nas=yes -- CFLAGS="$CFLAGS -DNAS_SUPPORT -I/usr/X11R6/include/" -+ CFLAGS="$CFLAGS -DNAS_SUPPORT" - SYSTEM_LIBS="$SYSTEM_LIBS -laudio -lXt" - AUDIO_SUBDIRS="$AUDIO_SUBDIRS nas" - AUDIO_DRIVERS="$AUDIO_DRIVERS nas/libaudio_nas.la" -@@ -539,7 +541,7 @@ CheckNASM() - NASMFLAGS="-f aoutb" - ;; - *) -- NASMFLAGS="-f elf" -+ test -n "$NASMFLAGS" || NASMFLAGS="-f elf" - ;; - esac - AC_SUBST(NASMFLAGS) -@@ -985,18 +987,18 @@ CheckAAlib() - [ --enable-video-aalib use AAlib video driver [default=no]], - , enable_video_aalib=no) - if test x$enable_video = xyes -a x$enable_video_aalib = xyes; then -+ AC_PATH_PROG(AALIB_CONFIG, aalib-config) - AC_MSG_CHECKING(for AAlib support) -+ if test x$AALIB_CONFIG = x; then - video_aalib=no -- AC_TRY_COMPILE([ -- #include <aalib.h> -- ],[ -- ],[ -+ else -+ AALIB_LIBS=`$AALIB_CONFIG --libs` - video_aalib=yes -- ]) -+ fi - AC_MSG_RESULT($video_aalib) - if test x$video_aalib = xyes; then - CFLAGS="$CFLAGS -DENABLE_AALIB" -- SYSTEM_LIBS="$SYSTEM_LIBS -laa" -+ SYSTEM_LIBS="$SYSTEM_LIBS $AALIB_LIBS" - - VIDEO_SUBDIRS="$VIDEO_SUBDIRS aalib" - VIDEO_DRIVERS="$VIDEO_DRIVERS aalib/libvideo_aa.la" -@@ -1202,12 +1204,13 @@ CheckPTH() - [ --enable-pth use GNU pth library for multi-threading [default=yes]], - , enable_pth=yes) - if test x$enable_threads = xyes -a x$enable_pth = xyes; then -- AC_PATH_PROG(PTH_CONFIG, pth-config, no) -- if test "$PTH_CONFIG" = "no"; then -+ # Use the libpthread version of the pth library. -+ AC_PATH_PROG(PTHREAD_CONFIG, pthread-config, no) -+ if test "$PTHREAD_CONFIG" = "no"; then - use_pth=no - else -- PTH_CFLAGS=`$PTH_CONFIG --cflags` -- PTH_LIBS=`$PTH_CONFIG --libs --all` -+ PTH_CFLAGS=`$PTHREAD_CONFIG --cflags` -+ PTH_LIBS=`$PTHREAD_CONFIG --libs --all` - SDL_CFLAGS="$SDL_CFLAGS $PTH_CFLAGS" - SDL_LIBS="$SDL_LIBS $PTH_LIBS" - CFLAGS="$CFLAGS -DENABLE_PTH" -@@ -1247,9 +1250,13 @@ CheckPTHREAD() - pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" - pthread_lib="-pthread" - ;; -+ *-*-dragonfly*) -+ pthread_cflags="-D_REENTRANT" -+ pthread_lib="-pthread" -+ ;; - *-*-netbsd*) -- pthread_cflags="-I/usr/pkg/include -D_REENTRANT" -- pthread_lib="-L/usr/pkg/lib -lpthread -lsem" -+ pthread_cflags="-D_REENTRANT" -+ pthread_lib="-lpthread" - ;; - *-*-openbsd*) - pthread_cflags="-D_REENTRANT" -@@ -1723,29 +1730,31 @@ CheckUSBHID() - have_libusbhid=no - have_libusb=no - AC_CHECK_LIB(usbhid, hid_init, have_libusbhid=yes) -- AC_CHECK_LIB(usb, hid_init, have_libusb=yes) - if test x$have_libusbhid = xyes; then - SYSTEM_LIBS="$SYSTEM_LIBS -lusbhid" -+ -+ AC_CHECK_HEADER(usbhid.h, have_usbhid_h=yes) -+ AC_CHECK_HEADER(libusbhid.h, have_libusbhid_h=yes) -+ if test x$have_usbhid_h = xyes; then -+ CFLAGS="$CFLAGS -DHAVE_USBHID_H" -+ fi -+ if test x$have_libusbhid_h = xyes; then -+ CFLAGS="$CFLAGS -DHAVE_LIBUSBHID_H" - fi -+ else -+ AC_CHECK_LIB(usb, hid_init, have_libusb=yes) - if test x$have_libusb = xyes; then - SYSTEM_LIBS="$SYSTEM_LIBS -lusb" -- fi - - AC_CHECK_HEADER(usb.h, have_usb_h=yes) -- AC_CHECK_HEADER(usbhid.h, have_usbhid_h=yes) - AC_CHECK_HEADER(libusb.h, have_libusb_h=yes) -- AC_CHECK_HEADER(libusbhid.h, have_libusbhid_h=yes) - if test x$have_usb_h = xyes; then - CFLAGS="$CFLAGS -DHAVE_USB_H" - fi -- if test x$have_usbhid_h = xyes; then -- CFLAGS="$CFLAGS -DHAVE_USBHID_H" -- fi - if test x$have_libusb_h = xyes; then - CFLAGS="$CFLAGS -DHAVE_LIBUSB_H" - fi -- if test x$have_libusbhid_h = xyes; then -- CFLAGS="$CFLAGS -DHAVE_LIBUSBHID_H" -+ fi - fi - - AC_MSG_CHECKING(for usbhid) -@@ -1755,8 +1764,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) -@@ -1781,8 +1795,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) -@@ -1808,8 +1827,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) -@@ -1834,6 +1858,26 @@ CheckUSBHID() - fi - } - -+dnl Check for the NetBSD machine/joystick.h -+CheckMachineJoystick() -+{ -+ if test x$enable_joystick = xyes; then -+ AC_MSG_CHECKING(whether struct joystick is defined in machine/joystick.h) -+ have_machine_joystick=no -+ AC_TRY_COMPILE([ -+ #include <machine/joystick.h> -+ ],[ -+ struct joystick t; -+ ],[ -+ have_machine_joystick=yes -+ ]) -+ AC_MSG_RESULT($have_machine_joystick) -+ if test x$have_machine_joystick = xyes; then -+ CFLAGS="$CFLAGS -DHAVE_MACHINE_JOYSTICK" -+ fi -+ fi -+} -+ - dnl Check for altivec instruction support using gas syntax - CheckAltivec() - { -@@ -2013,7 +2057,7 @@ case "$target" in - COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) - fi - ;; -- *-*-freebsd*) -+ *-*-freebsd* | *-*-dragonfly*) - ARCH=freebsd - CheckDummyVideo - CheckDiskAudio -@@ -2065,17 +2109,19 @@ case "$target" in - CheckESD - CheckNAS - CheckX11 -+ CheckDGA - CheckAAlib - CheckOpenGL - CheckPTHREAD - CheckSIGACTION - CheckUSBHID - CheckRPATH -+ CheckMachineJoystick - # Set up files for the audio library - if test x$enable_audio = xyes; then -- CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" -- AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" -- AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" -+ CFLAGS="$CFLAGS -DOPENBSD_AUDIO_SUPPORT" -+ AUDIO_SUBDIRS="$AUDIO_SUBDIRS openbsd" -+ AUDIO_DRIVERS="$AUDIO_DRIVERS openbsd/libaudio_openbsd.la" - fi - # Set up files for the cdrom library - if test x$enable_cdrom = xyes; then -@@ -2084,9 +2130,6 @@ case "$target" in - fi - # Set up files for the thread library - if test x$enable_threads = xyes; then -- if test x$use_pthreads = xyes; then -- CFLAGS="$CFLAGS -D_POSIX_THREAD_SYSCALL_SOFT=1" -- fi - CopyUnixThreadSource - fi - # Set up files for the timer library -@@ -2755,7 +2798,7 @@ AM_CONDITIONAL([ENABLE_STATIC], [test "$ - # Set runtime shared library paths as needed - - if test "x$enable_rpath" = "xyes"; then -- if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi; then -+ if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi -o $ARCH = netbsd; then - SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib" - fi - if test $ARCH = solaris; then diff --git a/devel/SDL/patches/patch-al b/devel/SDL/patches/patch-al deleted file mode 100644 index ecaa24381e4..00000000000 --- a/devel/SDL/patches/patch-al +++ /dev/null @@ -1,120 +0,0 @@ -$NetBSD: patch-al,v 1.6 2004/07/26 20:42:28 dillo Exp $ - ---- src/audio/openbsd/SDL_openbsdaudio.c.orig 2004-02-18 18:21:59.000000000 +0100 -+++ src/audio/openbsd/SDL_openbsdaudio.c -@@ -37,6 +37,7 @@ - #include <sys/stat.h> - #include <sys/types.h> - #include <sys/audioio.h> -+#include <pthread.h> - - #include "SDL_audio.h" - #include "SDL_error.h" -@@ -46,8 +47,12 @@ - #include "SDL_audiodev_c.h" - #include "SDL_openbsdaudio.h" - --/* The tag name used by OpenBSD audio */ -+/* The tag name used by NetBSD/OpenBSD audio */ -+#ifdef __NetBSD__ -+#define OBSD_DRIVER_NAME "netbsd" -+#else - #define OBSD_DRIVER_NAME "openbsd" -+#endif - - /* Open the audio device for playback, and don't block if busy */ - /* #define USE_BLOCKING_WRITES */ -@@ -132,7 +137,11 @@ - } - - AudioBootStrap OPENBSD_AUDIO_bootstrap = { -+#ifdef __NetBSD__ -+ OBSD_DRIVER_NAME, "Native NetBSD audio", -+#else - OBSD_DRIVER_NAME, "Native OpenBSD audio", -+#endif - Audio_Available, Audio_CreateDevice - }; - -@@ -140,6 +149,7 @@ - static void - OBSD_WaitAudio(_THIS) - { -+#ifdef __OpenBSD__ - /* Check to see if the thread-parent process is still alive */ - { static int cnt = 0; - /* Note that this only works with thread implementations -@@ -151,6 +161,7 @@ - } - } - } -+#endif - - #ifndef USE_BLOCKING_WRITES /* Not necessary when using blocking writes */ - /* See if we need to use timed audio synchronization */ -@@ -262,20 +273,20 @@ - return; - } - -- fprintf(stderr," --[play/record info] --buffer size : %d bytes --sample rate : %i Hz --channels : %i --precision : %i-bit --encoding : 0x%x --seek : %i --sample count : %i --EOF count : %i --paused : %s --error occured : %s --waiting : %s --active : %s -+ fprintf(stderr,"\n\ -+[play/record info]\n\ -+buffer size : %d bytes\n\ -+sample rate : %i Hz\n\ -+channels : %i\n\ -+precision : %i-bit\n\ -+encoding : 0x%x\n\ -+seek : %i\n\ -+sample count : %i\n\ -+EOF count : %i\n\ -+paused : %s\n\ -+error occured : %s\n\ -+waiting : %s\n\ -+active : %s\n\ - ", - info.play.buffer_size, - info.play.sample_rate, -@@ -290,13 +301,13 @@ - info.play.waiting ? "yes" : "no", - info.play.active ? "yes": "no"); - -- fprintf(stderr," --[audio info] --monitor_gain : %i --hw block size : %d bytes --hi watermark : %i --lo watermark : %i --audio mode : %s -+ fprintf(stderr,"\n\ -+[audio info]\n\ -+monitor_gain : %i\n\ -+hw block size : %d bytes\n\ -+hi watermark : %i\n\ -+lo watermark : %i\n\ -+audio mode : %s\n\ - ", - info.monitor_gain, - info.blocksize, -@@ -388,6 +399,9 @@ - spec->channels = 1; - AUDIO_INITINFO(&info); - info.play.sample_rate = spec->freq; -+ info.blocksize = spec->size; -+ info.hiwat = 5; -+ info.lowat = 3; - (void)ioctl(audio_fd, AUDIO_SETINFO, &info); - (void)ioctl(audio_fd, AUDIO_GETINFO, &info); - spec->freq = info.play.sample_rate; diff --git a/devel/SDL/patches/patch-am b/devel/SDL/patches/patch-am deleted file mode 100644 index 2014dacb6ec..00000000000 --- a/devel/SDL/patches/patch-am +++ /dev/null @@ -1,1077 +0,0 @@ -$NetBSD: patch-am,v 1.18 2005/09/07 10:15:39 adam Exp $ - ---- configure.orig 2005-08-28 06:32:11.000000000 +0000 -+++ configure -@@ -463,7 +463,8 @@ ac_includes_default="\ - # include <unistd.h> - #endif" - --ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SDL_MAJOR_VERSION SDL_MINOR_VERSION SDL_MICRO_VERSION SDL_INTERFACE_AGE SDL_BINARY_AGE SDL_VERSION LT_RELEASE LT_CURRENT LT_REVISION LT_AGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ALLOCA ASFLAGS CCAS CCASFLAGS am__fastdepOBJC_TRUE am__fastdepOBJC_FALSE ALSA_CFLAGS ALSA_LIBS alsa_lib ESD_CONFIG ESD_CFLAGS ESD_LIBS esd_lib ARTSCCONFIG arts_lib NASM NASMFLAGS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS OSMESA_CONFIG PTH_CONFIG ARCH TARGET_LINUX_TRUE TARGET_LINUX_FALSE TARGET_QTOPIA_TRUE TARGET_QTOPIA_FALSE TARGET_SOLARIS_TRUE TARGET_SOLARIS_FALSE TARGET_IRIX_TRUE TARGET_IRIX_FALSE TARGET_BSDI_TRUE TARGET_BSDI_FALSE TARGET_FREEBSD_TRUE TARGET_FREEBSD_FALSE TARGET_NETBSD_TRUE TARGET_NETBSD_FALSE TARGET_OPENBSD_TRUE TARGET_OPENBSD_FALSE TARGET_AIX_TRUE TARGET_AIX_FALSE TARGET_WIN32_TRUE TARGET_WIN32_FALSE TARGET_BEOS_TRUE TARGET_BEOS_FALSE TARGET_MACOS_TRUE TARGET_MACOS_FALSE TARGET_MACOSX_TRUE TARGET_MACOSX_FALSE TARGET_QNX_TRUE TARGET_QNX_FALSE TARGET_MINT_TRUE TARGET_MINT_FALSE USE_DIRECTX_TRUE USE_DIRECTX_FALSE USE_CLONE_TRUE USE_CLONE_FALSE HAVE_NASM_TRUE HAVE_NASM_FALSE ENABLE_SHARED_TRUE ENABLE_SHARED_FALSE ENABLE_STATIC_TRUE ENABLE_STATIC_FALSE AUDIO_SUBDIRS AUDIO_DRIVERS VIDEO_SUBDIRS VIDEO_DRIVERS JOYSTICK_SUBDIRS JOYSTICK_DRIVERS CDROM_SUBDIRS CDROM_DRIVERS SDL_EXTRADIRS SDL_EXTRALIBS SDL_CFLAGS SDL_LIBS SDL_STATIC_LIBS SDL_RLD_FLAGS STATIC_SYSTEM_LIBS SHARED_SYSTEM_LIBS SYSTEM_LIBS OBJC OBJCFLAGS OBJCDEPMODE LIBOBJS LTLIBOBJS' -+# add AALIB_CONFIG -+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SDL_MAJOR_VERSION SDL_MINOR_VERSION SDL_MICRO_VERSION SDL_INTERFACE_AGE SDL_BINARY_AGE SDL_VERSION LT_RELEASE LT_CURRENT LT_REVISION LT_AGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ALLOCA ASFLAGS CCAS CCASFLAGS am__fastdepOBJC_TRUE am__fastdepOBJC_FALSE ALSA_CFLAGS ALSA_LIBS alsa_lib ESD_CONFIG ESD_CFLAGS ESD_LIBS esd_lib ARTSCCONFIG arts_lib NASM NASMFLAGS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS OSMESA_CONFIG PTH_CONFIG ARCH TARGET_LINUX_TRUE TARGET_LINUX_FALSE TARGET_QTOPIA_TRUE TARGET_QTOPIA_FALSE TARGET_SOLARIS_TRUE TARGET_SOLARIS_FALSE TARGET_IRIX_TRUE TARGET_IRIX_FALSE TARGET_BSDI_TRUE TARGET_BSDI_FALSE TARGET_FREEBSD_TRUE TARGET_FREEBSD_FALSE TARGET_NETBSD_TRUE TARGET_NETBSD_FALSE TARGET_OPENBSD_TRUE TARGET_OPENBSD_FALSE TARGET_AIX_TRUE TARGET_AIX_FALSE TARGET_WIN32_TRUE TARGET_WIN32_FALSE TARGET_BEOS_TRUE TARGET_BEOS_FALSE TARGET_MACOS_TRUE TARGET_MACOS_FALSE TARGET_MACOSX_TRUE TARGET_MACOSX_FALSE TARGET_QNX_TRUE TARGET_QNX_FALSE TARGET_MINT_TRUE TARGET_MINT_FALSE USE_DIRECTX_TRUE USE_DIRECTX_FALSE USE_CLONE_TRUE USE_CLONE_FALSE HAVE_NASM_TRUE HAVE_NASM_FALSE ENABLE_SHARED_TRUE ENABLE_SHARED_FALSE ENABLE_STATIC_TRUE ENABLE_STATIC_FALSE AUDIO_SUBDIRS AUDIO_DRIVERS VIDEO_SUBDIRS VIDEO_DRIVERS JOYSTICK_SUBDIRS JOYSTICK_DRIVERS CDROM_SUBDIRS CDROM_DRIVERS SDL_EXTRADIRS SDL_EXTRALIBS SDL_CFLAGS SDL_LIBS SDL_STATIC_LIBS SDL_RLD_FLAGS STATIC_SYSTEM_LIBS SHARED_SYSTEM_LIBS SYSTEM_LIBS OBJC OBJCFLAGS OBJCDEPMODE LIBOBJS LTLIBOBJS AALIB_CONFIG' - ac_subst_files='' - - # Initialize some variables set by options. -@@ -1593,9 +1594,9 @@ SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINO - - # libtool versioning - LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION --LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE` --LT_REVISION=$SDL_INTERFACE_AGE --LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE` -+LT_CURRENT=$SDL_INTERFACE_AGE -+LT_REVISION=$SDL_BINARY_AGE -+LT_AGE=0 - - - -@@ -21948,6 +21949,8 @@ rm -f conftest.err conftest.$ac_objext c - echo "${ECHO_T}$have_oss" >&6 - if test x$have_oss = xyes; then - CFLAGS="$CFLAGS -DOSS_SUPPORT" -+ LDFLAGS="$LDFLAGS $LIBOSSAUDIO" -+ SDL_LIBS="$SDL_LIBS $LIBOSSAUDIO" - AUDIO_SUBDIRS="$AUDIO_SUBDIRS dsp" - AUDIO_DRIVERS="$AUDIO_DRIVERS dsp/libaudio_dsp.la" - AUDIO_SUBDIRS="$AUDIO_SUBDIRS dma" -@@ -22885,9 +22888,9 @@ fi; - echo "$as_me:$LINENO: checking for NAS audio support" >&5 - echo $ECHO_N "checking for NAS audio support... $ECHO_C" >&6 - have_nas=no -- if test -r /usr/X11R6/include/audio/audiolib.h; then -+ if true; then - have_nas=yes -- CFLAGS="$CFLAGS -DNAS_SUPPORT -I/usr/X11R6/include/" -+ CFLAGS="$CFLAGS -DNAS_SUPPORT" - SYSTEM_LIBS="$SYSTEM_LIBS -laudio -lXt" - AUDIO_SUBDIRS="$AUDIO_SUBDIRS nas" - AUDIO_DRIVERS="$AUDIO_DRIVERS nas/libaudio_nas.la" -@@ -23153,7 +23156,7 @@ fi - NASMFLAGS="-f aoutb" - ;; - *) -- NASMFLAGS="-f elf" -+ test -n "$NASMFLAGS" || NASMFLAGS="-f elf" - ;; - esac - -@@ -25684,63 +25687,58 @@ else - enable_video_aalib=no - fi; - if test x$enable_video = xyes -a x$enable_video_aalib = xyes; then -- echo "$as_me:$LINENO: checking for AAlib support" >&5 --echo $ECHO_N "checking for AAlib support... $ECHO_C" >&6 -- video_aalib=no -- cat >conftest.$ac_ext <<_ACEOF --/* confdefs.h. */ --_ACEOF --cat confdefs.h >>conftest.$ac_ext --cat >>conftest.$ac_ext <<_ACEOF --/* end confdefs.h. */ -- -- #include <aalib.h> -- --int --main () --{ -- -- -- ; -- return 0; --} --_ACEOF --rm -f conftest.$ac_objext --if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>conftest.er1 -- ac_status=$? -- grep -v '^ *+' conftest.er1 >conftest.err -- rm -f conftest.er1 -- cat conftest.err >&5 -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); } && -- { ac_try='test -z "$ac_c_werror_flag" -- || test ! -s conftest.err' -- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -- (eval $ac_try) 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; } && -- { ac_try='test -s conftest.$ac_objext' -- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -- (eval $ac_try) 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; }; then -+ # Extract the first word of "aalib-config", so it can be a program name with args. -+set dummy aalib-config; ac_word=$2 -+echo "$as_me:$LINENO: checking for $ac_word" >&5 -+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -+if test "${ac_cv_path_AALIB_CONFIG+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ case $AALIB_CONFIG in -+ [\\/]* | ?:[\\/]*) -+ ac_cv_path_AALIB_CONFIG="$AALIB_CONFIG" # Let the user override the test with a path. -+ ;; -+ *) -+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ for ac_exec_ext in '' $ac_executable_extensions; do -+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -+ ac_cv_path_AALIB_CONFIG="$as_dir/$ac_word$ac_exec_ext" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done - -- video_aalib=yes -+ ;; -+esac -+fi -+AALIB_CONFIG=$ac_cv_path_AALIB_CONFIG - -+if test -n "$AALIB_CONFIG"; then -+ echo "$as_me:$LINENO: result: $AALIB_CONFIG" >&5 -+echo "${ECHO_T}$AALIB_CONFIG" >&6 - else -- echo "$as_me: failed program was:" >&5 --sed 's/^/| /' conftest.$ac_ext >&5 -- -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 - fi --rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+ -+ echo "$as_me:$LINENO: checking for AAlib support" >&5 -+echo $ECHO_N "checking for AAlib support... $ECHO_C" >&6 -+ if test x$AALIB_CONFIG = x; then -+ video_aalib=no -+ else -+ AALIB_LIBS=`$AALIB_CONFIG --libs` -+ video_aalib=yes -+ fi - echo "$as_me:$LINENO: result: $video_aalib" >&5 - echo "${ECHO_T}$video_aalib" >&6 - if test x$video_aalib = xyes; then - CFLAGS="$CFLAGS -DENABLE_AALIB" -- SYSTEM_LIBS="$SYSTEM_LIBS -laa" -+ SYSTEM_LIBS="$SYSTEM_LIBS $AALIB_LIBS" - - VIDEO_SUBDIRS="$VIDEO_SUBDIRS aalib" - VIDEO_DRIVERS="$VIDEO_DRIVERS aalib/libvideo_aa.la" -@@ -26755,16 +26753,17 @@ else - enable_pth=yes - fi; - if test x$enable_threads = xyes -a x$enable_pth = xyes; then -- # Extract the first word of "pth-config", so it can be a program name with args. --set dummy pth-config; ac_word=$2 -+ # Use the libpthread version of the pth library. -+ # Extract the first word of "pthread-config", so it can be a program name with args. -+set dummy pthread-config; ac_word=$2 - echo "$as_me:$LINENO: checking for $ac_word" >&5 - echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 --if test "${ac_cv_path_PTH_CONFIG+set}" = set; then -+if test "${ac_cv_path_PTHREAD_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else -- case $PTH_CONFIG in -+ case $PTHREAD_CONFIG in - [\\/]* | ?:[\\/]*) -- ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path. -+ ac_cv_path_PTHREAD_CONFIG="$PTHREAD_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -@@ -26774,32 +26773,32 @@ do - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -- ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext" -+ ac_cv_path_PTHREAD_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi - done - done - -- test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no" -+ test -z "$ac_cv_path_PTHREAD_CONFIG" && ac_cv_path_PTHREAD_CONFIG="no" - ;; - esac - fi --PTH_CONFIG=$ac_cv_path_PTH_CONFIG -+PTHREAD_CONFIG=$ac_cv_path_PTHREAD_CONFIG - --if test -n "$PTH_CONFIG"; then -- echo "$as_me:$LINENO: result: $PTH_CONFIG" >&5 --echo "${ECHO_T}$PTH_CONFIG" >&6 -+if test -n "$PTHREAD_CONFIG"; then -+ echo "$as_me:$LINENO: result: $PTHREAD_CONFIG" >&5 -+echo "${ECHO_T}$PTHREAD_CONFIG" >&6 - else - echo "$as_me:$LINENO: result: no" >&5 - echo "${ECHO_T}no" >&6 - fi - -- if test "$PTH_CONFIG" = "no"; then -+ if test "$PTHREAD_CONFIG" = "no"; then - use_pth=no - else -- PTH_CFLAGS=`$PTH_CONFIG --cflags` -- PTH_LIBS=`$PTH_CONFIG --libs --all` -+ PTH_CFLAGS=`$PTHREAD_CONFIG --cflags` -+ PTH_LIBS=`$PTHREAD_CONFIG --libs --all` - SDL_CFLAGS="$SDL_CFLAGS $PTH_CFLAGS" - SDL_LIBS="$SDL_LIBS $PTH_LIBS" - CFLAGS="$CFLAGS -DENABLE_PTH" -@@ -26847,9 +26846,13 @@ fi; - pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" - pthread_lib="-pthread" - ;; -+ *-*-dragonfly*) -+ pthread_cflags="-D_REENTRANT" -+ pthread_lib="-pthread" -+ ;; - *-*-netbsd*) -- pthread_cflags="-I/usr/pkg/include -D_REENTRANT" -- pthread_lib="-L/usr/pkg/lib -lpthread -lsem" -+ pthread_cflags="-D_REENTRANT" -+ pthread_lib="-lpthread" - ;; - *-*-openbsd*) - pthread_cflags="-D_REENTRANT" -@@ -28677,93 +28680,21 @@ if test $ac_cv_lib_usbhid_hid_init = yes - have_libusbhid=yes - fi - -- echo "$as_me:$LINENO: checking for hid_init in -lusb" >&5 --echo $ECHO_N "checking for hid_init in -lusb... $ECHO_C" >&6 --if test "${ac_cv_lib_usb_hid_init+set}" = set; then -- echo $ECHO_N "(cached) $ECHO_C" >&6 --else -- ac_check_lib_save_LIBS=$LIBS --LIBS="-lusb $LIBS" --cat >conftest.$ac_ext <<_ACEOF --/* confdefs.h. */ --_ACEOF --cat confdefs.h >>conftest.$ac_ext --cat >>conftest.$ac_ext <<_ACEOF --/* end confdefs.h. */ -- --/* Override any gcc2 internal prototype to avoid an error. */ --#ifdef __cplusplus --extern "C" --#endif --/* We use char because int might match the return type of a gcc2 -- builtin and then its argument prototype would still apply. */ --char hid_init (); --int --main () --{ --hid_init (); -- ; -- return 0; --} --_ACEOF --rm -f conftest.$ac_objext conftest$ac_exeext --if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>conftest.er1 -- ac_status=$? -- grep -v '^ *+' conftest.er1 >conftest.err -- rm -f conftest.er1 -- cat conftest.err >&5 -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); } && -- { ac_try='test -z "$ac_c_werror_flag" -- || test ! -s conftest.err' -- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -- (eval $ac_try) 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; } && -- { ac_try='test -s conftest$ac_exeext' -- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -- (eval $ac_try) 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; }; then -- ac_cv_lib_usb_hid_init=yes --else -- echo "$as_me: failed program was:" >&5 --sed 's/^/| /' conftest.$ac_ext >&5 -- --ac_cv_lib_usb_hid_init=no --fi --rm -f conftest.err conftest.$ac_objext \ -- conftest$ac_exeext conftest.$ac_ext --LIBS=$ac_check_lib_save_LIBS --fi --echo "$as_me:$LINENO: result: $ac_cv_lib_usb_hid_init" >&5 --echo "${ECHO_T}$ac_cv_lib_usb_hid_init" >&6 --if test $ac_cv_lib_usb_hid_init = yes; then -- have_libusb=yes --fi -- - if test x$have_libusbhid = xyes; then - SYSTEM_LIBS="$SYSTEM_LIBS -lusbhid" -- fi -- if test x$have_libusb = xyes; then -- SYSTEM_LIBS="$SYSTEM_LIBS -lusb" -- fi - -- if test "${ac_cv_header_usb_h+set}" = set; then -- echo "$as_me:$LINENO: checking for usb.h" >&5 --echo $ECHO_N "checking for usb.h... $ECHO_C" >&6 --if test "${ac_cv_header_usb_h+set}" = set; then -+ if test "${ac_cv_header_usbhid_h+set}" = set; then -+ echo "$as_me:$LINENO: checking for usbhid.h" >&5 -+echo $ECHO_N "checking for usbhid.h... $ECHO_C" >&6 -+if test "${ac_cv_header_usbhid_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - fi --echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5 --echo "${ECHO_T}$ac_cv_header_usb_h" >&6 -+echo "$as_me:$LINENO: result: $ac_cv_header_usbhid_h" >&5 -+echo "${ECHO_T}$ac_cv_header_usbhid_h" >&6 - else - # Is the header compilable? --echo "$as_me:$LINENO: checking usb.h usability" >&5 --echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6 -+echo "$as_me:$LINENO: checking usbhid.h usability" >&5 -+echo $ECHO_N "checking usbhid.h usability... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF -@@ -28771,7 +28702,7 @@ cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default --#include <usb.h> -+#include <usbhid.h> - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -@@ -28807,15 +28738,15 @@ echo "$as_me:$LINENO: result: $ac_header - echo "${ECHO_T}$ac_header_compiler" >&6 - - # Is the header present? --echo "$as_me:$LINENO: checking usb.h presence" >&5 --echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6 -+echo "$as_me:$LINENO: checking usbhid.h presence" >&5 -+echo $ECHO_N "checking usbhid.h presence... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ --#include <usb.h> -+#include <usbhid.h> - _ACEOF - if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 -@@ -28849,25 +28780,25 @@ echo "${ECHO_T}$ac_header_preproc" >&6 - # So? What about this header? - case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) -- { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5 --echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} -- { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5 --echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;} -+ { echo "$as_me:$LINENO: WARNING: usbhid.h: accepted by the compiler, rejected by the preprocessor!" >&5 -+echo "$as_me: WARNING: usbhid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} -+ { echo "$as_me:$LINENO: WARNING: usbhid.h: proceeding with the compiler's result" >&5 -+echo "$as_me: WARNING: usbhid.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) -- { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5 --echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;} -- { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5 --echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;} -- { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5 --echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;} -- { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5 --echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;} -- { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5 --echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;} -- { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5 --echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;} -+ { echo "$as_me:$LINENO: WARNING: usbhid.h: present but cannot be compiled" >&5 -+echo "$as_me: WARNING: usbhid.h: present but cannot be compiled" >&2;} -+ { echo "$as_me:$LINENO: WARNING: usbhid.h: check for missing prerequisite headers?" >&5 -+echo "$as_me: WARNING: usbhid.h: check for missing prerequisite headers?" >&2;} -+ { echo "$as_me:$LINENO: WARNING: usbhid.h: see the Autoconf documentation" >&5 -+echo "$as_me: WARNING: usbhid.h: see the Autoconf documentation" >&2;} -+ { echo "$as_me:$LINENO: WARNING: usbhid.h: section \"Present But Cannot Be Compiled\"" >&5 -+echo "$as_me: WARNING: usbhid.h: section \"Present But Cannot Be Compiled\"" >&2;} -+ { echo "$as_me:$LINENO: WARNING: usbhid.h: proceeding with the preprocessor's result" >&5 -+echo "$as_me: WARNING: usbhid.h: proceeding with the preprocessor's result" >&2;} -+ { echo "$as_me:$LINENO: WARNING: usbhid.h: in the future, the compiler will take precedence" >&5 -+echo "$as_me: WARNING: usbhid.h: in the future, the compiler will take precedence" >&2;} - ( - cat <<\_ASBOX - ## ------------------------------------------ ## -@@ -28878,34 +28809,34 @@ _ASBOX - sed "s/^/$as_me: WARNING: /" >&2 - ;; - esac --echo "$as_me:$LINENO: checking for usb.h" >&5 --echo $ECHO_N "checking for usb.h... $ECHO_C" >&6 --if test "${ac_cv_header_usb_h+set}" = set; then -+echo "$as_me:$LINENO: checking for usbhid.h" >&5 -+echo $ECHO_N "checking for usbhid.h... $ECHO_C" >&6 -+if test "${ac_cv_header_usbhid_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else -- ac_cv_header_usb_h=$ac_header_preproc -+ ac_cv_header_usbhid_h=$ac_header_preproc - fi --echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5 --echo "${ECHO_T}$ac_cv_header_usb_h" >&6 -+echo "$as_me:$LINENO: result: $ac_cv_header_usbhid_h" >&5 -+echo "${ECHO_T}$ac_cv_header_usbhid_h" >&6 - - fi --if test $ac_cv_header_usb_h = yes; then -- have_usb_h=yes -+if test $ac_cv_header_usbhid_h = yes; then -+ have_usbhid_h=yes - fi - - -- if test "${ac_cv_header_usbhid_h+set}" = set; then -- echo "$as_me:$LINENO: checking for usbhid.h" >&5 --echo $ECHO_N "checking for usbhid.h... $ECHO_C" >&6 --if test "${ac_cv_header_usbhid_h+set}" = set; then -+ if test "${ac_cv_header_libusbhid_h+set}" = set; then -+ echo "$as_me:$LINENO: checking for libusbhid.h" >&5 -+echo $ECHO_N "checking for libusbhid.h... $ECHO_C" >&6 -+if test "${ac_cv_header_libusbhid_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - fi --echo "$as_me:$LINENO: result: $ac_cv_header_usbhid_h" >&5 --echo "${ECHO_T}$ac_cv_header_usbhid_h" >&6 -+echo "$as_me:$LINENO: result: $ac_cv_header_libusbhid_h" >&5 -+echo "${ECHO_T}$ac_cv_header_libusbhid_h" >&6 - else - # Is the header compilable? --echo "$as_me:$LINENO: checking usbhid.h usability" >&5 --echo $ECHO_N "checking usbhid.h usability... $ECHO_C" >&6 -+echo "$as_me:$LINENO: checking libusbhid.h usability" >&5 -+echo $ECHO_N "checking libusbhid.h usability... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF -@@ -28913,7 +28844,7 @@ cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default --#include <usbhid.h> -+#include <libusbhid.h> - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -@@ -28949,15 +28880,15 @@ echo "$as_me:$LINENO: result: $ac_header - echo "${ECHO_T}$ac_header_compiler" >&6 - - # Is the header present? --echo "$as_me:$LINENO: checking usbhid.h presence" >&5 --echo $ECHO_N "checking usbhid.h presence... $ECHO_C" >&6 -+echo "$as_me:$LINENO: checking libusbhid.h presence" >&5 -+echo $ECHO_N "checking libusbhid.h presence... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ --#include <usbhid.h> -+#include <libusbhid.h> - _ACEOF - if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 -@@ -28991,25 +28922,25 @@ echo "${ECHO_T}$ac_header_preproc" >&6 - # So? What about this header? - case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) -- { echo "$as_me:$LINENO: WARNING: usbhid.h: accepted by the compiler, rejected by the preprocessor!" >&5 --echo "$as_me: WARNING: usbhid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} -- { echo "$as_me:$LINENO: WARNING: usbhid.h: proceeding with the compiler's result" >&5 --echo "$as_me: WARNING: usbhid.h: proceeding with the compiler's result" >&2;} -+ { echo "$as_me:$LINENO: WARNING: libusbhid.h: accepted by the compiler, rejected by the preprocessor!" >&5 -+echo "$as_me: WARNING: libusbhid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} -+ { echo "$as_me:$LINENO: WARNING: libusbhid.h: proceeding with the compiler's result" >&5 -+echo "$as_me: WARNING: libusbhid.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) -- { echo "$as_me:$LINENO: WARNING: usbhid.h: present but cannot be compiled" >&5 --echo "$as_me: WARNING: usbhid.h: present but cannot be compiled" >&2;} -- { echo "$as_me:$LINENO: WARNING: usbhid.h: check for missing prerequisite headers?" >&5 --echo "$as_me: WARNING: usbhid.h: check for missing prerequisite headers?" >&2;} -- { echo "$as_me:$LINENO: WARNING: usbhid.h: see the Autoconf documentation" >&5 --echo "$as_me: WARNING: usbhid.h: see the Autoconf documentation" >&2;} -- { echo "$as_me:$LINENO: WARNING: usbhid.h: section \"Present But Cannot Be Compiled\"" >&5 --echo "$as_me: WARNING: usbhid.h: section \"Present But Cannot Be Compiled\"" >&2;} -- { echo "$as_me:$LINENO: WARNING: usbhid.h: proceeding with the preprocessor's result" >&5 --echo "$as_me: WARNING: usbhid.h: proceeding with the preprocessor's result" >&2;} -- { echo "$as_me:$LINENO: WARNING: usbhid.h: in the future, the compiler will take precedence" >&5 --echo "$as_me: WARNING: usbhid.h: in the future, the compiler will take precedence" >&2;} -+ { echo "$as_me:$LINENO: WARNING: libusbhid.h: present but cannot be compiled" >&5 -+echo "$as_me: WARNING: libusbhid.h: present but cannot be compiled" >&2;} -+ { echo "$as_me:$LINENO: WARNING: libusbhid.h: check for missing prerequisite headers?" >&5 -+echo "$as_me: WARNING: libusbhid.h: check for missing prerequisite headers?" >&2;} -+ { echo "$as_me:$LINENO: WARNING: libusbhid.h: see the Autoconf documentation" >&5 -+echo "$as_me: WARNING: libusbhid.h: see the Autoconf documentation" >&2;} -+ { echo "$as_me:$LINENO: WARNING: libusbhid.h: section \"Present But Cannot Be Compiled\"" >&5 -+echo "$as_me: WARNING: libusbhid.h: section \"Present But Cannot Be Compiled\"" >&2;} -+ { echo "$as_me:$LINENO: WARNING: libusbhid.h: proceeding with the preprocessor's result" >&5 -+echo "$as_me: WARNING: libusbhid.h: proceeding with the preprocessor's result" >&2;} -+ { echo "$as_me:$LINENO: WARNING: libusbhid.h: in the future, the compiler will take precedence" >&5 -+echo "$as_me: WARNING: libusbhid.h: in the future, the compiler will take precedence" >&2;} - ( - cat <<\_ASBOX - ## ------------------------------------------ ## -@@ -29020,34 +28951,112 @@ _ASBOX - sed "s/^/$as_me: WARNING: /" >&2 - ;; - esac --echo "$as_me:$LINENO: checking for usbhid.h" >&5 --echo $ECHO_N "checking for usbhid.h... $ECHO_C" >&6 --if test "${ac_cv_header_usbhid_h+set}" = set; then -+echo "$as_me:$LINENO: checking for libusbhid.h" >&5 -+echo $ECHO_N "checking for libusbhid.h... $ECHO_C" >&6 -+if test "${ac_cv_header_libusbhid_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else -- ac_cv_header_usbhid_h=$ac_header_preproc -+ ac_cv_header_libusbhid_h=$ac_header_preproc - fi --echo "$as_me:$LINENO: result: $ac_cv_header_usbhid_h" >&5 --echo "${ECHO_T}$ac_cv_header_usbhid_h" >&6 -+echo "$as_me:$LINENO: result: $ac_cv_header_libusbhid_h" >&5 -+echo "${ECHO_T}$ac_cv_header_libusbhid_h" >&6 - - fi --if test $ac_cv_header_usbhid_h = yes; then -- have_usbhid_h=yes -+if test $ac_cv_header_libusbhid_h = yes; then -+ have_libusbhid_h=yes - fi - - -- if test "${ac_cv_header_libusb_h+set}" = set; then -- echo "$as_me:$LINENO: checking for libusb.h" >&5 --echo $ECHO_N "checking for libusb.h... $ECHO_C" >&6 --if test "${ac_cv_header_libusb_h+set}" = set; then -+ if test x$have_usbhid_h = xyes; then -+ CFLAGS="$CFLAGS -DHAVE_USBHID_H" -+ fi -+ if test x$have_libusbhid_h = xyes; then -+ CFLAGS="$CFLAGS -DHAVE_LIBUSBHID_H" -+ fi -+ else -+ echo "$as_me:$LINENO: checking for hid_init in -lusb" >&5 -+echo $ECHO_N "checking for hid_init in -lusb... $ECHO_C" >&6 -+if test "${ac_cv_lib_usb_hid_init+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ ac_check_lib_save_LIBS=$LIBS -+LIBS="-lusb $LIBS" -+cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+/* Override any gcc2 internal prototype to avoid an error. */ -+#ifdef __cplusplus -+extern "C" -+#endif -+/* We use char because int might match the return type of a gcc2 -+ builtin and then its argument prototype would still apply. */ -+char hid_init (); -+int -+main () -+{ -+hid_init (); -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 2>conftest.er1 -+ ac_status=$? -+ grep -v '^ *+' conftest.er1 >conftest.err -+ rm -f conftest.er1 -+ cat conftest.err >&5 -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); } && -+ { ac_try='test -z "$ac_c_werror_flag" -+ || test ! -s conftest.err' -+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -+ (eval $ac_try) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; } && -+ { ac_try='test -s conftest$ac_exeext' -+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -+ (eval $ac_try) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; }; then -+ ac_cv_lib_usb_hid_init=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_lib_usb_hid_init=no - fi --echo "$as_me:$LINENO: result: $ac_cv_header_libusb_h" >&5 --echo "${ECHO_T}$ac_cv_header_libusb_h" >&6 -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+LIBS=$ac_check_lib_save_LIBS -+fi -+echo "$as_me:$LINENO: result: $ac_cv_lib_usb_hid_init" >&5 -+echo "${ECHO_T}$ac_cv_lib_usb_hid_init" >&6 -+if test $ac_cv_lib_usb_hid_init = yes; then -+ have_libusb=yes -+fi -+ -+ if test x$have_libusb = xyes; then -+ SYSTEM_LIBS="$SYSTEM_LIBS -lusb" -+ -+ if test "${ac_cv_header_usb_h+set}" = set; then -+ echo "$as_me:$LINENO: checking for usb.h" >&5 -+echo $ECHO_N "checking for usb.h... $ECHO_C" >&6 -+if test "${ac_cv_header_usb_h+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+fi -+echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5 -+echo "${ECHO_T}$ac_cv_header_usb_h" >&6 - else - # Is the header compilable? --echo "$as_me:$LINENO: checking libusb.h usability" >&5 --echo $ECHO_N "checking libusb.h usability... $ECHO_C" >&6 -+echo "$as_me:$LINENO: checking usb.h usability" >&5 -+echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF -@@ -29055,7 +29064,7 @@ cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default --#include <libusb.h> -+#include <usb.h> - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -@@ -29091,15 +29100,15 @@ echo "$as_me:$LINENO: result: $ac_header - echo "${ECHO_T}$ac_header_compiler" >&6 - - # Is the header present? --echo "$as_me:$LINENO: checking libusb.h presence" >&5 --echo $ECHO_N "checking libusb.h presence... $ECHO_C" >&6 -+echo "$as_me:$LINENO: checking usb.h presence" >&5 -+echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ --#include <libusb.h> -+#include <usb.h> - _ACEOF - if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 -@@ -29133,25 +29142,25 @@ echo "${ECHO_T}$ac_header_preproc" >&6 - # So? What about this header? - case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) -- { echo "$as_me:$LINENO: WARNING: libusb.h: accepted by the compiler, rejected by the preprocessor!" >&5 --echo "$as_me: WARNING: libusb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} -- { echo "$as_me:$LINENO: WARNING: libusb.h: proceeding with the compiler's result" >&5 --echo "$as_me: WARNING: libusb.h: proceeding with the compiler's result" >&2;} -+ { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5 -+echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} -+ { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5 -+echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) -- { echo "$as_me:$LINENO: WARNING: libusb.h: present but cannot be compiled" >&5 --echo "$as_me: WARNING: libusb.h: present but cannot be compiled" >&2;} -- { echo "$as_me:$LINENO: WARNING: libusb.h: check for missing prerequisite headers?" >&5 --echo "$as_me: WARNING: libusb.h: check for missing prerequisite headers?" >&2;} -- { echo "$as_me:$LINENO: WARNING: libusb.h: see the Autoconf documentation" >&5 --echo "$as_me: WARNING: libusb.h: see the Autoconf documentation" >&2;} -- { echo "$as_me:$LINENO: WARNING: libusb.h: section \"Present But Cannot Be Compiled\"" >&5 --echo "$as_me: WARNING: libusb.h: section \"Present But Cannot Be Compiled\"" >&2;} -- { echo "$as_me:$LINENO: WARNING: libusb.h: proceeding with the preprocessor's result" >&5 --echo "$as_me: WARNING: libusb.h: proceeding with the preprocessor's result" >&2;} -- { echo "$as_me:$LINENO: WARNING: libusb.h: in the future, the compiler will take precedence" >&5 --echo "$as_me: WARNING: libusb.h: in the future, the compiler will take precedence" >&2;} -+ { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5 -+echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;} -+ { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5 -+echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;} -+ { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5 -+echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;} -+ { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5 -+echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;} -+ { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5 -+echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;} -+ { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5 -+echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;} - ( - cat <<\_ASBOX - ## ------------------------------------------ ## -@@ -29162,34 +29171,34 @@ _ASBOX - sed "s/^/$as_me: WARNING: /" >&2 - ;; - esac --echo "$as_me:$LINENO: checking for libusb.h" >&5 --echo $ECHO_N "checking for libusb.h... $ECHO_C" >&6 --if test "${ac_cv_header_libusb_h+set}" = set; then -+echo "$as_me:$LINENO: checking for usb.h" >&5 -+echo $ECHO_N "checking for usb.h... $ECHO_C" >&6 -+if test "${ac_cv_header_usb_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else -- ac_cv_header_libusb_h=$ac_header_preproc -+ ac_cv_header_usb_h=$ac_header_preproc - fi --echo "$as_me:$LINENO: result: $ac_cv_header_libusb_h" >&5 --echo "${ECHO_T}$ac_cv_header_libusb_h" >&6 -+echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5 -+echo "${ECHO_T}$ac_cv_header_usb_h" >&6 - - fi --if test $ac_cv_header_libusb_h = yes; then -- have_libusb_h=yes -+if test $ac_cv_header_usb_h = yes; then -+ have_usb_h=yes - fi - - -- if test "${ac_cv_header_libusbhid_h+set}" = set; then -- echo "$as_me:$LINENO: checking for libusbhid.h" >&5 --echo $ECHO_N "checking for libusbhid.h... $ECHO_C" >&6 --if test "${ac_cv_header_libusbhid_h+set}" = set; then -+ if test "${ac_cv_header_libusb_h+set}" = set; then -+ echo "$as_me:$LINENO: checking for libusb.h" >&5 -+echo $ECHO_N "checking for libusb.h... $ECHO_C" >&6 -+if test "${ac_cv_header_libusb_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - fi --echo "$as_me:$LINENO: result: $ac_cv_header_libusbhid_h" >&5 --echo "${ECHO_T}$ac_cv_header_libusbhid_h" >&6 -+echo "$as_me:$LINENO: result: $ac_cv_header_libusb_h" >&5 -+echo "${ECHO_T}$ac_cv_header_libusb_h" >&6 - else - # Is the header compilable? --echo "$as_me:$LINENO: checking libusbhid.h usability" >&5 --echo $ECHO_N "checking libusbhid.h usability... $ECHO_C" >&6 -+echo "$as_me:$LINENO: checking libusb.h usability" >&5 -+echo $ECHO_N "checking libusb.h usability... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF -@@ -29197,7 +29206,7 @@ cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default --#include <libusbhid.h> -+#include <libusb.h> - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -@@ -29233,15 +29242,15 @@ echo "$as_me:$LINENO: result: $ac_header - echo "${ECHO_T}$ac_header_compiler" >&6 - - # Is the header present? --echo "$as_me:$LINENO: checking libusbhid.h presence" >&5 --echo $ECHO_N "checking libusbhid.h presence... $ECHO_C" >&6 -+echo "$as_me:$LINENO: checking libusb.h presence" >&5 -+echo $ECHO_N "checking libusb.h presence... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ --#include <libusbhid.h> -+#include <libusb.h> - _ACEOF - if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 -@@ -29275,25 +29284,25 @@ echo "${ECHO_T}$ac_header_preproc" >&6 - # So? What about this header? - case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) -- { echo "$as_me:$LINENO: WARNING: libusbhid.h: accepted by the compiler, rejected by the preprocessor!" >&5 --echo "$as_me: WARNING: libusbhid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} -- { echo "$as_me:$LINENO: WARNING: libusbhid.h: proceeding with the compiler's result" >&5 --echo "$as_me: WARNING: libusbhid.h: proceeding with the compiler's result" >&2;} -+ { echo "$as_me:$LINENO: WARNING: libusb.h: accepted by the compiler, rejected by the preprocessor!" >&5 -+echo "$as_me: WARNING: libusb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} -+ { echo "$as_me:$LINENO: WARNING: libusb.h: proceeding with the compiler's result" >&5 -+echo "$as_me: WARNING: libusb.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) -- { echo "$as_me:$LINENO: WARNING: libusbhid.h: present but cannot be compiled" >&5 --echo "$as_me: WARNING: libusbhid.h: present but cannot be compiled" >&2;} -- { echo "$as_me:$LINENO: WARNING: libusbhid.h: check for missing prerequisite headers?" >&5 --echo "$as_me: WARNING: libusbhid.h: check for missing prerequisite headers?" >&2;} -- { echo "$as_me:$LINENO: WARNING: libusbhid.h: see the Autoconf documentation" >&5 --echo "$as_me: WARNING: libusbhid.h: see the Autoconf documentation" >&2;} -- { echo "$as_me:$LINENO: WARNING: libusbhid.h: section \"Present But Cannot Be Compiled\"" >&5 --echo "$as_me: WARNING: libusbhid.h: section \"Present But Cannot Be Compiled\"" >&2;} -- { echo "$as_me:$LINENO: WARNING: libusbhid.h: proceeding with the preprocessor's result" >&5 --echo "$as_me: WARNING: libusbhid.h: proceeding with the preprocessor's result" >&2;} -- { echo "$as_me:$LINENO: WARNING: libusbhid.h: in the future, the compiler will take precedence" >&5 --echo "$as_me: WARNING: libusbhid.h: in the future, the compiler will take precedence" >&2;} -+ { echo "$as_me:$LINENO: WARNING: libusb.h: present but cannot be compiled" >&5 -+echo "$as_me: WARNING: libusb.h: present but cannot be compiled" >&2;} -+ { echo "$as_me:$LINENO: WARNING: libusb.h: check for missing prerequisite headers?" >&5 -+echo "$as_me: WARNING: libusb.h: check for missing prerequisite headers?" >&2;} -+ { echo "$as_me:$LINENO: WARNING: libusb.h: see the Autoconf documentation" >&5 -+echo "$as_me: WARNING: libusb.h: see the Autoconf documentation" >&2;} -+ { echo "$as_me:$LINENO: WARNING: libusb.h: section \"Present But Cannot Be Compiled\"" >&5 -+echo "$as_me: WARNING: libusb.h: section \"Present But Cannot Be Compiled\"" >&2;} -+ { echo "$as_me:$LINENO: WARNING: libusb.h: proceeding with the preprocessor's result" >&5 -+echo "$as_me: WARNING: libusb.h: proceeding with the preprocessor's result" >&2;} -+ { echo "$as_me:$LINENO: WARNING: libusb.h: in the future, the compiler will take precedence" >&5 -+echo "$as_me: WARNING: libusb.h: in the future, the compiler will take precedence" >&2;} - ( - cat <<\_ASBOX - ## ------------------------------------------ ## -@@ -29304,33 +29313,29 @@ _ASBOX - sed "s/^/$as_me: WARNING: /" >&2 - ;; - esac --echo "$as_me:$LINENO: checking for libusbhid.h" >&5 --echo $ECHO_N "checking for libusbhid.h... $ECHO_C" >&6 --if test "${ac_cv_header_libusbhid_h+set}" = set; then -+echo "$as_me:$LINENO: checking for libusb.h" >&5 -+echo $ECHO_N "checking for libusb.h... $ECHO_C" >&6 -+if test "${ac_cv_header_libusb_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else -- ac_cv_header_libusbhid_h=$ac_header_preproc -+ ac_cv_header_libusb_h=$ac_header_preproc - fi --echo "$as_me:$LINENO: result: $ac_cv_header_libusbhid_h" >&5 --echo "${ECHO_T}$ac_cv_header_libusbhid_h" >&6 -+echo "$as_me:$LINENO: result: $ac_cv_header_libusb_h" >&5 -+echo "${ECHO_T}$ac_cv_header_libusb_h" >&6 - - fi --if test $ac_cv_header_libusbhid_h = yes; then -- have_libusbhid_h=yes -+if test $ac_cv_header_libusb_h = yes; then -+ have_libusb_h=yes - fi - - - if test x$have_usb_h = xyes; then - CFLAGS="$CFLAGS -DHAVE_USB_H" - fi -- if test x$have_usbhid_h = xyes; then -- CFLAGS="$CFLAGS -DHAVE_USBHID_H" -- fi - if test x$have_libusb_h = xyes; then - CFLAGS="$CFLAGS -DHAVE_LIBUSB_H" - fi -- if test x$have_libusbhid_h = xyes; then -- CFLAGS="$CFLAGS -DHAVE_LIBUSBHID_H" -+ fi - fi - - echo "$as_me:$LINENO: checking for usbhid" >&5 -@@ -29347,8 +29352,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) -@@ -29418,8 +29428,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) -@@ -29490,8 +29505,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) -@@ -29554,6 +29574,70 @@ echo "${ECHO_T}$have_usbhid_new" >&6 - fi - } - -+CheckMachineJoystick() -+{ -+ if test x$enable_joystick = xyes; then -+ echo "$as_me:$LINENO: checking whether struct joystick is defined in machine/joystick.h" >&5 -+echo $ECHO_N "checking whether struct joystick is defined in machine/joystick.h... $ECHO_C" >&6 -+ have_machine_joystick=no -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+ #include <machine/joystick.h> -+ -+int -+main () -+{ -+ -+ struct joystick t; -+ -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext -+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>conftest.er1 -+ ac_status=$? -+ grep -v '^ *+' conftest.er1 >conftest.err -+ rm -f conftest.er1 -+ cat conftest.err >&5 -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); } && -+ { ac_try='test -z "$ac_c_werror_flag" -+ || test ! -s conftest.err' -+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -+ (eval $ac_try) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; } && -+ { ac_try='test -s conftest.$ac_objext' -+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -+ (eval $ac_try) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; }; then -+ -+ have_machine_joystick=yes -+ -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+ echo "$as_me:$LINENO: result: $have_machine_joystick" >&5 -+echo "${ECHO_T}$have_machine_joystick" >&6 -+ if test x$have_machine_joystick = xyes; then -+ CFLAGS="$CFLAGS -DHAVE_MACHINE_JOYSTICK" -+ fi -+ fi -+} -+ - CheckAltivec() - { - echo "$as_me:$LINENO: checking for GCC Altivec instruction support" >&5 -@@ -29948,7 +30032,7 @@ __EOF__ - - fi - ;; -- *-*-freebsd*) -+ *-*-freebsd* | *-*-dragonfly*) - ARCH=freebsd - CheckDummyVideo - CheckDiskAudio -@@ -30014,17 +30098,19 @@ __EOF__ - CheckESD - CheckNAS - CheckX11 -+ CheckDGA - CheckAAlib - CheckOpenGL - CheckPTHREAD - CheckSIGACTION - CheckUSBHID - CheckRPATH -+ CheckMachineJoystick - # Set up files for the audio library - if test x$enable_audio = xyes; then -- CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" -- AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" -- AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" -+ CFLAGS="$CFLAGS -DOPENBSD_AUDIO_SUPPORT" -+ AUDIO_SUBDIRS="$AUDIO_SUBDIRS openbsd" -+ AUDIO_DRIVERS="$AUDIO_DRIVERS openbsd/libaudio_openbsd.la" - fi - # Set up files for the cdrom library - if test x$enable_cdrom = xyes; then -@@ -30033,9 +30119,6 @@ __EOF__ - fi - # Set up files for the thread library - if test x$enable_threads = xyes; then -- if test x$use_pthreads = xyes; then -- CFLAGS="$CFLAGS -D_POSIX_THREAD_SYSCALL_SOFT=1" -- fi - CopyUnixThreadSource - fi - # Set up files for the timer library -@@ -31670,7 +31753,7 @@ fi - # Set runtime shared library paths as needed - - if test "x$enable_rpath" = "xyes"; then -- if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi; then -+ if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi -o $ARCH = netbsd; then - SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib" - fi - if test $ARCH = solaris; then -@@ -32817,8 +32900,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 -+s,@AALIB_CONFIG@,$AALIB_CONFIG,;t t - s,@OSMESA_CONFIG@,$OSMESA_CONFIG,;t t --s,@PTH_CONFIG@,$PTH_CONFIG,;t t -+s,@PTHREAD_CONFIG@,$PTHREAD_CONFIG,;t t - s,@ARCH@,$ARCH,;t t - s,@TARGET_LINUX_TRUE@,$TARGET_LINUX_TRUE,;t t - s,@TARGET_LINUX_FALSE@,$TARGET_LINUX_FALSE,;t t diff --git a/devel/SDL/patches/patch-ar b/devel/SDL/patches/patch-ar deleted file mode 100644 index 5e4705e857c..00000000000 --- a/devel/SDL/patches/patch-ar +++ /dev/null @@ -1,12 +0,0 @@ -$NetBSD: patch-ar,v 1.3 2004/04/17 00:15:21 snj Exp $ - ---- src/Makefile.am.orig 2004-04-10 14:48:03.000000000 -0700 -+++ src/Makefile.am 2004-04-10 14:48:08.000000000 -0700 -@@ -21,7 +21,6 @@ lib_LTLIBRARIES = libSDL.la - libSDL_la_SOURCES = $(GENERAL_SRCS) - libSDL_la_LDFLAGS = \ - -no-undefined \ -- -release $(LT_RELEASE) \ - -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) - libSDL_la_LIBADD = \ - main/libarch.la \ diff --git a/devel/SDL/patches/patch-as b/devel/SDL/patches/patch-as deleted file mode 100644 index 38a411aea4b..00000000000 --- a/devel/SDL/patches/patch-as +++ /dev/null @@ -1,12 +0,0 @@ -$NetBSD: patch-as,v 1.4 2005/01/05 12:05:19 adam Exp $ - ---- src/Makefile.in.orig 2004-12-13 09:03:05.000000000 +0000 -+++ src/Makefile.in -@@ -304,7 +304,6 @@ lib_LTLIBRARIES = libSDL.la - libSDL_la_SOURCES = $(GENERAL_SRCS) - libSDL_la_LDFLAGS = \ - -no-undefined \ -- -release $(LT_RELEASE) \ - -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) - - libSDL_la_LIBADD = \ diff --git a/devel/SDL/patches/patch-ba b/devel/SDL/patches/patch-ba deleted file mode 100644 index 5f24555043e..00000000000 --- a/devel/SDL/patches/patch-ba +++ /dev/null @@ -1,113 +0,0 @@ -$NetBSD: patch-ba,v 1.3 2005/01/05 12:05:19 adam Exp $ - ---- src/audio/SDL_audio.c.orig 2004-12-13 07:54:31.000000000 +0000 -+++ src/audio/SDL_audio.c -@@ -38,8 +38,15 @@ static char rcsid = - #include "SDL_audiomem.h" - #include "SDL_sysaudio.h" - -+#include "SDL_name.h" -+#include "SDL_loadso.h" -+ - /* Available audio drivers */ - static AudioBootStrap *bootstrap[] = { -+ NULL, /* Optional 1: either arts, esd, nas */ -+ NULL, /* Optional 2: either arts, esd, nas */ -+ NULL, /* Optional 3: either arts, esd, nas */ -+#define PLUGIN_COUNT 3 - #ifdef OPENBSD_AUDIO_SUPPORT - &OPENBSD_AUDIO_bootstrap, - #endif -@@ -59,15 +66,6 @@ static AudioBootStrap *bootstrap[] = { - #ifdef DMEDIA_SUPPORT - &DMEDIA_bootstrap, - #endif --#ifdef ARTSC_SUPPORT -- &ARTSC_bootstrap, --#endif --#ifdef ESD_SUPPORT -- &ESD_bootstrap, --#endif --#ifdef NAS_SUPPORT -- &NAS_bootstrap, --#endif - #ifdef ENABLE_DIRECTX - &DSOUND_bootstrap, - #endif -@@ -268,16 +266,48 @@ static void SDL_UnlockAudio_Default(SDL_ - SDL_mutexV(audio->mixer_lock); - } - -+static int SDL_LoadAudioPlugins(void) -+{ -+ int first = PLUGIN_COUNT; -+ char *envvar; -+ void *plugin; -+ -+#define DO_LOAD(IDNAME, SONAME, BSNAME, PKGNAME) \ -+ envvar = getenv("SDL_AUDIO_PLUGIN"); \ -+ if (envvar == NULL || strcmp(envvar, IDNAME) == 0) { \ -+ plugin = SDL_LoadObject(SONAME); \ -+ if (plugin != NULL) { \ -+ struct AudioBootStrap *bs; \ -+ bs = SDL_LoadFunction(plugin, BSNAME); \ -+ if (bs != NULL) { \ -+ bootstrap[--first] = bs; \ -+ } \ -+ } else if (envvar != NULL && strcmp(envvar, IDNAME) == 0) { \ -+ fprintf(stderr, "SDL (pkgsrc): SDL_AUDIO_PLUGIN is explicitly set to `" IDNAME "'.\n"); \ -+ fprintf(stderr, "SDL (pkgsrc): Please install the " PKGNAME " package and retry.\n"); \ -+ } \ -+ } -+ -+ DO_LOAD("arts", "libaudio_arts.so", "ARTSC_bootstrap", "audio/SDL-arts"); -+ DO_LOAD("esound", "libaudio_esd.so", "ESD_bootstrap", "audio/SDL-esound"); -+ DO_LOAD("nas", "libaudio_nas.so", "NAS_bootstrap", "audio/SDL-nas"); -+#undef DO_LOAD -+ -+ return first; -+} -+ - int SDL_AudioInit(const char *driver_name) - { - SDL_AudioDevice *audio; -- int i = 0, idx; -+ int i = 0, idx, first; - - /* Check to make sure we don't overwrite 'current_audio' */ - if ( current_audio != NULL ) { - SDL_AudioQuit(); - } - -+ first = SDL_LoadAudioPlugins(); -+ - /* Select the proper audio driver */ - audio = NULL; - idx = 0; -@@ -287,7 +317,7 @@ int SDL_AudioInit(const char *driver_nam - to use ESD, but don't start it if it's not already running. - This probably isn't the place to do this, but... Shh! :) - */ -- for ( i=0; bootstrap[i]; ++i ) { -+ for ( i=first; bootstrap[i]; ++i ) { - if ( strcmp(bootstrap[i]->name, "esd") == 0 ) { - const char *esd_no_spawn; - -@@ -316,7 +346,7 @@ int SDL_AudioInit(const char *driver_nam - idx = atoi(strrchr(driver_name, ':')+1); - } - #endif -- for ( i=0; bootstrap[i]; ++i ) { -+ for ( i=first; bootstrap[i]; ++i ) { - if (strncmp(bootstrap[i]->name, driver_name, - strlen(bootstrap[i]->name)) == 0) { - if ( bootstrap[i]->available() ) { -@@ -326,7 +356,7 @@ int SDL_AudioInit(const char *driver_nam - } - } - } else { -- for ( i=0; bootstrap[i]; ++i ) { -+ for ( i=first; bootstrap[i]; ++i ) { - if ( bootstrap[i]->available() ) { - audio = bootstrap[i]->create(idx); - if ( audio != NULL ) { diff --git a/devel/SDL/patches/patch-bb b/devel/SDL/patches/patch-bb deleted file mode 100644 index e1d84e90b19..00000000000 --- a/devel/SDL/patches/patch-bb +++ /dev/null @@ -1,21 +0,0 @@ -$NetBSD: patch-bb,v 1.4 2005/09/07 10:15:39 adam Exp $ - ---- src/audio/esd/Makefile.in.orig 2005-08-28 06:31:40.000000000 +0000 -+++ src/audio/esd/Makefile.in -@@ -47,6 +47,7 @@ am__configure_deps = $(am__aclocal_m4_de - mkinstalldirs = $(install_sh) -d - CONFIG_CLEAN_FILES = - LTLIBRARIES = $(noinst_LTLIBRARIES) -+libaudio_esd_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) $(ESD_LIBS) - libaudio_esd_la_LIBADD = - am__objects_1 = SDL_esdaudio.lo - am_libaudio_esd_la_OBJECTS = $(am__objects_1) -@@ -320,7 +321,7 @@ clean-noinstLTLIBRARIES: - rm -f "$${dir}/so_locations"; \ - done - libaudio_esd.la: $(libaudio_esd_la_OBJECTS) $(libaudio_esd_la_DEPENDENCIES) -- $(LINK) $(libaudio_esd_la_LDFLAGS) $(libaudio_esd_la_OBJECTS) $(libaudio_esd_la_LIBADD) $(LIBS) -+ $(LINK) -rpath $(libdir) $(libaudio_esd_la_LDFLAGS) $(libaudio_esd_la_OBJECTS) $(libaudio_esd_la_LIBADD) $(LIBS) - - mostlyclean-compile: - -rm -f *.$(OBJEXT) diff --git a/devel/SDL/patches/patch-bc b/devel/SDL/patches/patch-bc deleted file mode 100644 index 76055b9c857..00000000000 --- a/devel/SDL/patches/patch-bc +++ /dev/null @@ -1,21 +0,0 @@ -$NetBSD: patch-bc,v 1.4 2005/09/07 10:15:39 adam Exp $ - ---- src/audio/arts/Makefile.in.orig 2005-08-28 06:31:38.000000000 +0000 -+++ src/audio/arts/Makefile.in -@@ -47,6 +47,7 @@ am__configure_deps = $(am__aclocal_m4_de - mkinstalldirs = $(install_sh) -d - CONFIG_CLEAN_FILES = - LTLIBRARIES = $(noinst_LTLIBRARIES) -+libaudio_arts_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) `$(ARTSCONFIG) --libs` - libaudio_arts_la_LIBADD = - am__objects_1 = SDL_artsaudio.lo - am_libaudio_arts_la_OBJECTS = $(am__objects_1) -@@ -320,7 +321,7 @@ clean-noinstLTLIBRARIES: - rm -f "$${dir}/so_locations"; \ - done - libaudio_arts.la: $(libaudio_arts_la_OBJECTS) $(libaudio_arts_la_DEPENDENCIES) -- $(LINK) $(libaudio_arts_la_LDFLAGS) $(libaudio_arts_la_OBJECTS) $(libaudio_arts_la_LIBADD) $(LIBS) -+ $(LINK) -rpath $(libdir) $(libaudio_arts_la_LDFLAGS) $(libaudio_arts_la_OBJECTS) $(libaudio_arts_la_LIBADD) $(LIBS) - - mostlyclean-compile: - -rm -f *.$(OBJEXT) diff --git a/devel/SDL/patches/patch-bd b/devel/SDL/patches/patch-bd deleted file mode 100644 index d13aee795dd..00000000000 --- a/devel/SDL/patches/patch-bd +++ /dev/null @@ -1,21 +0,0 @@ -$NetBSD: patch-bd,v 1.4 2005/09/07 10:15:39 adam Exp $ - ---- src/audio/nas/Makefile.in.orig 2005-08-28 06:31:42.000000000 +0000 -+++ src/audio/nas/Makefile.in -@@ -47,6 +47,7 @@ am__configure_deps = $(am__aclocal_m4_de - mkinstalldirs = $(install_sh) -d - CONFIG_CLEAN_FILES = - LTLIBRARIES = $(noinst_LTLIBRARIES) -+libaudio_nas_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) $(SHARED_SYSTEM_LIBS) - libaudio_nas_la_LIBADD = - am__objects_1 = SDL_nasaudio.lo - am_libaudio_nas_la_OBJECTS = $(am__objects_1) -@@ -320,7 +321,7 @@ clean-noinstLTLIBRARIES: - rm -f "$${dir}/so_locations"; \ - done - libaudio_nas.la: $(libaudio_nas_la_OBJECTS) $(libaudio_nas_la_DEPENDENCIES) -- $(LINK) $(libaudio_nas_la_LDFLAGS) $(libaudio_nas_la_OBJECTS) $(libaudio_nas_la_LIBADD) $(LIBS) -+ $(LINK) -rpath $(libdir) $(libaudio_nas_la_LDFLAGS) $(libaudio_nas_la_OBJECTS) $(libaudio_nas_la_LIBADD) $(LIBS) - - mostlyclean-compile: - -rm -f *.$(OBJEXT) diff --git a/devel/SDL/patches/patch-da b/devel/SDL/patches/patch-da deleted file mode 100644 index 18b6f004cc3..00000000000 --- a/devel/SDL/patches/patch-da +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-da,v 1.1 2005/05/20 20:08:40 wiz Exp $ - ---- src/video/vgl/SDL_vglvideo.c.orig 2002-03-06 12:23:08.000000000 +0100 -+++ src/video/vgl/SDL_vglvideo.c -@@ -557,7 +557,7 @@ VGLListModes(int depth, int mem_model) - case V_INFO_MM_VGAX: - vminfop->Type = VIDBUF8X; - break; --#if defined(__FreeBSD_version) && __FreeBSD_version >= 500000 -+#if defined(__DragonFly__) || (defined(__FreeBSD_version) && __FreeBSD_version >= 500000) - case V_INFO_MM_DIRECT: - vminfop->PixelBytes = minfo.vi_pixel_size; - switch (vminfop->PixelBytes) { diff --git a/devel/SDL/patches/patch-db b/devel/SDL/patches/patch-db deleted file mode 100644 index d78ae529d08..00000000000 --- a/devel/SDL/patches/patch-db +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-db,v 1.1 2005/05/20 20:08:40 wiz Exp $ - ---- src/video/svga/SDL_svgavideo.c.orig 2004-02-18 18:22:09.000000000 +0100 -+++ src/video/svga/SDL_svgavideo.c -@@ -38,7 +38,7 @@ static char rcsid = - - #if defined(linux) - #include <linux/vt.h> --#elif defined(__FreeBSD__) -+#elif defined(__FreeBSD__) || defined(__DragonFly__) - #include <sys/consio.h> - #else - #error You must choose your operating system here diff --git a/devel/SDL/patches/patch-dc b/devel/SDL/patches/patch-dc deleted file mode 100644 index 1c5fc933880..00000000000 --- a/devel/SDL/patches/patch-dc +++ /dev/null @@ -1,40 +0,0 @@ -$NetBSD: patch-dc,v 1.1 2005/05/20 20:08:40 wiz Exp $ - ---- src/video/svga/SDL_svgaevents.c.orig 2004-02-18 18:22:09.000000000 +0100 -+++ src/video/svga/SDL_svgaevents.c -@@ -36,7 +36,7 @@ static char rcsid = - #if defined(linux) - #include <linux/kd.h> - #include <linux/keyboard.h> --#elif defined(__FreeBSD__) -+#elif defined(__FreeBSD__) || defined(__DragonFly__) - #include <sys/kbio.h> - #else - #error You must choose your operating system here -@@ -52,7 +52,7 @@ static char rcsid = - #if defined(linux) - #define NUM_VGAKEYMAPS (1<<KG_CAPSSHIFT) - static Uint16 vga_keymap[NUM_VGAKEYMAPS][NR_KEYS]; --#elif defined(__FreeBSD__) -+#elif defined(__FreeBSD__) || defined(__DragonFly__) - /* FIXME: Free the keymap when we shut down the video mode */ - static keymap_t *vga_keymap = NULL; - #else -@@ -135,7 +135,7 @@ int SVGA_initkeymaps(int fd) - } - return(0); - } --#elif defined(__FreeBSD__) -+#elif defined(__FreeBSD__) || defined(__DragonFly__) - int SVGA_initkeymaps(int fd) - { - vga_keymap = malloc(sizeof(keymap_t)); -@@ -383,7 +383,7 @@ static SDL_keysym *TranslateKey(int scan - } - return(keysym); - } --#elif defined(__FreeBSD__) -+#elif defined(__FreeBSD__) || defined(__DragonFly__) - static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym) - { - /* Set the keysym information */ diff --git a/devel/SDL/patches/patch-dd b/devel/SDL/patches/patch-dd deleted file mode 100644 index 8cbf26e4a86..00000000000 --- a/devel/SDL/patches/patch-dd +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-dd,v 1.1 2005/05/20 20:08:40 wiz Exp $ - ---- src/timer/linux/SDL_systimer.c.orig 2004-02-18 18:22:03.000000000 +0100 -+++ src/timer/linux/SDL_systimer.c -@@ -55,7 +55,7 @@ static char rcsid = - /* Linux select() changes its timeout parameter upon return to contain - the remaining time. Most other unixen leave it unchanged or undefined. */ - #define SELECT_SETS_REMAINING --#elif defined(__bsdi__) || defined(__FreeBSD__) || defined(__sun) -+#elif defined(__bsdi__) || defined(__FreeBSD__) || defined(__sun) || defined(__DragonFly__) - #define USE_NANOSLEEP - #endif - |