Commit b389b4f1 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Contribs: more cleanups for libav/FFmpeg

parent 14fa9f28
...@@ -13,7 +13,9 @@ FFMPEGCONF = \ ...@@ -13,7 +13,9 @@ FFMPEGCONF = \
--disable-avdevice \ --disable-avdevice \
--disable-devices \ --disable-devices \
--disable-avfilter \ --disable-avfilter \
--disable-filters --disable-filters \
--disable-bsfs \
--disable-bzlib
# Those tools are named differently in FFmpeg and Libav # Those tools are named differently in FFmpeg and Libav
# --disable-ffserver \ # --disable-ffserver \
...@@ -29,6 +31,7 @@ else ...@@ -29,6 +31,7 @@ else
FFMPEGCONF += --disable-encoders --disable-muxers FFMPEGCONF += --disable-encoders --disable-muxers
endif endif
# Small size
ifdef ENABLE_SMALL ifdef ENABLE_SMALL
FFMPEGCONF += --enable-small --optflags=-O2 FFMPEGCONF += --enable-small --optflags=-O2
ifeq ($(ARCH),arm) ifeq ($(ARCH),arm)
...@@ -63,7 +66,6 @@ endif ...@@ -63,7 +66,6 @@ endif
# Darwin # Darwin
ifdef HAVE_DARWIN_OS ifdef HAVE_DARWIN_OS
FFMPEGCONF += --arch=$(ARCH) --target-os=darwin FFMPEGCONF += --arch=$(ARCH) --target-os=darwin
FFMPEG_CFLAGS += -DHAVE_LRINTF
ifneq ($(findstring $(ARCH),i386 x86_64),) ifneq ($(findstring $(ARCH),i386 x86_64),)
FFMPEGCONF += --enable-memalign-hack FFMPEGCONF += --enable-memalign-hack
endif endif
...@@ -79,6 +81,7 @@ endif ...@@ -79,6 +81,7 @@ endif
ifdef HAVE_LINUX ifdef HAVE_LINUX
FFMPEGCONF += --target-os=linux --enable-pic FFMPEGCONF += --target-os=linux --enable-pic
# Android x86
ifeq ($(ANDROID_ABI), x86) ifeq ($(ANDROID_ABI), x86)
ifdef HAVE_ANDROID ifdef HAVE_ANDROID
# Android-x86 gcc doesn't guarantee an aligned stack, but this is # Android-x86 gcc doesn't guarantee an aligned stack, but this is
...@@ -97,22 +100,20 @@ ifndef HAVE_MINGW_W64 ...@@ -97,22 +100,20 @@ ifndef HAVE_MINGW_W64
DEPS_ffmpeg += directx DEPS_ffmpeg += directx
endif endif
FFMPEGCONF += --target-os=mingw32 --enable-memalign-hack FFMPEGCONF += --target-os=mingw32 --enable-memalign-hack
FFMPEGCONF += --enable-w32threads \ FFMPEGCONF += --enable-w32threads --enable-dxva2 \
--disable-bzlib --disable-bsfs \
--disable-decoder=dca --disable-encoder=vorbis \ --disable-decoder=dca --disable-encoder=vorbis \
--enable-dxva2
ifdef HAVE_WIN64 ifdef HAVE_WIN64
FFMPEGCONF += --cpu=athlon64 --arch=x86_64 FFMPEGCONF += --cpu=athlon64 --arch=x86_64
else # !WIN64 else # !WIN64
FFMPEGCONF+= --cpu=i686 --arch=x86 FFMPEGCONF+= --cpu=i686 --arch=x86
endif endif
else
else # !Windows
FFMPEGCONF += --enable-pthreads FFMPEGCONF += --enable-pthreads
endif endif
# Build # Build
PKGS += ffmpeg PKGS += ffmpeg
ifeq ($(call need_pkg,"libavcodec >= 52.25.0 libavformat >= 52.30.0 libswscale"),) ifeq ($(call need_pkg,"libavcodec >= 52.25.0 libavformat >= 52.30.0 libswscale"),)
PKGS_FOUND += ffmpeg PKGS_FOUND += ffmpeg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment