1 # Copyright © 2016-2019, The AROS Development Team. All rights reserved.
4 include $(SRCDIR)/config/aros-contrib.cfg
6 #MM- contrib-ffmpeg : linklibs-startup linklibs-amiga linklibs-arossupport linklibs-clib
8 NOWARN_FLAGS := $(NOWARN_DEPRECATED_DECLARATIONS) $(NOWARN_MISLEADING_INDENTATION) \
9 $(NOWARN_INCOMPAT_POINTER_TYPES) $(NOWARN_ARRAY_BOUNDS) $(NOWARN_DISCARDED_QUALIFIERS) \
10 $(NOWARN_STRICT_OVERFLOW) $(NOWARN_UNUSED_BUT_SET_VARIABLE) $(NOWARN_UNUSED_VARIABLE) \
11 $(NOWARN_UNUSED_RESULT) $(NOWARN_POINTER_TO_INT_CAST) $(NOWARN_UNINITIALIZED) $(NOWARN_STRICT_OVERFLOW)
12 USER_CFLAGS := $(NOWARN_FLAGS) \
14 USER_INCLUDES := -I$(AROS_CONTRIB_INCLUDES)
15 USER_LDFLAGS := -L$(AROS_CONTRIB_LIB)
17 ifneq ("","$(strip $(WARN_ERROR))")
18 CONFIG_CFLAGS := $(subst $(WARN_ERROR),,$(CONFIG_CFLAGS))
21 # uncomment to get verbose build output..
25 FFMPEG_PROGS=--disable-programs
28 REPOSITORIES := http://ffmpeg.org/releases \
29 http://mirror.sobukus.de/files/src/ffmpeg \
30 http://download.openpkg.org/components/cache/ffmpeg
32 ifneq ($(AROS_TARGET_CPU),i386)
33 FFMPEG_ARCH := $(AROS_TARGET_CPU)
35 FFMPEG_ARCH := x86 --cpu=$(AROS_TARGET_CPU)
39 --enable-cross-compile \
40 --arch=$(FFMPEG_ARCH) \
43 --extra-libs="$(FFMPEG_LIBS)" \
53 ifeq ($(AROS_TARGET_CPU),m68k)
56 --disable-decoder=hevc
59 %fetch_and_build mmake=contrib-ffmpeg prefix=$(AROS_DEVELOPER) \
60 package=ffmpeg version=$(VERSION) suffixes="tar.bz2" \
61 patch=yes nix=no package_repo=$(REPOSITORIES) \
62 extraoptions="$(FFMPEG_OPTIONS)" buildflags=no gnuflags=no