summaryrefslogtreecommitdiffstats
path: root/contrib/ffmpeg/module.defs
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ffmpeg/module.defs')
-rw-r--r--contrib/ffmpeg/module.defs32
1 files changed, 32 insertions, 0 deletions
diff --git a/contrib/ffmpeg/module.defs b/contrib/ffmpeg/module.defs
new file mode 100644
index 000000000..b41291018
--- /dev/null
+++ b/contrib/ffmpeg/module.defs
@@ -0,0 +1,32 @@
+$(eval $(call import.MODULE.defs,FFMPEG,ffmpeg,FAAD2))
+$(eval $(call import.CONTRIB.defs,FFMPEG))
+
+FFMPEG.FETCH.url = http://download.m0k.org/handbrake/contrib/ffmpeg-r15974.tar.gz
+FFMPEG.EXTRACT.tarbase = ffmpeg
+
+FFMPEG.CONFIGURE.deps =
+FFMPEG.CONFIGURE.env =
+FFMPEG.CONFIGURE.host =
+
+FFMPEG.CONFIGURE.extra = \
+ --disable-bsfs \
+ --disable-encoders \
+ --disable-ffmpeg \
+ --disable-ffserver \
+ --disable-muxers \
+ --disable-vhook \
+ --enable-encoder=ac3 \
+ --enable-encoder=mpeg4 \
+ --enable-encoder=snow \
+ --enable-gpl \
+ --enable-libfaad \
+ --enable-muxer=ipod \
+ --enable-pthreads \
+ --enable-swscale \
+ --cc="$(GCC.gcc)" \
+ --extra-cflags="$(call fn.ARGS,FFMPEG.GCC,*archs) -I$(call fn.ABSOLUTE,$(CONTRIB.build/)include)" \
+ --extra-ldflags="$(call fn.ARGS,FFMPEG.GCC,*archs) -L$(call fn.ABSOLUTE,$(CONTRIB.build/)lib)"
+
+ifeq ($(BUILD.cross),1)
+ FFMPEG.CONFIGURE.extra += --enable-cross-compile --arch=$(FFMPEG.GCC.archs)
+endif