Patch for SDL-sdlpl-1.01

I hadd to make a few changes to get SDL-sdlpl-1.01 to work with
SDL 1.1.3.

One word of warning: until I get friendlier with SDL I can not tell you what
the replacement function for ‘sdl_mix_set_music_cmd’ is (I just
commented it out in the .xs file after I gave up looking for a likely candidate
and also giving into the need to get on with playing!)

After this, It all worked, enjoy.

heres my patch:

diff -u -Naur SDL-sdlpl-1.01/Makefile.PL SDL-sdlpl-1.02/Makefile.PL
— SDL-sdlpl-1.01/Makefile.PL Sat Jun 24 19:55:26 2000
+++ SDL-sdlpl-1.02/Makefile.PL Sat Jun 24 19:55:26 2000
@@ -4,7 +4,7 @@
WriteMakefile(
‘NAME’ => ‘SDL::sdlpl’,
‘VERSION_FROM’ => ‘sdlpl.pm’, # finds $VERSION

  • ‘LIBS’ => [’-lSDL -lIMG -lpng -ljpeg -lSDL_mixer’], # e.g., ‘-lm’
  • ‘LIBS’ => [’-lSDL -lSDL_image -lpng -ljpeg -lSDL_mixer’], # e.g., ‘-lm’
    ‘DEFINE’ => ‘’, # e.g., ‘-DHAVE_SOMETHING’
    ‘INC’ => ‘-I/usr/local/include -I/usr/local/include/SDL’,
    ‘OBJECT’ => ‘font.o sdlpl.o’,
    diff -u -Naur SDL-sdlpl-1.01/sdlpl.xs SDL-sdlpl-1.02/sdlpl.xs
    — SDL-sdlpl-1.01/sdlpl.xs Sat Jun 24 19:55:26 2000
    +++ SDL-sdlpl-1.02/sdlpl.xs Sat Jun 24 19:55:26 2000
    @@ -24,7 +24,7 @@
    #include “XSUB.h”

#include <SDL.h>
-#include <IMG.h>
+#include <SDL_image.h>
#include <SDL_mixer.h>

MODULE = SDL::sdlpl PACKAGE = SDL::sdlpl
@@ -2493,7 +2493,7 @@
sdl_pause_audio ( p_on )
int p_on
CODE:

  •   SDL_PauseAduio(p_on);
    
  •   SDL_PauseAudio(p_on);
    

void
sdl_lock_audio ()
@@ -2967,13 +2967,6 @@
OUTPUT:
RETVAL

-int
-sdl_mix_set_music_cmd ( command )

  • char *command
  • CODE:
  •   RETVAL = MixSetMusicCMD(command);
    
  • OUTPUT:
  •   RETVAL
    

void
sdl_mix_close_audio ()

Hi,

I had to make a few changes to get SDL-sdlpl-1.01 to work with
SDL 1.1.3.

One word of warning: until I get friendlier with SDL I can not tell you what
the replacement function for ‘sdl_mix_set_music_cmd’ is (I just
commented it out in the .xs file after I gave up looking for a likely candidate
and also giving into the need to get on with playing!)

After this, It all worked, enjoy.

Instructions:=============

Cd into a clean unarchived copy of ‘sdlpl’ obtainable from:

http://www.buffnet.net/~goehrig/projects/SDL-sdlpl-1.01.tar.gz

execute:
patch < “replace this with the path where you put the patch detailed below”

heres the patch:

diff -u -Naur SDL-sdlpl-1.01/Makefile.PL SDL-sdlpl-1.02/Makefile.PL
— SDL-sdlpl-1.01/Makefile.PL Sat Jun 24 19:55:26 2000
+++ SDL-sdlpl-1.02/Makefile.PL Sat Jun 24 19:55:26 2000
@@ -4,7 +4,7 @@
WriteMakefile(
‘NAME’ => ‘SDL::sdlpl’,
‘VERSION_FROM’ => ‘sdlpl.pm’, # finds $VERSION

  • ‘LIBS’ => [’-lSDL -lIMG -lpng -ljpeg -lSDL_mixer’], # e.g., ‘-lm’
  • ‘LIBS’ => [’-lSDL -lSDL_image -lpng -ljpeg -lSDL_mixer’], # e.g., ‘-lm’
    ‘DEFINE’ => ‘’, # e.g., ‘-DHAVE_SOMETHING’
    ‘INC’ => ‘-I/usr/local/include -I/usr/local/include/SDL’,
    ‘OBJECT’ => ‘font.o sdlpl.o’,
    diff -u -Naur SDL-sdlpl-1.01/sdlpl.xs SDL-sdlpl-1.02/sdlpl.xs
    — SDL-sdlpl-1.01/sdlpl.xs Sat Jun 24 19:55:26 2000
    +++ SDL-sdlpl-1.02/sdlpl.xs Sat Jun 24 19:55:26 2000
    @@ -24,7 +24,7 @@
    #include “XSUB.h”

#include <SDL.h>
-#include <IMG.h>
+#include <SDL_image.h>
#include <SDL_mixer.h>

MODULE = SDL::sdlpl PACKAGE = SDL::sdlpl
@@ -2493,7 +2493,7 @@
sdl_pause_audio ( p_on )
int p_on
CODE:

  •   SDL_PauseAduio(p_on);
    
  •   SDL_PauseAudio(p_on);
    

void
sdl_lock_audio ()
@@ -2967,13 +2967,6 @@
OUTPUT:
RETVAL

-int
-sdl_mix_set_music_cmd ( command )

  • char *command
  • CODE:
  •   RETVAL = MixSetMusicCMD(command);
    
  • OUTPUT:
  •   RETVAL
    

void
sdl_mix_close_audio ()