3 #Uncomment the one you want
9 FFMPEG_SNAPURL := http://git.videolan.org/?p=ffmpeg.git;a=snapshot;h=$(HASH);sf=tgz
12 FFMPEG_SNAPURL := http://git.libav.org/?p=libav.git;a=snapshot;h=$(HASH);sf=tgz
17 --pkg-config="$(PKG_CONFIG)" \
19 --disable-encoder=vorbis \
21 --enable-libopenjpeg \
34 --disable-swresample \
38 DEPS_ffmpeg = zlib gsm openjpeg
40 # Optional dependencies
42 FFMPEGCONF += --disable-network
45 FFMPEGCONF += --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx --disable-decoder=libvpx_vp8 --disable-decoder=libvpx_vp9
46 DEPS_ffmpeg += lame $(DEPS_lame) vpx $(DEPS_vpx)
48 FFMPEGCONF += --disable-encoders --disable-muxers
53 FFMPEGCONF += --enable-small
57 FFMPEGCONF += --enable-thumb
61 ifdef HAVE_CROSS_COMPILE
62 FFMPEGCONF += --enable-cross-compile
64 FFMPEGCONF += --cross-prefix=$(HOST)-
71 FFMPEGCONF += --arch=arm
74 FFMPEGCONF += --enable-neon
77 FFMPEGCONF += --cpu=cortex-a8
80 FFMPEGCONF += --cpu=armv6 --disable-neon
86 FFMPEGCONF += --arch=mips
92 FFMPEGCONF += --arch=x86
98 FFMPEGCONF += --arch=$(ARCH) --target-os=darwin
100 FFMPEGCONF += --cpu=core2
104 FFMPEGCONF += --enable-pic
106 FFMPEGCONF += --as="$(AS)"
110 FFMPEGCONF += --enable-vda
115 FFMPEGCONF += --target-os=linux --enable-pic
121 ifndef HAVE_MINGW_W64
122 DEPS_ffmpeg += directx
124 FFMPEGCONF += --target-os=mingw32 --enable-memalign-hack
125 FFMPEGCONF += --enable-w32threads --enable-dxva2 \
126 --disable-decoder=dca
129 FFMPEGCONF += --cpu=athlon64 --arch=x86_64
131 FFMPEGCONF+= --cpu=i686 --arch=x86
135 FFMPEGCONF += --enable-pthreads
139 FFMPEGCONF += --cpu=core2 --enable-pic
144 ifeq ($(call need_pkg,"libavcodec >= 54.25.0 libavformat >= 53.21.0 libswscale"),)
148 $(TARBALLS)/ffmpeg-$(HASH).tar.gz:
149 $(call download,$(FFMPEG_SNAPURL))
151 .sum-ffmpeg: $(TARBALLS)/ffmpeg-$(HASH).tar.gz
152 $(warning Not implemented.)
155 ffmpeg: ffmpeg-$(HASH).tar.gz .sum-ffmpeg
158 $(ZCAT) "$<" | (cd $@-$(HASH) && tar xv --strip-components=1)
162 cd $< && $(HOSTVARS) ./configure \
163 --extra-ldflags="$(LDFLAGS)" $(FFMPEGCONF) \
164 --prefix="$(PREFIX)" --enable-static --disable-shared
165 cd $< && $(MAKE) install-libs install-headers