Update ffmpeg

This commit is contained in:
Jeremy Soller 2023-01-17 22:12:45 -07:00
parent 3f29d66abb
commit 123413fe44
2 changed files with 31 additions and 38 deletions

View File

@ -1,38 +0,0 @@
VERSION=4.0
GIT=https://github.com/FFmpeg/FFmpeg
BRANCH=release/$VERSION
BUILD_DEPENDS=(liborbital llvm mesa sdl2 zlib)
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_build {
export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include"
export LDFLAGS="-L${COOKBOOK_SYSROOT}/lib -static"
./configure \
--enable-cross-compile \
--target-os=redox \
--arch=${ARCH} \
--cross_prefix=${HOST}- \
--prefix=/ \
--disable-network \
--enable-sdl2 \
--enable-zlib \
--enable-encoder=png \
--enable-decoder=png
"$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
"$REDOX_MAKE" DESTDIR="$dest" install
skip=1
}

View File

@ -0,0 +1,31 @@
[source]
tar = "https://ffmpeg.org/releases/ffmpeg-5.1.2.tar.xz"
patches = [
"ffmpeg.patch"
]
[build]
template = "custom"
dependencies = [
"liborbital",
"llvm",
"mesa",
"sdl2",
"zlib",
]
script = """
ARCH="${TARGET%%-*}"
COOKBOOK_CONFIGURE_FLAGS=(
--enable-cross-compile
--target-os=redox
--arch="${ARCH}"
--cross_prefix="${TARGET}-"
--prefix=/
--disable-network
--enable-sdl2
--enable-zlib
--enable-encoder=png
--enable-decoder=png
)
cookbook_configure
"""