diff Makefile @ 34567:2c9db9cb7310

build: fix lavfi dependencies (swscale and swresample).
author cigaes
date Tue, 07 Feb 2012 12:27:23 +0000
parents 6c6fb701fa8e
children 4e7cc799cf54
line wrap: on
line diff
--- a/Makefile	Mon Feb 06 06:30:12 2012 +0000
+++ b/Makefile	Tue Feb 07 12:27:23 2012 +0000
@@ -689,7 +689,8 @@
                 $(SRCS_MENCODER-yes)
 
 # (linking) order matters for these libraries
-FFMPEGPARTS = libpostproc libswscale libavfilter libavformat libavcodec libavutil
+FFMPEGPARTS_ALL = libpostproc libavfilter libavformat libavcodec libswscale libswresample libavutil
+FFMPEGPARTS = $(foreach part, $(FFMPEGPARTS_ALL), $(if $(wildcard ffmpeg/$(part)), $(part)))
 FFMPEGLIBS  = $(foreach part, $(FFMPEGPARTS), ffmpeg/$(part)/$(part).a)
 FFMPEGFILES = $(foreach part, $(FFMPEGPARTS), $(wildcard $(addprefix ffmpeg/$(part)/,*.[chS] /*/*.[chS] /*/*.asm)))