|
|
|
@ -1023,8 +1023,8 @@ check_pkg_config(){ |
|
|
|
|
pkg_cflags=$($pkg_config --cflags $pkg_config_flags $pkg) |
|
|
|
|
pkg_libs=$($pkg_config --libs $pkg_config_flags $pkg) |
|
|
|
|
check_func_headers "$headers" "$funcs" $pkg_cflags $pkg_libs "$@" && |
|
|
|
|
set_safe "${pkg}_cflags" $pkg_cflags && |
|
|
|
|
set_safe "${pkg}_libs" $pkg_libs |
|
|
|
|
set_safe "${pkg}_cflags" $pkg_cflags && |
|
|
|
|
set_safe "${pkg}_extralibs" $pkg_libs |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
check_exec(){ |
|
|
|
@ -1117,7 +1117,7 @@ require_pkg_config(){ |
|
|
|
|
pkg="${1%% *}" |
|
|
|
|
check_pkg_config "$@" || die "ERROR: $pkg_version not found" |
|
|
|
|
add_cflags $(get_safe "${pkg}_cflags") |
|
|
|
|
add_extralibs $(get_safe "${pkg}_libs") |
|
|
|
|
add_extralibs $(get_safe "${pkg}_extralibs") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
hostcc_e(){ |
|
|
|
@ -2477,7 +2477,7 @@ avconv_select="aformat_filter anull_filter asyncts_filter atrim_filter format_fi |
|
|
|
|
fps_filter null_filter resample_filter scale_filter |
|
|
|
|
trim_filter" |
|
|
|
|
avplay_deps="avcodec avfilter avformat avresample sdl" |
|
|
|
|
avplay_libs='$sdl_libs' |
|
|
|
|
avplay_extralibs='$sdl_extralibs' |
|
|
|
|
avplay_select="rdft format_filter transpose_filter hflip_filter vflip_filter" |
|
|
|
|
avprobe_deps="avcodec avformat" |
|
|
|
|
|
|
|
|
@ -4695,7 +4695,7 @@ enabled omx_rpi && { check_header OMX_Core.h || |
|
|
|
|
enabled omx && { check_header OMX_Core.h || die "ERROR: OpenMAX IL headers not found"; } |
|
|
|
|
enabled openssl && { { check_pkg_config openssl openssl/ssl.h OPENSSL_init_ssl || |
|
|
|
|
check_pkg_config openssl openssl/ssl.h SSL_library_init; } && { |
|
|
|
|
add_cflags $openssl_cflags && add_extralibs $openssl_libs; }|| |
|
|
|
|
add_cflags $openssl_cflags && add_extralibs $openssl_extralibs; } || |
|
|
|
|
check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto || |
|
|
|
|
check_lib openssl/ssl.h SSL_library_init -lssl32 -leay32 || |
|
|
|
|
check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 || |
|
|
|
@ -4773,7 +4773,7 @@ if enabled libxcb; then |
|
|
|
|
} && enable libxcb_xfixes |
|
|
|
|
|
|
|
|
|
add_cflags "$xcb_shape_cflags $xcb_shm_cflags $xcb_xfixes_cflags" |
|
|
|
|
add_extralibs "$xcb_shape_libs $xcb_shm_libs $xcb_xfixes_libs" |
|
|
|
|
add_extralibs "$xcb_shape_extralibs $xcb_shm_extralibs $xcb_xfixes_extralibs" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
enabled vaapi && require vaapi va/va.h vaInitialize -lva |
|
|
|
@ -5329,12 +5329,12 @@ map 'get_version $v' $LIBRARY_LIST |
|
|
|
|
|
|
|
|
|
map 'eval echo "${v}_FFLIBS=\$${v}_deps" >> config.mak' $LIBRARY_LIST |
|
|
|
|
|
|
|
|
|
print_program_libs(){ |
|
|
|
|
eval "program_libs=\$${1}_libs" |
|
|
|
|
eval echo "LIBS-${1}=${program_libs}" >> config.mak |
|
|
|
|
print_program_extralibs(){ |
|
|
|
|
eval "program_extralibs=\$${1}_extralibs" |
|
|
|
|
eval echo "EXTRALIBS-${1}=${program_extralibs}" >> config.mak |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
map 'print_program_libs $v' $PROGRAM_LIST |
|
|
|
|
map 'print_program_extralibs $v' $PROGRAM_LIST |
|
|
|
|
|
|
|
|
|
cat > $TMPH <<EOF |
|
|
|
|
/* Automatically generated by configure - do not modify! */ |
|
|
|
|