diff --git a/recipes/ffmpeg/recipe.sh b/recipes/ffmpeg/recipe.sh
index 7454e41fa9f770d94a1fe6292efdef85d0668d08..93ab89c3952619bf3c30dac2ca6c50b68d6a3f2a 100644
--- a/recipes/ffmpeg/recipe.sh
+++ b/recipes/ffmpeg/recipe.sh
@@ -1,6 +1,7 @@
 VERSION=4.0
 GIT=https://github.com/FFmpeg/FFmpeg
 BRANCH=release/$VERSION
+BUILD_DEPENDS=(zlib)
 
 function recipe_version {
     echo "$VERSION"
@@ -13,13 +14,19 @@ function recipe_update {
 }
 
 function recipe_build {
+    sysroot="$PWD/../sysroot"
+    export LDFLAGS="-L$sysroot/lib"
+    export CPPFLAGS="-I$sysroot/include -I$sysroot/include/ncurses"
     ./configure \
         --enable-cross-compile \
         --target-os=redox \
         --arch=${ARCH} \
         --cross_prefix=${HOST}- \
         --prefix=/ \
-        --disable-network
+        --disable-network \
+        --enable-zlib \
+        --enable-encoder=png \
+        --enable-decoder=png
     make
     skip=1
 }