Skip to content
Permalink
v2.11.0
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 52 lines (34 sloc) 932 Bytes
#!/bin/bash
{
set -x
set -e
set -u
. build.profile
function B_FFMPEG {
BUILD_PKG=${BUILD_ffmpeg}
# SRCURL[0]="https://ffmpeg.org//releases/${BUILD_ffmpeg}.tar.gz"
SRCURL="https://beehive.molgen.mpg.de/704acada29e5fe5791f9f9949ff7b4ff/ffmpeg-7.0.tar.gz"
PREFIX="${PREFIX}/${BUILD_PKG}"
mkdir -p "${PREFIX}"
cat >"${PREFIX}"/profile <<-EOF
PATH=${PREFIX}/bin:\$PATH
PKG_CONFIG_PATH=${PROJECT}/${BUILD_PKG}/lib/pkgconfig\${PKG_CONFIG_PATH:+:}\${PKG_CONFIG_PATH:-}
EOF
test -e "${BUILD_PKG}".tar.gz || wget -nv "${SRCURL}" -O "${BUILD_PKG}".tar.gz
test -d "${BUILD_PKG}" || mkdir -pv "${BUILD_PKG}" && tar -xf "${BUILD_PKG}".tar.gz --strip-components=1 -C "${BUILD_PKG}"
cd "${BUILD_PKG}"
local _conf=(
--prefix="${PREFIX}"
--enable-gpl
--enable-version3
--enable-nonfree
--enable-gray
--disable-doc
)
./configure "${_conf[@]}"
make -j "${NPROC}" install
}
pushd "${BUILD_DIR}"
B_FFMPEG
popd
}