2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-06-14 21:41:42 +02:00
|
|
|
#
|
|
|
|
# ffmpeg
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-03-01 17:20:00 +01:00
|
|
|
|
2014-10-06 21:28:12 +02:00
|
|
|
FFMPEG_VERSION = 2.4.2
|
2011-03-01 17:20:00 +01:00
|
|
|
FFMPEG_SOURCE = ffmpeg-$(FFMPEG_VERSION).tar.bz2
|
|
|
|
FFMPEG_SITE = http://ffmpeg.org/releases
|
2010-06-14 21:41:42 +02:00
|
|
|
FFMPEG_INSTALL_STAGING = YES
|
|
|
|
|
2013-02-07 12:02:33 +01:00
|
|
|
FFMPEG_LICENSE = LGPLv2.1+, libjpeg license
|
2014-10-02 12:11:01 +02:00
|
|
|
FFMPEG_LICENSE_FILES = LICENSE.md COPYING.LGPLv2.1
|
2013-02-07 12:02:33 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_GPL),y)
|
|
|
|
FFMPEG_LICENSE += and GPLv2+
|
|
|
|
FFMPEG_LICENSE_FILES += COPYING.GPLv2
|
|
|
|
endif
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS = \
|
2014-10-03 11:50:46 +02:00
|
|
|
--prefix=/usr \
|
2014-01-02 18:59:44 +01:00
|
|
|
--enable-avfilter \
|
|
|
|
--disable-version3 \
|
|
|
|
--enable-logging \
|
|
|
|
--enable-optimizations \
|
|
|
|
--disable-extra-warnings \
|
|
|
|
--disable-ffprobe \
|
|
|
|
--enable-avdevice \
|
|
|
|
--enable-avcodec \
|
|
|
|
--enable-avformat \
|
|
|
|
--disable-x11grab \
|
|
|
|
--enable-network \
|
|
|
|
--disable-gray \
|
|
|
|
--enable-swscale-alpha \
|
|
|
|
--disable-small \
|
|
|
|
--enable-dct \
|
|
|
|
--enable-fft \
|
|
|
|
--enable-mdct \
|
|
|
|
--enable-rdft \
|
|
|
|
--disable-crystalhd \
|
|
|
|
--disable-vdpau \
|
|
|
|
--disable-dxva2 \
|
|
|
|
--enable-runtime-cpudetect \
|
|
|
|
--disable-hardcoded-tables \
|
|
|
|
--disable-memalign-hack \
|
|
|
|
--enable-hwaccels \
|
|
|
|
--disable-avisynth \
|
|
|
|
--disable-frei0r \
|
|
|
|
--disable-libopencore-amrnb \
|
|
|
|
--disable-libopencore-amrwb \
|
|
|
|
--disable-libopencv \
|
|
|
|
--disable-libdc1394 \
|
|
|
|
--disable-libfaac \
|
|
|
|
--disable-libfreetype \
|
|
|
|
--disable-libgsm \
|
|
|
|
--disable-libmp3lame \
|
|
|
|
--disable-libnut \
|
|
|
|
--disable-libopenjpeg \
|
|
|
|
--disable-librtmp \
|
|
|
|
--disable-libschroedinger \
|
|
|
|
--disable-libspeex \
|
|
|
|
--disable-libtheora \
|
|
|
|
--disable-libvo-aacenc \
|
|
|
|
--disable-libvo-amrwbenc \
|
|
|
|
--disable-symver \
|
2014-02-05 14:50:56 +01:00
|
|
|
--disable-doc
|
2010-06-14 21:41:42 +02:00
|
|
|
|
2014-09-09 04:06:46 +02:00
|
|
|
FFMPEG_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv) host-pkgconf
|
2014-01-02 18:59:44 +01:00
|
|
|
|
2014-09-09 04:06:45 +02:00
|
|
|
ifeq ($(BR2_ENABLE_DEBUG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-debug
|
2014-09-09 04:06:45 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-debug
|
2014-09-09 04:06:45 +02:00
|
|
|
endif
|
|
|
|
|
2010-06-14 21:41:42 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_GPL),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-gpl
|
2010-06-14 21:41:42 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-gpl
|
2010-06-14 21:41:42 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_NONFREE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-nonfree
|
2010-06-14 21:41:42 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-nonfree
|
2010-06-14 21:41:42 +02:00
|
|
|
endif
|
|
|
|
|
2010-06-14 21:41:43 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_FFMPEG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-ffmpeg
|
2010-06-14 21:41:43 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-ffmpeg
|
2010-06-14 21:41:43 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_FFPLAY),y)
|
|
|
|
FFMPEG_DEPENDENCIES += sdl
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-ffplay
|
2010-06-14 21:41:43 +02:00
|
|
|
FFMPEG_CONF_ENV += SDL_CONFIG=$(STAGING_DIR)/usr/bin/sdl-config
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-ffplay
|
2010-06-14 21:41:43 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_FFSERVER),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-ffserver
|
2010-06-14 21:41:43 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-ffserver
|
2010-06-14 21:41:43 +02:00
|
|
|
endif
|
|
|
|
|
2010-10-07 09:54:00 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_POSTPROC),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-postproc
|
2010-10-07 09:54:00 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-postproc
|
2010-10-07 09:54:00 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-swscale
|
2010-10-07 09:54:00 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-swscale
|
2010-10-07 09:54:00 +02:00
|
|
|
endif
|
|
|
|
|
2010-06-14 21:41:44 +02:00
|
|
|
ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_ENCODERS)),all)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-encoders \
|
2010-06-14 21:41:44 +02:00
|
|
|
$(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_ENCODERS)),--enable-encoder=$(x))
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_DECODERS)),all)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-decoders \
|
2010-06-14 21:41:44 +02:00
|
|
|
$(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_DECODERS)),--enable-decoder=$(x))
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_MUXERS)),all)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-muxers \
|
2010-06-14 21:41:44 +02:00
|
|
|
$(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_MUXERS)),--enable-muxer=$(x))
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_DEMUXERS)),all)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-demuxers \
|
2010-06-14 21:41:44 +02:00
|
|
|
$(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_DEMUXERS)),--enable-demuxer=$(x))
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_PARSERS)),all)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-parsers \
|
2010-06-14 21:41:44 +02:00
|
|
|
$(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_PARSERS)),--enable-parser=$(x))
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_BSFS)),all)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-bsfs \
|
2014-01-02 18:59:44 +01:00
|
|
|
$(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_BSFS)),--enable-bsfs=$(x))
|
2010-06-14 21:41:44 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_PROTOCOLS)),all)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-protocols \
|
2010-06-14 21:41:44 +02:00
|
|
|
$(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_PROTOCOLS)),--enable-protocol=$(x))
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_FILTERS)),all)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-filters \
|
2010-06-14 21:41:44 +02:00
|
|
|
$(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_FILTERS)),--enable-filter=$(x))
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_INDEVS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-indevs
|
2010-06-14 21:41:44 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-indevs
|
2010-06-14 21:41:44 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_OUTDEVS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-outdevs
|
2010-06-14 21:41:44 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-outdevs
|
2010-06-14 21:41:44 +02:00
|
|
|
endif
|
|
|
|
|
2010-12-13 17:27:44 +01:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-pthreads
|
2010-12-13 17:27:44 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-pthreads
|
2010-06-14 21:41:42 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-zlib
|
2010-06-14 21:41:42 +02:00
|
|
|
FFMPEG_DEPENDENCIES += zlib
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-zlib
|
2010-06-14 21:41:42 +02:00
|
|
|
endif
|
|
|
|
|
2014-01-02 18:59:44 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-bzlib
|
2014-01-02 18:59:44 +01:00
|
|
|
FFMPEG_DEPENDENCIES += bzip2
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-bzlib
|
2014-01-02 18:59:44 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2014-01-13 13:11:39 +01:00
|
|
|
# openssl isn't license compatible with GPL
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_GPL)x$(BR2_PACKAGE_FFMPEG_NONFREE),yx)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-openssl
|
2014-01-13 13:11:39 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-openssl
|
2014-01-02 18:59:44 +01:00
|
|
|
FFMPEG_DEPENDENCIES += openssl
|
2014-01-13 13:11:39 +01:00
|
|
|
endif
|
2014-01-02 18:59:44 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-openssl
|
2014-01-02 18:59:44 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
|
|
|
|
FFMPEG_DEPENDENCIES += libvorbis
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += \
|
2014-01-02 18:59:44 +01:00
|
|
|
--enable-libvorbis \
|
|
|
|
--enable-muxer=ogg \
|
|
|
|
--enable-encoder=libvorbis
|
|
|
|
endif
|
|
|
|
|
2014-07-15 21:19:03 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBVA),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-vaapi
|
2014-07-15 21:19:03 +02:00
|
|
|
FFMPEG_DEPENDENCIES += libva
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-vaapi
|
2014-07-15 21:19:03 +02:00
|
|
|
endif
|
|
|
|
|
2014-09-30 15:28:05 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OPUS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-libopus
|
2014-09-30 15:28:05 +02:00
|
|
|
FFMPEG_DEPENDENCIES += opus
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-libopus
|
2014-09-30 15:28:05 +02:00
|
|
|
endif
|
|
|
|
|
2014-09-30 15:28:04 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBVPX),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-libvpx
|
2014-09-30 15:28:04 +02:00
|
|
|
FFMPEG_DEPENDENCIES += libvpx
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-libvpx
|
2014-09-30 15:28:04 +02:00
|
|
|
endif
|
|
|
|
|
2014-01-02 18:59:44 +01:00
|
|
|
ifeq ($(BR2_X86_CPU_HAS_MMX),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-yasm
|
2014-01-13 06:48:11 +01:00
|
|
|
FFMPEG_DEPENDENCIES += host-yasm
|
2014-01-02 18:59:44 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-yasm
|
|
|
|
FFMPEG_CONF_OPTS += --disable-mmx
|
2014-01-02 18:59:44 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-sse
|
2014-01-02 18:59:44 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-sse
|
2014-01-02 18:59:44 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE2),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-sse2
|
2012-01-22 13:04:16 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-sse2
|
2012-01-22 13:04:16 +01:00
|
|
|
endif
|
2014-01-02 18:59:44 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE3),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-sse3
|
2014-01-02 18:59:44 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-sse3
|
2014-01-02 18:59:44 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSSE3),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-ssse3
|
2014-01-02 18:59:44 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-ssse3
|
2011-02-28 15:18:21 +01:00
|
|
|
endif
|
|
|
|
|
2014-01-02 18:59:45 +01:00
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE4),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-sse4
|
2014-01-02 18:59:45 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-sse4
|
2014-01-02 18:59:45 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE42),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-sse42
|
2014-01-02 18:59:45 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-sse42
|
2014-01-02 18:59:45 +01:00
|
|
|
endif
|
|
|
|
|
2012-12-21 03:40:31 +01:00
|
|
|
# Explicitly disable everything that doesn't match for ARM
|
|
|
|
# FFMPEG "autodetects" by compiling an extended instruction via AS
|
|
|
|
# This works on compilers that aren't built for generic by default
|
2014-05-07 19:10:05 +02:00
|
|
|
ifeq ($(BR2_arm920t)$(BR2_arm922t)$(BR2_strongarm)$(BR2_fa526),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-armv5te
|
2011-03-01 17:20:00 +01:00
|
|
|
endif
|
2014-09-22 17:17:15 +02:00
|
|
|
ifeq ($(BR2_arm1136jf_s)$(BR2_arm1176jz_s)$(BR2_arm1176jzf_s)$(BR2_cortex_a5)$(BR2_cortex_a8)$(BR2_cortex_a9)$(BR2_cortex_a15),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-armv6
|
2012-12-21 03:40:31 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-armv6 --disable-armv6t2
|
2011-03-01 17:20:00 +01:00
|
|
|
endif
|
2013-08-13 11:54:11 +02:00
|
|
|
ifeq ($(BR2_arm10)$(BR2_arm1136jf_s)$(BR2_arm1176jz_s)$(BR2_arm1176jzf_s)$(BR2_cortex_a5)$(BR2_cortex_a8)$(BR2_cortex_a9)$(BR2_cortex_a15),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-vfp
|
2012-12-21 03:40:31 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-vfp
|
2011-03-01 17:20:00 +01:00
|
|
|
endif
|
2012-12-13 23:25:30 +01:00
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-neon
|
2011-03-01 17:20:00 +01:00
|
|
|
endif
|
2012-12-21 03:40:31 +01:00
|
|
|
|
2014-01-13 22:23:06 +01:00
|
|
|
ifeq ($(BR2_MIPS_SOFT_FLOAT),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += \
|
2014-01-13 22:23:06 +01:00
|
|
|
--disable-mipsfpu
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += \
|
2014-01-13 22:23:06 +01:00
|
|
|
--enable-mipsfpu
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_mips_32r2),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += \
|
2014-01-13 22:23:06 +01:00
|
|
|
--enable-mips32r2
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += \
|
2014-01-13 22:23:06 +01:00
|
|
|
--disable-mips32r2
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_mips_64r2),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += \
|
2014-01-13 22:23:06 +01:00
|
|
|
--enable-mipsdspr1 \
|
|
|
|
--enable-mipsdspr2
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += \
|
2014-01-13 22:23:06 +01:00
|
|
|
--disable-mipsdspr1 \
|
|
|
|
--disable-mipsdspr2
|
|
|
|
endif
|
|
|
|
|
2014-05-13 07:28:17 +02:00
|
|
|
ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-altivec
|
2011-05-12 22:12:40 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-altivec
|
2011-05-12 22:12:40 +02:00
|
|
|
endif
|
2011-03-01 17:20:00 +01:00
|
|
|
|
2014-01-02 18:59:44 +01:00
|
|
|
ifeq ($(BR2_PREFER_STATIC_LIB),)
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --enable-pic
|
2014-09-09 04:06:44 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += --disable-pic
|
2014-01-02 18:59:44 +01:00
|
|
|
endif
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
FFMPEG_CONF_OPTS += $(call qstrip,$(BR2_PACKAGE_FFMPEG_EXTRACONF))
|
2010-06-14 21:41:45 +02:00
|
|
|
|
2010-06-14 21:41:42 +02:00
|
|
|
# Override FFMPEG_CONFIGURE_CMDS: FFmpeg does not support --target and others
|
|
|
|
define FFMPEG_CONFIGURE_CMDS
|
|
|
|
(cd $(FFMPEG_SRCDIR) && rm -rf config.cache && \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
|
|
|
$(FFMPEG_CONF_ENV) \
|
|
|
|
./configure \
|
2014-10-03 11:50:46 +02:00
|
|
|
--enable-cross-compile \
|
2010-06-14 21:41:42 +02:00
|
|
|
--cross-prefix=$(TARGET_CROSS) \
|
|
|
|
--sysroot=$(STAGING_DIR) \
|
2011-01-01 11:49:01 +01:00
|
|
|
--host-cc="$(HOSTCC)" \
|
2010-06-14 21:41:42 +02:00
|
|
|
--arch=$(BR2_ARCH) \
|
2014-01-02 18:59:44 +01:00
|
|
|
--target-os="linux" \
|
2014-08-10 14:46:46 +02:00
|
|
|
--disable-stripping \
|
2014-09-09 04:06:46 +02:00
|
|
|
--pkg-config="$(PKG_CONFIG_HOST_BINARY)" \
|
2014-01-02 18:59:44 +01:00
|
|
|
$(if $(BR2_GCC_TARGET_TUNE),--cpu=$(BR2_GCC_TARGET_TUNE)) \
|
2011-06-20 17:59:54 +02:00
|
|
|
$(SHARED_STATIC_LIBS_OPTS) \
|
2014-09-27 21:32:44 +02:00
|
|
|
$(FFMPEG_CONF_OPTS) \
|
2010-06-14 21:41:42 +02:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|