mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-30 08:38:43 +08:00
Update ffmpeg
This commit is contained in:
parent
3f29d66abb
commit
123413fe44
@ -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
|
||||
}
|
||||
31
recipes/ffmpeg/recipe.toml
Normal file
31
recipes/ffmpeg/recipe.toml
Normal 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
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user