Skip to content

Instantly share code, notes, and snippets.

@voltagex

voltagex/build.sh

Created Dec 8, 2018
Embed
What would you like to do?
ffmpeg script
#!/usr/bin/env bash
set -uoe
sudo apt install -y mingw-w64-tools make yasm libz-mingw-w64
cd ~
MINGW=x86_64-w64-mingw32
PKG_CONFIG_PATH=/opt/mingw64/lib/pkgconfig
LDFLAGS="-L/opt/mingw64/lib/ -L/usr/x86_64-w64-mingw32/lib/"
PREFIX=/opt/mingw64
mkdir -p src
pushd src
git clone --depth=1 https://git.assembla.com/portaudio.git
pushd portaudio
./configure --enable-cxx --prefix=$PREFIX --exec-prefix=$PREFIX --host=$MINGW
make -j`nproc`
make install
popd
git clone --depth=1 https://salsa.debian.org/multimedia-team/libopenmpt.git
pushd libopenmpt
./configure --prefix=$PREFIX --exec-prefix=$PREFIX --disable-static --enable-shared --disable-openmpt123 --disable-doxygen-doc --host=$MINGW
make -j`nproc`
make install
FORMATS=mp3,flac
EXTRA=--enable-libopenmpt
./configure --target-os=mingw64 --arch=x86 --cross-prefix=x86_64-w64-mingw32- \
--enable-shared --disable-static \
--disable-everything \
--disable-doc \
--disable-dxva2 \
--disable-d3d11va \
--disable-ffplay \
--enable-protocol=http,https \
--enable-decoder=$FORMATS \
--enable-encoder=$FORMATS \
--enable-demuxer=$FORMATS \
$EXTRA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment