[FFmpeg-devel] [rfc] cross-pkg-config and cross-sdl-config

Måns Rullgård mans
Sun Feb 27 13:01:18 CET 2011


Luca Barbato <lu_zero at gentoo.org> writes:

> So I'd first replace sdl-config with pkg-config
>
> diff --git a/configure b/configure
> index 5795c4b..598d7b4 100755
> --- a/configure
> +++ b/configure
> @@ -2861,10 +2861,9 @@ if enabled libdc1394; then
>      die "ERROR: No version of libdc1394 found "
>  fi
>
> -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 &&

This looks OK.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list