redox/recipes/ffmpeg/recipe.sh
2018-04-21 02:11:59 +02:00

43 lines
679 B
Bash

VERSION=4.0
GIT=https://github.com/FFmpeg/FFmpeg
BRANCH=release/$VERSION
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
./configure \
--enable-cross-compile \
--target-os=redox \
--arch=${ARCH} \
--cross_prefix=${HOST}- \
--prefix=/ \
--disable-network
make
skip=1
}
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean {
make clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
make DESTDIR="$dest" install
rm -rf "$1"/{include,lib,share}
skip=1
}