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 \
10 --disable-decoder=bink \
12 --enable-libopenjpeg \
20 # Those tools are named differently in FFmpeg and Libav
21 # --disable-ffserver \
24 DEPS_ffmpeg = zlib gsm openjpeg
26 # Optional dependencies
28 FFMPEGCONF += --enable-libmp3lame --enable-libvpx
29 DEPS_ffmpeg += lame $(DEPS_lame) vpx $(DEPS_vpx)
31 FFMPEGCONF += --disable-encoders --disable-muxers
35 FFMPEGCONF += --enable-small --optflags=-O2
40 #FFMPEGCONF += --disable-mpegaudio-hp
43 ifdef HAVE_CROSS_COMPILE
44 FFMPEGCONF += --enable-cross-compile --cross-prefix=$(HOST)-
49 FFMPEGCONF += --disable-runtime-cpudetect --arch=arm
51 FFMPEGCONF += --cpu=cortex-a8 --enable-neon
52 FFMPEG_CFLAGS +=-mfloat-abi=softfp -mfpu=neon
58 FFMPEGCONF += --arch=$(ARCH) --target-os=darwin
59 FFMPEG_CFLAGS += -DHAVE_LRINTF
62 ifneq ($(findstring $(ARCH),i386 x86_64),)
63 FFMPEGCONF += --enable-memalign-hack
66 FFMPEGCONF += --cpu=core2
72 FFMPEGCONF += --target-os=linux --enable-pic
78 DEPS_ffmpeg += directx
80 FFMPEGCONF += --target-os=mingw32 --enable-memalign-hack
81 FFMPEGCONF += --enable-w32threads \
82 --disable-bzlib --disable-bsfs \
83 --disable-decoder=dca --disable-encoder=vorbis \
87 FFMPEGCONF += --cpu=athlon64 --arch=x86_64
89 FFMPEGCONF+= --cpu=i686 --arch=x86
92 FFMPEGCONF += --enable-pthreads
96 FFMPEGCONF += --target-os=mingw32ce --arch=armv4l --cpu=armv4t \
97 --disable-decoder=snow --disable-decoder=vc9 \
98 --disable-decoder=wmv3 --disable-decoder=vorbis \
99 --disable-decoder=dvdsub --disable-decoder=dvbsub
102 FFMPEG_CFLAGS += --std=gnu99
107 ifeq ($(call need_pkg,"libavcodec libavformat libswscale"),)
111 $(TARBALLS)/ffmpeg-git.tar.gz:
112 $(call download,$(FFMPEG_SNAPURL))
114 FFMPEG_VERSION := git
116 .sum-ffmpeg: $(TARBALLS)/ffmpeg-$(FFMPEG_VERSION).tar.gz
117 $(warning Not implemented.)
120 ffmpeg: ffmpeg-$(FFMPEG_VERSION).tar.gz .sum-ffmpeg
123 $(ZCAT) "$<" | (cd $@-git && tar xv --strip-components=1)
125 sed -i "s/std=c99/std=gnu99/" $@-$(FFMPEG_VERSION)/configure
130 cd $< && $(HOSTVARS) ./configure \
131 --extra-cflags="$(FFMPEG_CFLAGS) -DHAVE_STDINT_H" \
132 --extra-ldflags="$(LDFLAGS)" $(FFMPEGCONF) \
133 --prefix="$(PREFIX)" --enable-static --disable-shared
134 cd $< && $(MAKE) install-libs install-headers