From 3f29d66abb60e11c3037716cfe16f4333d493c67 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Thu, 12 Jan 2023 21:20:12 -0700
Subject: [PATCH] Enable ffplay

---
 recipes/ffmpeg/recipe.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/recipes/ffmpeg/recipe.sh b/recipes/ffmpeg/recipe.sh
index f067b3d58..37072bf3c 100644
--- a/recipes/ffmpeg/recipe.sh
+++ b/recipes/ffmpeg/recipe.sh
@@ -1,7 +1,7 @@
 VERSION=4.0
 GIT=https://github.com/FFmpeg/FFmpeg
 BRANCH=release/$VERSION
-BUILD_DEPENDS=(zlib)
+BUILD_DEPENDS=(liborbital llvm mesa sdl2 zlib)
 
 function recipe_version {
     echo "$VERSION"
@@ -9,9 +9,8 @@ function recipe_version {
 }
 
 function recipe_build {
-    sysroot="$PWD/../sysroot"
-    export CPPFLAGS="-I$sysroot/include"
-    export LDFLAGS="-L$sysroot/lib -static"
+    export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include"
+    export LDFLAGS="-L${COOKBOOK_SYSROOT}/lib -static"
     ./configure \
         --enable-cross-compile \
         --target-os=redox \
@@ -19,6 +18,7 @@ function recipe_build {
         --cross_prefix=${HOST}- \
         --prefix=/ \
         --disable-network \
+        --enable-sdl2 \
         --enable-zlib \
         --enable-encoder=png \
         --enable-decoder=png
-- 
GitLab