diff --git a/recipes/ffmpeg/recipe.sh b/recipes/ffmpeg/recipe.sh
index 7454e41fa9f770d94a1fe6292efdef85d0668d08..18ed8d920c4d0a84ed862788640ada951ee1e59b 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"
     ./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
 }