From 123413fe447abd3f0e9ffe1d81822554189aab26 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Tue, 17 Jan 2023 22:12:45 -0700 Subject: [PATCH] Update ffmpeg --- recipes/ffmpeg/recipe.sh | 38 -------------------------------------- recipes/ffmpeg/recipe.toml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 38 deletions(-) delete mode 100644 recipes/ffmpeg/recipe.sh create mode 100644 recipes/ffmpeg/recipe.toml diff --git a/recipes/ffmpeg/recipe.sh b/recipes/ffmpeg/recipe.sh deleted file mode 100644 index 37072bf3c..000000000 --- a/recipes/ffmpeg/recipe.sh +++ /dev/null @@ -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 -} diff --git a/recipes/ffmpeg/recipe.toml b/recipes/ffmpeg/recipe.toml new file mode 100644 index 000000000..49a6e873a --- /dev/null +++ b/recipes/ffmpeg/recipe.toml @@ -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 +""" -- GitLab