Warning, /graphics/digikam/project/bundles/3rdparty/ext_ffmpeg/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # Script to build ffmpeg libraries for digiKam bundle.
0002 #
0003 # SPDX-FileCopyrightText: 2015-2024 by Gilles Caulier  <caulier dot gilles at gmail dot com>
0004 #
0005 # SPDX-License-Identifier: BSD-3-Clause
0006 #
0007 
0008 # NOTE: see build rules and tips at:
0009 #       https://github.com/pyke369/sffmpeg/blob/master/CMakeLists.txt
0010 #       https://www.linuxfromscratch.org/blfs/view/svn/multimedia/ffmpeg.html
0011 #       https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
0012 #
0013 
0014 set(PREFIX_ext_ffmpeg "${EXTPREFIX}")
0015 
0016 set(FFmpeg_Conf --prefix=${PREFIX_ext_ffmpeg}
0017                 --extra-libs=-lstdc++
0018                 --disable-doc
0019                 --disable-debug
0020                 --disable-programs
0021                 --disable-outdevs
0022                 --enable-shared
0023                 --enable-gpl
0024                 --enable-version3
0025                 --enable-nonfree
0026                 --enable-runtime-cpudetect
0027                 --enable-libopencore-amrnb
0028                 --enable-libopencore-amrwb
0029                 --enable-libfdk-aac
0030                 --enable-libmp3lame
0031                 --enable-libspeex
0032                 --enable-libtheora
0033                 --enable-libvorbis
0034                 --enable-libx264
0035                 --enable-libx265
0036                 --enable-libaom
0037                 --enable-libxvid
0038                 --enable-libvpx
0039                 --enable-libopus
0040                 --enable-librtmp
0041                 --enable-libfreetype
0042                 --enable-libass
0043                 --enable-opengl
0044 )
0045 
0046 if(MINGW)
0047 
0048     set(YASM_EXE ${MXE_BUILDROOT}/usr/bin/${MXE_BUILD_TARGETS}-yasm)
0049     message(STATUS "Yasm binary: ${YASM_EXE}")
0050 
0051     set(FFmpeg_Conf ${FFmpeg_Conf}
0052                     --cross-prefix=${MXE_BUILD_TARGETS}-
0053                     --enable-cross-compile
0054                     --arch=x86_64
0055                     --target-os=mingw32
0056                     --disable-static
0057                     --enable-shared
0058                     --yasmexe=${YASM_EXE}
0059                     --disable-pthreads
0060                     --enable-w32threads
0061     )
0062 
0063 endif()
0064 
0065 ExternalProject_Add(ext_ffmpeg
0066     DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
0067     URL https://ffmpeg.org/releases/ffmpeg-4.4.4.tar.xz
0068     URL_MD5 cce7aaaed2b4c202999a8d79a69f3ecc
0069 
0070     CONFIGURE_COMMAND <SOURCE_DIR>/configure ${FFmpeg_Conf}
0071     UPDATE_COMMAND ""
0072     ALWAYS 0
0073 )