libpng: properly fix zlib issue
authorRosen Penev <redacted>
Tue, 15 Dec 2020 04:55:58 +0000 (20:55 -0800)
committerRosen Penev <redacted>
Tue, 15 Dec 2020 05:00:00 +0000 (21:00 -0800)
commit2991c20c6129d5d9a66508571cdffd603f060032
tree2fcfa13266b893d5fb9abf23dabc174b611dee75
parentfdaa53cd946d4e88617c25df63bbcdce07a406df
libpng: properly fix zlib issue

The previous commit meant to avoid adding an LDFLAG but it just avoided
the issue. The real issue is PNG_BUILD_ZLIB being turned to ON. This
variable is for specifying a custom zlib location, which is not
necessary. Switching it to OFF calls find_package and links properly.

Backported two zlib related patches. The latter is a somewhat impoarant
fix.

Signed-off-by: Rosen Penev <redacted>
libs/libpng/Makefile
libs/libpng/patches/020-cmake-zlib.patch [new file with mode: 0644]
libs/libpng/patches/030-pkgconfig-zlib.patch [new file with mode: 0644]
git clone https://git.99rst.org/PROJECT