[FFmpeg-devel] [rfc] cross-pkg-config and cross-sdl-config
Maksym Veremeyenko
verem
Mon Feb 28 09:34:19 CET 2011
26.02.11 21:26, Luca Barbato ???????(??):
[...]
> -SDL_CONFIG="${cross_prefix}sdl-config"
> -if "${SDL_CONFIG}" --version> /dev/null 2>&1; then
> - sdl_cflags=$("${SDL_CONFIG}" --cflags)
> - sdl_libs=$("${SDL_CONFIG}" --libs)
> +if pkg-config sdl --modversion> /dev/null 2>&1; then
> + sdl_cflags=$(pkg-config sdl --cflags)
> + sdl_libs=$(pkg-config sdl --libs)
> check_func_headers SDL.h SDL_Init $sdl_cflags $sdl_libs&&
> check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 |
> SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL)>= 0x010201" $sdl_cflags&&
> enable sdl&&
that patch make me possible to compile *ffplay.exe* with mingw32
(But i have to add one more trick: ln -s libSDL.dll.a libSDL.a)
--
________________________________________
Maksym Veremeyenko
More information about the ffmpeg-devel
mailing list