[Gambas-devel] sdl component

Benoit Minisini gambas at ...1...
Wed Jan 5 11:03:19 CET 2005


On Monday 03 January 2005 13:24, Laurent Carlier wrote:
> I've merge my sdl component with the actuel existing sound component. There
> is no changes in the two component, just a merge.
> i've call it 'kit2d', but if you have a better name !
>
> You can use the twice beside without probs !
>
> the configure.in change :
>
> dnl ---- SDL component
> dnl sound needs: libvorbisfile.la libsmpeg.la libogg.la
> dnl kit2d needs: SDL_image SDL_gfx SDL_ttf
>
> GB_COMPONENT(
>   sdl,
>   SDL,
>   [SDL component],
>   [GB_FIND(SDL.h, /usr/local/lib /usr/local /opt /usr/lib /usr, include
> SDL*/include include/SDL*)],
>   [GB_FIND(libSDL.$SHLIBEXT, /usr/local /opt /usr, lib SDL*/lib lib/SDL*)],
>   [$C_LIB $THREAD_LIB -lSDL -lm],
>   [$THREAD_INC])
>
> GB_COMPONENT(
>   sound,
>   SOUND,
>   [SDL Sound component],
>   [GB_FIND(SDL_mixer.h, /usr/local/lib /usr/local /opt /usr/lib /usr,
> include SDL*/include include/SDL*)],
>   [GB_FIND(libSDL_mixer.$SHLIBEXT, /usr/local /opt /usr, lib SDL*/lib
> lib/SDL*)],
>   [-lSDL_mixer],
>   [$THREAD_INC])
>
> GB_COMPONENT(
>   kit2d,
>   KIT2D,
>   [SDL video 2D component],
>   [GB_FIND(SDL_image.h SDL_gfxPrimitives.h
> SDL_ttf.h, /usr/local/lib /usr/local /opt /usr/lib /usr, include
> SDL*/include include/SDL*)],
>   [GB_FIND(libSDL_image.$SHLIBEXT libSDL_gfx.$SHLIBEXT libSDL_ttf.
> $SHLIBEXT, /usr/local /opt /usr, lib SDL*/lib lib/SDL*)],
>   [-lSDL_image -lSDL_gfx -lSDL_ttf],
>   [$THREAD_INC])
>
> and of course :
> src/lib/sdl/Makefile \
> src/lib/sdl/sound/Makefile \
> src/lib/sdl/kit2d/Makefile \
> )
>
> Have fun !

I will call im sdl.video instead sdl.kit2d if it doesn't bother you...

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the Devel mailing list