FFMPEGCONF = \
--cc="$(CC)" \
+ --pkg-config="$(PKG_CONFIG)" \
--disable-doc \
- --disable-decoder=bink \
--disable-encoder=vorbis \
--enable-libgsm \
--enable-libopenjpeg \
--disable-filters \
--disable-bsfs \
--disable-bzlib \
- --disable-programs \
--disable-avresample
ifdef USE_FFMPEG
endif
ifdef HAVE_CROSS_COMPILE
-FFMPEGCONF += --enable-cross-compile
+FFMPEGCONF += --enable-cross-compile --disable-programs
ifndef HAVE_DARWIN_OS
FFMPEGCONF += --cross-prefix=$(HOST)-
endif
# ARM stuff
ifeq ($(ARCH),arm)
-ifndef HAVE_DARWIN_OS
FFMPEGCONF += --arch=arm
-endif
ifdef HAVE_NEON
FFMPEGCONF += --enable-neon
endif
endif
endif
+# ARM64 stuff
+ifeq ($(ARCH),aarch64)
+FFMPEGCONF += --arch=aarch64
+endif
+
# MIPS stuff
ifeq ($(ARCH),mipsel)
FFMPEGCONF += --arch=mips
endif
endif
+# x86_64 stuff
+ifeq ($(ARCH),x86_64)
+ifndef HAVE_DARWIN_OS
+FFMPEGCONF += --arch=x86_64
+endif
+endif
+
# Darwin
ifdef HAVE_DARWIN_OS
FFMPEGCONF += --arch=$(ARCH) --target-os=darwin
+ifdef USE_FFMPEG
+FFMPEGCONF += --disable-lzma
+endif
ifeq ($(ARCH),x86_64)
FFMPEGCONF += --cpu=core2
endif
-endif
ifdef HAVE_IOS
-ifeq ($(ARCH),arm)
-FFMPEGCONF += --enable-pic --as="$(AS)"
+FFMPEGCONF += --enable-pic --extra-ldflags="$(EXTRA_CFLAGS)"
+ifdef HAVE_NEON
+FFMPEGCONF += --as="$(AS)"
endif
endif
ifdef HAVE_MACOSX
FFMPEGCONF += --enable-vda
endif
+endif
# Linux
ifdef HAVE_LINUX
FFMPEGCONF += --enable-pthreads
endif
+# Solaris
+ifdef HAVE_SOLARIS
+ifeq ($(ARCH),x86_64)
+FFMPEGCONF += --cpu=core2
+endif
+FFMPEGCONF += --target-os=sunos --enable-pic
+endif
+
# Build
PKGS += ffmpeg
ifeq ($(call need_pkg,"libavcodec >= 54.25.0 libavformat >= 53.21.0 libswscale"),)
PKGS_FOUND += ffmpeg
endif
+FFMPEGCONF += --nm="$(NM)" --ar="$(AR)"
+
$(TARBALLS)/ffmpeg-$(HASH).tar.gz:
$(call download,$(FFMPEG_SNAPURL))
ffmpeg: ffmpeg-$(HASH).tar.gz .sum-ffmpeg
rm -Rf $@ $@-$(HASH)
mkdir -p $@-$(HASH)
- $(ZCAT) "$<" | (cd $@-$(HASH) && tar xv --strip-components=1)
+ $(XZCAT) "$<" | (cd $@-$(HASH) && tar xv --strip-components=1)
$(MOVE)
.ffmpeg: ffmpeg