specify png location
@@ -3,7 +3,8 @@ set -ex
./configure \
--prefix=${PREFIX} \
--with-zlib=${PREFIX} \
- --with-java=${JAVA_HOME}
+ --with-java=${JAVA_HOME} \
+ --with-png=${PREFIX}
[[ "$target_platform" == "win-64" ]] && patch_libtool
