Skip Menu |

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 49001
Status: rejected
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: kmx [...] cpan.org
Cc: csjewell [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Attachments


CC: CSJEWELL
Subject: Ext-lib: SDL
Hi, please find the first draft of SDL library for strawberry perl. To install it simply unzip libsdl-1.2.13-bin_20090825.ZIP into your c:\strawberry. The SDL pack is based on the official binary release SDL-devel-1.2.13-mingw32.tar.gz from http://www.libsdl.org with two changes: 1) lib\libSDL.dll.a renamed to SDL-1.2.13\lib\libSDL.a 2) include\SDL_rwops.h patched like this: -#define SDL_RWseek(ctx, offset, whence) (ctx)->seek(ctx, offset, whence) -#define SDL_RWtell(ctx) (ctx)->seek(ctx, 0, RW_SEEK_CUR) -#define SDL_RWread(ctx, ptr, size, n) (ctx)->read(ctx, ptr, size, n) -#define SDL_RWwrite(ctx, ptr, size, n) (ctx)->write(ctx, ptr, size, n) -#define SDL_RWclose(ctx) (ctx)->close(ctx) +#define SDL_RWseek(ctx, offset, whence) ((ctx)->seek)(ctx, offset, whence) +#define SDL_RWtell(ctx) ((ctx)->seek)(ctx, 0, RW_SEEK_CUR) +#define SDL_RWread(ctx, ptr, size, n) ((ctx)->read)(ctx, ptr, size, n) +#define SDL_RWwrite(ctx, ptr, size, n) ((ctx)->write)(ctx, ptr, size, n) +#define SDL_RWclose(ctx) ((ctx)->close)(ctx) It is just base SDL library - after we manage to make SDL_Perl module Win32 compatible we can add additional libs e.g. SDL_mixer, SDL_image, SDL_ttf, SDL_gfx ... -- kmx
Apart from the actual SDL library we need also to get fixed the following two RTs that I have submitted a few minutes ago: 1) ExtUtil::CBuilder patch https://rt.cpan.org/Ticket/Display.html?id=49000 2) SDL_Perl patch http://rt.cpan.org/Ticket/Display.html?id=49003 Then we can include SDL into strawberry distribution. -- kmx
Download libsdl-1.2.13-bin_20090825.ZIP
application/x-zip 326.8k

Message body not shown because it is not plain text.

Show quoted text
> 1) ExtUtil::CBuilder patch > https://rt.cpan.org/Ticket/Display.html?id=49000
Alias, do you know the maintainers - DAGOLDEN, KWILLIAMS? As the patch affects just Windows and GCC (=strawbery perl) I think that your intervention could help to apply the patch I propose in the above mentioned RT. Would be nice to have it applied before October release. Show quoted text
This seems to be fixed, KTHAKORE was very open to the proposed patch. -- kmx
1) ExtUtil::CBuilder was patched 2) SDL_Perl seems to be patched 3) I have rebuilt all SDL related libraries (as it is our custom build i used alternative DLL names e.g. SDL_.DLL instead of SDL.DLL) I have used: SDL-1.2.13 SDL_ttf-2.0.9 SDL_net-1.2.7 SDL_mixer-1.2.8 (mp3-via-smpeg, ogg-via-libvorbis+libogg/static_linking) SDL_image-1.2.7 SDL_gfx-2.0.19 libsmpeg-SVN20090831 (latest SVN version) The pack is available at: http://svn.ali.as/cpan/users/kmx/strawberry_packs/lib-SDL-bin_20090831.zip note: you have to install freetype, jpeg, png, tiff libs before (otherwise you will be missing som DLLs) So ready to be included into strawberry :) -- kmx
Since the goal now is to make SDL easily installable into Strawberry rather than including it into Strawberry itself, closing this ticket.