Skip to content

Instantly share code, notes, and snippets.

@kawaz
Last active October 11, 2020 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kawaz/d1317675a84d0db20620a84c609d78c4 to your computer and use it in GitHub Desktop.
Save kawaz/d1317675a84d0db20620a84c609d78c4 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
set -o pipefail
t=$(mktemp -d -p "${TMPDIR:-/tmp/}" -t build-qpac.XXXXXXXXXX)
dist="$t/dist"
build="$t/build"
yum install -y gcc zlib-devel
git clone --depth=1 https://github.com/gpac/gpac.git "$build"
cd "$build"
./configure --enable-sdl-static --static-mp4box --enable-static-bin --prefix="$dist"
make
make install
#rm -rf "$t"
/bin/cp -ap "$dist/bin/MP4Box" /usr/local/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment