Package-Name: SDL
Gentoo-Package: libsdl
Homepage: http://www.libsdl.org/
Source: http://www.libsdl.org/release//>(SDL-\d+(\.\d+)+\.tar\.gz)/[\0-\377]*?SDL-(\d+(.\d+)+).tar.gz $1
Rebuild-For: svgalib automake
Compile-Requires: nasm
Zap-Before-Install: 1
Repack:
	tar xzvfp "$(SOURCE)"
Compile:
	cp -a BUGS COPYING CREDITS README* TODO docs.html "$(PREFIX)/"
	mkdir -p "$(PREFIX)/docs/html"
	cp -p docs/index.html "$(PREFIX)/docs/"
	cp -p docs/html/*.html "$(PREFIX)/docs/html/"
	$(MAKE) -f ../Makefile configure
	$(MAKE)
	$(MAKE) install
Install:
	$(MAKE) instbin BIN=sdl-config
	$(MAKE) instinc INC=SDL
	$(MAKE) instlib LIB=SDL
	$(MAKE) addldso
	$(MAKE) instman SECTION=3 MAN="SDLKey SDL_ActiveEvent SDL_AddTimer SDL_AudioCVT SDL_AudioSpec SDL_BlitSurface SDL_BuildAudioCVT SDL_CD SDL_CDClose SDL_CDEject SDL_CDName SDL_CDNumDrives SDL_CDOpen SDL_CDPause SDL_CDPlay SDL_CDPlayTracks SDL_CDResume SDL_CDStatus SDL_CDStop SDL_CDtrack SDL_CloseAudio SDL_Color SDL_CondBroadcast SDL_CondSignal SDL_CondWait SDL_CondWaitTimeout SDL_ConvertAudio SDL_ConvertSurface SDL_CreateCond SDL_CreateCursor SDL_CreateMutex SDL_CreateRGBSurface SDL_CreateRGBSurfaceFrom SDL_CreateSemaphore SDL_CreateThread SDL_CreateYUVOverlay SDL_Delay SDL_DestroyCond SDL_DestroyMutex SDL_DestroySemaphore SDL_DisplayFormat SDL_DisplayFormatAlpha SDL_DisplayYUVOverlay SDL_EnableKeyRepeat SDL_EnableUNICODE SDL_Event SDL_EventState SDL_ExposeEvent SDL_FillRect SDL_Flip SDL_FreeCursor SDL_FreeSurface SDL_FreeWAV SDL_FreeYUVOverlay SDL_GL_GetAttribute SDL_GL_GetProcAddress SDL_GL_LoadLibrary SDL_GL_SetAttribute SDL_GL_SwapBuffers SDL_GLattr SDL_GetAppState SDL_GetAudioStatus SDL_GetClipRect SDL_GetCursor SDL_GetError SDL_GetEventFilter SDL_GetGamma SDL_GetGammaRamp SDL_GetKeyName SDL_GetKeyState SDL_GetModState SDL_GetMouseState SDL_GetRGB SDL_GetRGBA SDL_GetRelativeMouseState SDL_GetThreadID SDL_GetTicks SDL_GetVideoInfo SDL_GetVideoSurface SDL_Init SDL_InitSubSystem SDL_JoyAxisEvent SDL_JoyBallEvent SDL_JoyButtonEvent SDL_JoyHatEvent SDL_JoystickClose SDL_JoystickEventState SDL_JoystickGetAxis SDL_JoystickGetBall SDL_JoystickGetButton SDL_JoystickGetHat SDL_JoystickIndex SDL_JoystickName SDL_JoystickNumAxes SDL_JoystickNumBalls SDL_JoystickNumButtons SDL_JoystickNumHats SDL_JoystickOpen SDL_JoystickOpened SDL_JoystickUpdate SDL_KeyboardEvent SDL_KillThread SDL_ListModes SDL_LoadBMP SDL_LoadWAV SDL_LockAudio SDL_LockSurface SDL_LockYUVOverlay SDL_MapRGB SDL_MapRGBA SDL_MixAudio SDL_MouseButtonEvent SDL_MouseMotionEvent SDL_NumJoysticks SDL_OpenAudio SDL_Overlay SDL_Palette SDL_PauseAudio SDL_PeepEvents SDL_PixelFormat SDL_PollEvent SDL_PumpEvents SDL_PushEvent SDL_Quit SDL_QuitEvent SDL_QuitSubSystem SDL_RWFromFile SDL_Rect SDL_RemoveTimer SDL_ResizeEvent SDL_SaveBMP SDL_SemPost SDL_SemTryWait SDL_SemValue SDL_SemWait SDL_SemWaitTimeout SDL_SetAlpha SDL_SetClipRect SDL_SetColorKey SDL_SetColors SDL_SetCursor SDL_SetEventFilter SDL_SetGamma SDL_SetGammaRamp SDL_SetModState SDL_SetPalette SDL_SetTimer SDL_SetVideoMode SDL_ShowCursor SDL_Surface SDL_SysWMEvent SDL_ThreadID SDL_UnlockAudio SDL_UnlockSurface SDL_UnlockYUVOverlay SDL_UpdateRect SDL_UpdateRects SDL_UserEvent SDL_VideoDriverName SDL_VideoInfo SDL_VideoModeOK SDL_WM_GetCaption SDL_WM_GrabInput SDL_WM_IconifyWindow SDL_WM_SetCaption SDL_WM_SetIcon SDL_WM_ToggleFullScreen SDL_WaitEvent SDL_WaitThread SDL_WarpMouse SDL_WasInit SDL_keysym SDL_mutexP SDL_mutexV"
	$(MAKE) instaclocal M4=sdl
Clean:
	@set -e ; cd "$(PREFIX)"/lib ; \
	for lib in *.so.[0-9] ; do \
		reallib=`/bin/ls -l "$$lib" | sed 's/.* -> //'` ; \
		for file in $$lib.[0-9]*.[0-9]* ; do \
			if test "$$file" != "$$reallib" ; then \
				rm -fv "$$file" ; \
			fi ; \
		done ; \
	done
Patch: <<EOT
######## begin patch to fix X11GL memory leak
--- src/video/x11/SDL_x11gl.c.old	2007-07-20 14:52:25 +0900
+++ src/video/x11/SDL_x11gl.c	2007-10-11 03:03:01 +0900
@@ -308,6 +308,10 @@
 
 		glx_context = NULL;
 	}
+	if( glx_visualinfo ) {
+		XFree(glx_visualinfo);
+		glx_visualinfo = NULL;
+	}
 	gl_active = 0;
 #endif /* SDL_VIDEO_OPENGL_GLX */
 }
######## end patch to fix X11GL memory leak
######## begin patch to fix possible uninitialized value usage
--- src/video/x11/SDL_x11events.c.old	2007-07-20 14:52:25 +0900
+++ src/video/x11/SDL_x11events.c	2007-10-14 00:39:27 +0900
@@ -1294,6 +1294,7 @@
 
 	/* The first time the window is mapped, we initialize key state */
 	if ( ! key_vec ) {
+		memset(keys_return, 0, sizeof(keys_return));
 		XQueryKeymap(display, keys_return);
 		key_vec = keys_return;
 	}
######## end patch to fix possible uninitialized value usage
######## begin patch to remove dependency on glu.h (programs must include it themselves)
--- configure.old	2007-07-20 14:53:43 +0900
+++ configure	2007-08-31 02:18:46 +0900
@@ -29766,7 +29766,6 @@
 
          #include <GL/gl.h>
          #include <GL/glx.h>
-         #include <GL/glu.h>
 
 int
 main ()
--- include/SDL_opengl.h.old	2006-05-01 17:02:59 +0900
+++ include/SDL_opengl.h	2007-07-21 23:57:47 +0900
@@ -36,13 +36,10 @@
 #endif
 #if defined(__MACOSX__)
 #include <OpenGL/gl.h>	/* Header File For The OpenGL Library */
-#include <OpenGL/glu.h>	/* Header File For The GLU Library */
 #elif defined(__MACOS__)
 #include <gl.h>		/* Header File For The OpenGL Library */
-#include <glu.h>	/* Header File For The GLU Library */
 #else
 #include <GL/gl.h>	/* Header File For The OpenGL Library */
-#include <GL/glu.h>	/* Header File For The GLU Library */
 #endif
 #ifndef NO_SDL_GLEXT
 #undef __glext_h_
######## end patch to remove dependency on glu.h
######## begin patch to disable input method
--- src/video/x11/SDL_x11video.c.old	2007-07-20 14:52:25 +0900
+++ src/video/x11/SDL_x11video.c	2007-10-11 03:37:46 +0900
@@ -415,6 +415,7 @@
 	}
     }
 
+#if 0
 	/* Setup the communication with the IM server */
 	/* create_aux_windows may be called several times against the same
 	   Display.  We should reuse the SDL_IM if one has been opened for
@@ -549,6 +550,7 @@
 		}
 	}
 	#endif
+#endif  // 0
 
 	/* Allow the window to be deleted by the window manager */
 	XSetWMProtocols(SDL_Display, WMwindow, &WM_DELETE_WINDOW, 1);
######## end patch to disable input method
EOT

/pkg/SDL/
/usr/bin/sdl-config
/usr/include/SDL
/usr/man/man3/SDLKey.3.gz
/usr/man/man3/SDL_ActiveEvent.3.gz
/usr/man/man3/SDL_AddTimer.3.gz
/usr/man/man3/SDL_AudioCVT.3.gz
/usr/man/man3/SDL_AudioSpec.3.gz
/usr/man/man3/SDL_BlitSurface.3.gz
/usr/man/man3/SDL_BuildAudioCVT.3.gz
/usr/man/man3/SDL_CD.3.gz
/usr/man/man3/SDL_CDClose.3.gz
/usr/man/man3/SDL_CDEject.3.gz
/usr/man/man3/SDL_CDName.3.gz
/usr/man/man3/SDL_CDNumDrives.3.gz
/usr/man/man3/SDL_CDOpen.3.gz
/usr/man/man3/SDL_CDPause.3.gz
/usr/man/man3/SDL_CDPlay.3.gz
/usr/man/man3/SDL_CDPlayTracks.3.gz
/usr/man/man3/SDL_CDResume.3.gz
/usr/man/man3/SDL_CDStatus.3.gz
/usr/man/man3/SDL_CDStop.3.gz
/usr/man/man3/SDL_CDtrack.3.gz
/usr/man/man3/SDL_CloseAudio.3.gz
/usr/man/man3/SDL_Color.3.gz
/usr/man/man3/SDL_CondBroadcast.3.gz
/usr/man/man3/SDL_CondSignal.3.gz
/usr/man/man3/SDL_CondWait.3.gz
/usr/man/man3/SDL_CondWaitTimeout.3.gz
/usr/man/man3/SDL_ConvertAudio.3.gz
/usr/man/man3/SDL_ConvertSurface.3.gz
/usr/man/man3/SDL_CreateCond.3.gz
/usr/man/man3/SDL_CreateCursor.3.gz
/usr/man/man3/SDL_CreateMutex.3.gz
/usr/man/man3/SDL_CreateRGBSurface.3.gz
/usr/man/man3/SDL_CreateRGBSurfaceFrom.3.gz
/usr/man/man3/SDL_CreateSemaphore.3.gz
/usr/man/man3/SDL_CreateThread.3.gz
/usr/man/man3/SDL_CreateYUVOverlay.3.gz
/usr/man/man3/SDL_Delay.3.gz
/usr/man/man3/SDL_DestroyCond.3.gz
/usr/man/man3/SDL_DestroyMutex.3.gz
/usr/man/man3/SDL_DestroySemaphore.3.gz
/usr/man/man3/SDL_DisplayFormat.3.gz
/usr/man/man3/SDL_DisplayFormatAlpha.3.gz
/usr/man/man3/SDL_DisplayYUVOverlay.3.gz
/usr/man/man3/SDL_EnableKeyRepeat.3.gz
/usr/man/man3/SDL_EnableUNICODE.3.gz
/usr/man/man3/SDL_Event.3.gz
/usr/man/man3/SDL_EventState.3.gz
/usr/man/man3/SDL_ExposeEvent.3.gz
/usr/man/man3/SDL_FillRect.3.gz
/usr/man/man3/SDL_Flip.3.gz
/usr/man/man3/SDL_FreeCursor.3.gz
/usr/man/man3/SDL_FreeSurface.3.gz
/usr/man/man3/SDL_FreeWAV.3.gz
/usr/man/man3/SDL_FreeYUVOverlay.3.gz
/usr/man/man3/SDL_GL_GetAttribute.3.gz
/usr/man/man3/SDL_GL_GetProcAddress.3.gz
/usr/man/man3/SDL_GL_LoadLibrary.3.gz
/usr/man/man3/SDL_GL_SetAttribute.3.gz
/usr/man/man3/SDL_GL_SwapBuffers.3.gz
/usr/man/man3/SDL_GLattr.3.gz
/usr/man/man3/SDL_GetAppState.3.gz
/usr/man/man3/SDL_GetAudioStatus.3.gz
/usr/man/man3/SDL_GetClipRect.3.gz
/usr/man/man3/SDL_GetCursor.3.gz
/usr/man/man3/SDL_GetError.3.gz
/usr/man/man3/SDL_GetEventFilter.3.gz
/usr/man/man3/SDL_GetGamma.3.gz
/usr/man/man3/SDL_GetGammaRamp.3.gz
/usr/man/man3/SDL_GetKeyName.3.gz
/usr/man/man3/SDL_GetKeyState.3.gz
/usr/man/man3/SDL_GetModState.3.gz
/usr/man/man3/SDL_GetMouseState.3.gz
/usr/man/man3/SDL_GetRGB.3.gz
/usr/man/man3/SDL_GetRGBA.3.gz
/usr/man/man3/SDL_GetRelativeMouseState.3.gz
/usr/man/man3/SDL_GetThreadID.3.gz
/usr/man/man3/SDL_GetTicks.3.gz
/usr/man/man3/SDL_GetVideoInfo.3.gz
/usr/man/man3/SDL_GetVideoSurface.3.gz
/usr/man/man3/SDL_Init.3.gz
/usr/man/man3/SDL_InitSubSystem.3.gz
/usr/man/man3/SDL_JoyAxisEvent.3.gz
/usr/man/man3/SDL_JoyBallEvent.3.gz
/usr/man/man3/SDL_JoyButtonEvent.3.gz
/usr/man/man3/SDL_JoyHatEvent.3.gz
/usr/man/man3/SDL_JoystickClose.3.gz
/usr/man/man3/SDL_JoystickEventState.3.gz
/usr/man/man3/SDL_JoystickGetAxis.3.gz
/usr/man/man3/SDL_JoystickGetBall.3.gz
/usr/man/man3/SDL_JoystickGetButton.3.gz
/usr/man/man3/SDL_JoystickGetHat.3.gz
/usr/man/man3/SDL_JoystickIndex.3.gz
/usr/man/man3/SDL_JoystickName.3.gz
/usr/man/man3/SDL_JoystickNumAxes.3.gz
/usr/man/man3/SDL_JoystickNumBalls.3.gz
/usr/man/man3/SDL_JoystickNumButtons.3.gz
/usr/man/man3/SDL_JoystickNumHats.3.gz
/usr/man/man3/SDL_JoystickOpen.3.gz
/usr/man/man3/SDL_JoystickOpened.3.gz
/usr/man/man3/SDL_JoystickUpdate.3.gz
/usr/man/man3/SDL_KeyboardEvent.3.gz
/usr/man/man3/SDL_KillThread.3.gz
/usr/man/man3/SDL_ListModes.3.gz
/usr/man/man3/SDL_LoadBMP.3.gz
/usr/man/man3/SDL_LoadWAV.3.gz
/usr/man/man3/SDL_LockAudio.3.gz
/usr/man/man3/SDL_LockSurface.3.gz
/usr/man/man3/SDL_LockYUVOverlay.3.gz
/usr/man/man3/SDL_MapRGB.3.gz
/usr/man/man3/SDL_MapRGBA.3.gz
/usr/man/man3/SDL_MixAudio.3.gz
/usr/man/man3/SDL_MouseButtonEvent.3.gz
/usr/man/man3/SDL_MouseMotionEvent.3.gz
/usr/man/man3/SDL_NumJoysticks.3.gz
/usr/man/man3/SDL_OpenAudio.3.gz
/usr/man/man3/SDL_Overlay.3.gz
/usr/man/man3/SDL_Palette.3.gz
/usr/man/man3/SDL_PauseAudio.3.gz
/usr/man/man3/SDL_PeepEvents.3.gz
/usr/man/man3/SDL_PixelFormat.3.gz
/usr/man/man3/SDL_PollEvent.3.gz
/usr/man/man3/SDL_PumpEvents.3.gz
/usr/man/man3/SDL_PushEvent.3.gz
/usr/man/man3/SDL_Quit.3.gz
/usr/man/man3/SDL_QuitEvent.3.gz
/usr/man/man3/SDL_QuitSubSystem.3.gz
/usr/man/man3/SDL_RWFromFile.3.gz
/usr/man/man3/SDL_Rect.3.gz
/usr/man/man3/SDL_RemoveTimer.3.gz
/usr/man/man3/SDL_ResizeEvent.3.gz
/usr/man/man3/SDL_SaveBMP.3.gz
/usr/man/man3/SDL_SemPost.3.gz
/usr/man/man3/SDL_SemTryWait.3.gz
/usr/man/man3/SDL_SemValue.3.gz
/usr/man/man3/SDL_SemWait.3.gz
/usr/man/man3/SDL_SemWaitTimeout.3.gz
/usr/man/man3/SDL_SetAlpha.3.gz
/usr/man/man3/SDL_SetClipRect.3.gz
/usr/man/man3/SDL_SetColorKey.3.gz
/usr/man/man3/SDL_SetColors.3.gz
/usr/man/man3/SDL_SetCursor.3.gz
/usr/man/man3/SDL_SetEventFilter.3.gz
/usr/man/man3/SDL_SetGamma.3.gz
/usr/man/man3/SDL_SetGammaRamp.3.gz
/usr/man/man3/SDL_SetModState.3.gz
/usr/man/man3/SDL_SetPalette.3.gz
/usr/man/man3/SDL_SetTimer.3.gz
/usr/man/man3/SDL_SetVideoMode.3.gz
/usr/man/man3/SDL_ShowCursor.3.gz
/usr/man/man3/SDL_Surface.3.gz
/usr/man/man3/SDL_SysWMEvent.3.gz
/usr/man/man3/SDL_ThreadID.3.gz
/usr/man/man3/SDL_UnlockAudio.3.gz
/usr/man/man3/SDL_UnlockSurface.3.gz
/usr/man/man3/SDL_UnlockYUVOverlay.3.gz
/usr/man/man3/SDL_UpdateRect.3.gz
/usr/man/man3/SDL_UpdateRects.3.gz
/usr/man/man3/SDL_UserEvent.3.gz
/usr/man/man3/SDL_VideoDriverName.3.gz
/usr/man/man3/SDL_VideoInfo.3.gz
/usr/man/man3/SDL_VideoModeOK.3.gz
/usr/man/man3/SDL_WM_GetCaption.3.gz
/usr/man/man3/SDL_WM_GrabInput.3.gz
/usr/man/man3/SDL_WM_IconifyWindow.3.gz
/usr/man/man3/SDL_WM_SetCaption.3.gz
/usr/man/man3/SDL_WM_SetIcon.3.gz
/usr/man/man3/SDL_WM_ToggleFullScreen.3.gz
/usr/man/man3/SDL_WaitEvent.3.gz
/usr/man/man3/SDL_WaitThread.3.gz
/usr/man/man3/SDL_WarpMouse.3.gz
/usr/man/man3/SDL_WasInit.3.gz
/usr/man/man3/SDL_keysym.3.gz
/usr/man/man3/SDL_mutexP.3.gz
/usr/man/man3/SDL_mutexV.3.gz
/usr/share/aclocal/sdl.m4
