ffmpeg / libaom build on CentOS8 and Cygwin x64

/* Build ffmpeg on Cygwin x64 */

/* 2019-05-14 (Tue.) */
$ sudo apt-get -y install git subversion gcc-9 g++-9

/* 2018-10-23 (Tue.) */
/* 2015-12-19 (Sat.) */

$ git clone http://code.videolan.org/videolan/libdvdcss.git
$ cd libdvdcss-1.4.0
$ ./configure --prefix=/usr/local --enable-shared && time gmake -j2
$ gmake install

$ git clone https://github.com/mirror/libdvdread.git
$ cd ../libdvdread-6.0.2
$ ./configure --prefix=/usr/local --with-libdvdcss=/usr/local --enable-shared --target=x86_64-pc-cygwin && time gmake -j2

$ gmake install

$ sudo dnf -y install autoconf automake
$ git clone https://github.com/yasm/yasm.git
$ cd ../yasm ; git pull
$ ./autogen.sh (Ctrl+C)
$ ./configure --prefix=/usr/local --disable-nls && time gmake -j2
$ gmake install

$ sudo dnf config-manager --enable PowerTools
$ sudo dnf -y install nasm
$ git clone http://git.videolan.org/git/x264.git
$ cd ../x264 ; git pull
$ ./configure --prefix=/usr/local --enable-strip --enable-static --enable-shared --disable-avs --enable-pic && time gmake -j2
$ gmake install

$ sudo dnf -y install cmake
$ git clone https://github.com/videolan/x265.git
$ cd x265/build/linux
$ bash ./make-Makefiles.bash
set(CMAKE_LEGACY_CYGWIN_WIN32 0) in CMakeLists.txt
$ time make -j2

http://downloads.sourceforge.net/faac/faac-1.29.9.2.tar.bz2
$ cd ../faac-1.29.9.2
$ ./configure --prefix=/usr/local --with-mp4v2 --enable-drm
$ gmake install
http://downloads.sourceforge.net/faac/faad2-2.8.6.tar.bz2
$ cd ../faad2-2.8.6
$ ./configure --prefix=/usr/local --without-xmms --with-drm --with-mpeg4ip --enable-shared && time gmake -j2
$ gmake install


$ git clone https://git.code.sf.net/p/opencore-amr/fdk-aac opencore-amr-fdk-aac
$ cd ../opencore-amr-fdk-aac
$ ./autogen.sh (CTRL+C)
$ sudo dnf -y install libtool
$ ./configure --prefix=/usr/local --enable-shared --disable-example && time gmake -j2
$ gmake install
$ git clone https://github.com/BelledonneCommunications/opencore-amr.git
$ cd ../opencore-amr-code ; git pull
$ aclocal --force -I m4 && libtoolize --copy --force && autoconf-2.69 --force && automake --add-missing --copy --force-missing
$ ./configure --prefix=/usr/local --disable-examples --enable-shared && time gmake -j2
$ gmake install

https://downloads.xvid.com/downloads/xvidcore-1.3.5.tar.bz2
$ cd ../xvidcore/build/generic
$ ( vi configure.in and configure ; remove "-mno-cygwin")
$ ./configure --prefix=/usr/local --enable-shared && time gmake -j2
$ gmake install
https://github.com/webmproject/libvpx.git
$ cd ../../../libvpx ; git pull
$ ./configure --prefix=/usr/local --enable-runtime-cpu-detect --enable-vp8 --enable-vp9 --target=x86_64-win64-gcc --disable-docs --disable-unit-tests --extra-cxxflags="-std=gnu++11" && time gmake -j2

(not x86_64-pc-cygwin)
$ gmake install

; libaom
$ git clone https://aomedia.googlesource.com/aom
$ mkdir aom_build
$ cd aom_build && cmake ../aom -DBUILD_SHARED_LIBS=1
$ time gmake -j2
$ sudo gmake install

; libopus
$ git clone https://github.com/xiph/opus.git
$ ./autogen.sh
$ ./configure --prefix=/usr/local --disable-doc --enable-shared && time gmake -j2
$ sudo gmake install

$ git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
https://github.com/FFmpeg/FFmpeg.git
$ cd ../FFmpeg ; git pull
$ PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" LANG=C CC=gcc CFLAGS="" CXXFLAGS="" CPPFLAGS="" LDFLAGS="" LD_LIBRARY_PATH="/usr/local/lib:/" ./configure --prefix=/usr/local --disable-ffserver --enable-pic --enable-openssl --enable-vda --enable-vaapi --enable-vdpau --enable-version3 --enable-nonfree --enable-gpl --enable-dxva2 --enable-shared --enable-libfdk-aac --enable-libopus --enable-libx264 --enable-libx265 --enable-libvpx --enable-libaom --extra-cflags="-I/usr/local/include" --extra-ldflags="-L/usr/local/lib" && time gmake -j2