3 #FFMPEG_SNAPURL := http://git.videolan.org/?p=ffmpeg.git;a=snapshot;h=HEAD;sf=tgz
4 FFMPEG_SNAPURL := http://git.libav.org/?p=libav.git;a=snapshot;h=HEAD;sf=tgz
9 --disable-decoder=libvpx \
11 --enable-libopenjpeg \
19 # Those tools are named differently in FFmpeg and Libav
20 # --disable-ffserver \
23 DEPS_ffmpeg = zlib gsm openjpeg
25 # Optional dependencies
27 FFMPEGCONF += --enable-libmp3lame --enable-libvpx
28 DEPS_ffmpeg += lame $(DEPS_lame) vpx $(DEPS_vpx)
30 FFMPEGCONF += --disable-encoders --disable-muxers
31 # XXX: REVISIT --enable-small ?
36 #FFMPEGCONF += --disable-mpegaudio-hp
39 ifdef HAVE_CROSS_COMPILE
40 FFMPEGCONF += --enable-cross-compile --cross-prefix=$(HOST)-
45 FFMPEGCONF += --disable-runtime-cpudetect --arch=arm
47 FFMPEGCONF += --cpu=cortex-a8 --enable-neon
48 FFMPEG_CFLAGS +=-mfloat-abi=softfp -mfpu=neon
54 FFMPEGCONF += --arch=$(ARCH) --target-os=darwin
55 FFMPEG_CFLAGS += -DHAVE_LRINTF
58 ifneq ($(findstring $(ARCH),i386 x86_64),)
59 FFMPEGCONF += --enable-memalign-hack
62 FFMPEGCONF += --cpu=core2
68 FFMPEGCONF += --target-os=linux --enable-pic
73 DEPS_ffmpeg += directx
74 FFMPEGCONF += --target-os=mingw32 --enable-memalign-hack
75 FFMPEGCONF += --enable-w32threads \
76 --disable-bzlib --disable-bsfs \
77 --disable-decoder=dca --disable-encoder=vorbis \
81 FFMPEGCONF += --cpu=athlon64 --arch=x86_64
83 FFMPEGCONF+= --cpu=i686 --arch=x86
86 FFMPEGCONF += --enable-pthreads
90 FFMPEGCONF += --target-os=mingw32ce --arch=armv4l --cpu=armv4t \
91 --disable-decoder=snow --disable-decoder=vc9 \
92 --disable-decoder=wmv3 --disable-decoder=vorbis \
93 --disable-decoder=dvdsub --disable-decoder=dvbsub
96 FFMPEG_CFLAGS += --std=gnu99
101 ifeq ($(call need_pkg,"libavcodec libavformat libswscale"),)
105 $(TARBALLS)/ffmpeg-git.tar.gz:
106 $(call download,$(FFMPEG_SNAPURL))
108 FFMPEG_VERSION := git
110 .sum-ffmpeg: $(TARBALLS)/ffmpeg-$(FFMPEG_VERSION).tar.gz
111 $(warning Not implemented.)
114 ffmpeg: ffmpeg-$(FFMPEG_VERSION).tar.gz .sum-ffmpeg
117 $(ZCAT) "$<" | (cd $@-git && tar xv --strip-components=1)
119 sed -i "s/std=c99/std=gnu99/" $@-$(FFMPEG_VERSION)/configure
124 cd $< && $(HOSTVARS) ./configure \
125 --extra-cflags="$(FFMPEG_CFLAGS) -DHAVE_STDINT_H" \
126 --extra-ldflags="$(LDFLAGS)" $(FFMPEGCONF) \
127 --prefix="$(PREFIX)" --enable-static --disable-shared
128 cd $< && $(MAKE) install-libs install-headers