|
|
|
@ -4340,6 +4340,7 @@ ifndef FFMPEG_CONFIG_MAK |
|
|
|
|
FFMPEG_CONFIG_MAK=1 |
|
|
|
|
FFMPEG_CONFIGURATION=$FFMPEG_CONFIGURATION |
|
|
|
|
prefix=$prefix |
|
|
|
|
build_suffix=${build_suffix} |
|
|
|
|
LIBDIR=\$(DESTDIR)$libdir |
|
|
|
|
SHLIBDIR=\$(DESTDIR)$shlibdir |
|
|
|
|
INCDIR=\$(DESTDIR)$incdir |
|
|
|
@ -4525,7 +4526,7 @@ pkgconfig_generate(){ |
|
|
|
|
requires=$5 |
|
|
|
|
enabled ${name#lib} || return 0 |
|
|
|
|
mkdir -p $name |
|
|
|
|
cat <<EOF > $name/$name.pc |
|
|
|
|
cat <<EOF > $name/$name${build_suffix}.pc |
|
|
|
|
prefix=$prefix |
|
|
|
|
exec_prefix=\${prefix} |
|
|
|
|
libdir=$libdir |
|
|
|
@ -4561,27 +4562,27 @@ Cflags: -I\${includedir} |
|
|
|
|
EOF |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
libavfilter_pc_deps="libavutil = $LIBAVUTIL_VERSION" |
|
|
|
|
enabled libavfilter_deps_avcodec && prepend libavfilter_pc_deps "libavcodec = $LIBAVCODEC_VERSION," |
|
|
|
|
enabled libavfilter_deps_avformat && prepend libavfilter_pc_deps "libavformat = $LIBAVFORMAT_VERSION," |
|
|
|
|
enabled libavfilter_deps_avresample && prepend libavfilter_pc_deps "libavresample = $LIBAVRESAMPLE_VERSION," |
|
|
|
|
enabled libavfilter_deps_swscale && prepend libavfilter_pc_deps "libswscale = $LIBSWSCALE_VERSION," |
|
|
|
|
enabled libavfilter_deps_swresample && prepend libavfilter_pc_deps "libswresample = $LIBSWRESAMPLE_VERSION," |
|
|
|
|
enabled libavfilter_deps_postproc && prepend libavfilter_pc_deps "libpostproc = $LIBPOSTPROC_VERSION," |
|
|
|
|
libavfilter_pc_deps="libavutil${build_suffix} = $LIBAVUTIL_VERSION" |
|
|
|
|
enabled libavfilter_deps_avcodec && prepend libavfilter_pc_deps "libavcodec${build_suffix} = $LIBAVCODEC_VERSION," |
|
|
|
|
enabled libavfilter_deps_avformat && prepend libavfilter_pc_deps "libavformat${build_suffix} = $LIBAVFORMAT_VERSION," |
|
|
|
|
enabled libavfilter_deps_avresample && prepend libavfilter_pc_deps "libavresample${build_suffix} = $LIBAVRESAMPLE_VERSION," |
|
|
|
|
enabled libavfilter_deps_swscale && prepend libavfilter_pc_deps "libswscale${build_suffix} = $LIBSWSCALE_VERSION," |
|
|
|
|
enabled libavfilter_deps_swresample && prepend libavfilter_pc_deps "libswresample${build_suffix} = $LIBSWRESAMPLE_VERSION," |
|
|
|
|
enabled libavfilter_deps_postproc && prepend libavfilter_pc_deps "libpostproc${build_suffix} = $LIBPOSTPROC_VERSION," |
|
|
|
|
libavfilter_pc_deps=${libavfilter_pc_deps%, } |
|
|
|
|
|
|
|
|
|
libavdevice_pc_deps="libavformat = $LIBAVFORMAT_VERSION" |
|
|
|
|
enabled lavfi_indev && prepend libavdevice_pc_deps "libavfilter = $LIBAVFILTER_VERSION," |
|
|
|
|
libavdevice_pc_deps="libavformat${build_suffix} = $LIBAVFORMAT_VERSION" |
|
|
|
|
enabled lavfi_indev && prepend libavdevice_pc_deps "libavfilter${build_suffix} = $LIBAVFILTER_VERSION," |
|
|
|
|
|
|
|
|
|
pkgconfig_generate libavutil "FFmpeg utility library" "$LIBAVUTIL_VERSION" "$LIBM" |
|
|
|
|
pkgconfig_generate libavcodec "FFmpeg codec library" "$LIBAVCODEC_VERSION" "$extralibs" "libavutil = $LIBAVUTIL_VERSION" |
|
|
|
|
pkgconfig_generate libavformat "FFmpeg container format library" "$LIBAVFORMAT_VERSION" "$extralibs" "libavcodec = $LIBAVCODEC_VERSION" |
|
|
|
|
pkgconfig_generate libavcodec "FFmpeg codec library" "$LIBAVCODEC_VERSION" "$extralibs" "libavutil${build_suffix} = $LIBAVUTIL_VERSION" |
|
|
|
|
pkgconfig_generate libavformat "FFmpeg container format library" "$LIBAVFORMAT_VERSION" "$extralibs" "libavcodec${build_suffix} = $LIBAVCODEC_VERSION" |
|
|
|
|
pkgconfig_generate libavdevice "FFmpeg device handling library" "$LIBAVDEVICE_VERSION" "$extralibs" "$libavdevice_pc_deps" |
|
|
|
|
pkgconfig_generate libavfilter "FFmpeg video filtering library" "$LIBAVFILTER_VERSION" "$extralibs" "$libavfilter_pc_deps" |
|
|
|
|
pkgconfig_generate libpostproc "FFmpeg postprocessing library" "$LIBPOSTPROC_VERSION" "" "libavutil = $LIBAVUTIL_VERSION" |
|
|
|
|
pkgconfig_generate libavresample "Libav audio resampling library" "$LIBAVRESAMPLE_VERSION" "$extralibs" "libavutil = $LIBAVUTIL_VERSION" |
|
|
|
|
pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERSION" "$LIBM" "libavutil = $LIBAVUTIL_VERSION" |
|
|
|
|
pkgconfig_generate libswresample "FFmpeg audio resampling library" "$LIBSWRESAMPLE_VERSION" "$LIBM" "libavutil = $LIBAVUTIL_VERSION" |
|
|
|
|
pkgconfig_generate libpostproc "FFmpeg postprocessing library" "$LIBPOSTPROC_VERSION" "" "libavutil${build_suffix} = $LIBAVUTIL_VERSION" |
|
|
|
|
pkgconfig_generate libavresample "Libav audio resampling library" "$LIBAVRESAMPLE_VERSION" "$extralibs" "libavutil${build_suffix} = $LIBAVUTIL_VERSION" |
|
|
|
|
pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERSION" "$LIBM" "libavutil${build_suffix} = $LIBAVUTIL_VERSION" |
|
|
|
|
pkgconfig_generate libswresample "FFmpeg audio resampling library" "$LIBSWRESAMPLE_VERSION" "$LIBM" "libavutil${build_suffix} = $LIBAVUTIL_VERSION" |
|
|
|
|
|
|
|
|
|
fix_ffmpeg_remote(){ |
|
|
|
|
git_remote_from=$1 |
|
|
|
|