--- /dev/null
+# Locally calculated
+sha256 2ec78c8c13530bffaebfc10be2f4695c47cf50fe2fbc2104606467703836fa0e zlib-ng-a17fefa147942edbf80ab22a16bcbc2419def12d.tar.gz
+sha256 d3c80be055d94d798eaa786116e84fa0b010bc11420b5d2060d978ea77845436 LICENSE.md
--- /dev/null
+################################################################################
+#
+# zlib-ng
+#
+################################################################################
+
+ZLIB_NG_VERSION = a17fefa147942edbf80ab22a16bcbc2419def12d
+ZLIB_NG_SITE = $(call github,mtl1979,zlib-ng,$(ZLIB_NG_VERSION))
+ZLIB_NG_LICENSE = Zlib
+ZLIB_NG_LICENSE_FILES = LICENSE.md
+ZLIB_NG_INSTALL_STAGING = YES
+ZLIB_NG_PROVIDES = zlib
+
+# Build with zlib compatible API, gzFile support and optimizations on
+ZLIB_NG_CONF_OPTS += -DZLIB_COMPAT=1 -DWITH_GZFILEOP=1 -DWITH_OPTIM=1 -DCC=$(TARGET_CC)
+
+# Enable NEON and ACLE on ARM
+ifeq ($(BR2_arm),y)
+ZLIB_NG_CONF_OPTS += -DWITH_ACLE=1 -DWITH_NEON=1
+endif
+
+$(eval $(cmake-package))
http://www.zlib.net
+config BR2_PACKAGE_ZLIB_NG
+ bool "zlib-ng"
+ select BR2_PACKAGE_HAS_ZLIB
+ help
+ Zlib replacement with optimizations for
+ "next generation" systems.
+
+ https://github.com/mtl1979/zlib-ng/tree/renamelib
+
endchoice
config BR2_PACKAGE_HAS_ZLIB
config BR2_PACKAGE_PROVIDES_ZLIB
string
default "libzlib" if BR2_PACKAGE_LIBZLIB
+ default "zlib-ng" if BR2_PACKAGE_ZLIB_NG
endif