[Gambas-devel] sdl component

Laurent Carlier lordheavy at ...141...
Mon Jan 3 13:24:05 CET 2005


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 !

-- 

Laurent Carlier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sdl030105.tar.bz2
Type: application/x-tbz
Size: 232676 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20050103/b7929a6b/attachment.bin>


More information about the Devel mailing list