mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-19 19:34:18 +08:00
49 lines
878 B
Bash
49 lines
878 B
Bash
VERSION=4.0
|
|
GIT=https://github.com/FFmpeg/FFmpeg
|
|
BRANCH=release/$VERSION
|
|
BUILD_DEPENDS=(zlib)
|
|
|
|
function recipe_version {
|
|
echo "$VERSION"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_update {
|
|
echo "skipping update"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_build {
|
|
sysroot="$PWD/../sysroot"
|
|
export CPPFLAGS="-I$sysroot/include"
|
|
export LDFLAGS="-L$sysroot/lib -static"
|
|
./configure \
|
|
--enable-cross-compile \
|
|
--target-os=redox \
|
|
--arch=${ARCH} \
|
|
--cross_prefix=${HOST}- \
|
|
--prefix=/ \
|
|
--disable-network \
|
|
--enable-zlib \
|
|
--enable-encoder=png \
|
|
--enable-decoder=png
|
|
make -j"$(nproc)"
|
|
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
|
|
skip=1
|
|
}
|