From 2acb97d4b41dcf728164fd8e442a9e148cf3422a Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Wed, 15 Dec 2021 13:29:54 +0100 Subject: [PATCH] build: Add wrapdb support for zlib The meson wrapdb library supports also zlib. Let's add it as fallback option to the build. Signed-off-by: Daniel Wagner --- meson.build | 2 +- subprojects/zlib.wrap | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 subprojects/zlib.wrap diff --git a/meson.build b/meson.build index 951d9cce..9a9f5d07 100644 --- a/meson.build +++ b/meson.build @@ -47,7 +47,7 @@ libhugetlbfs = dependency('hugetlbfs', required: false) conf.set('LIBHUGETLBFS', libhugetlbfs.found(), description: 'Is libhugetlbfs required?') # Check for zlib availability -libz_dep = dependency('zlib', required: true) +libz_dep = dependency('zlib', fallback : ['zlib', 'zlib_dep']) # Check for OpenSSL availability want_openssl = get_option('openssl') diff --git a/subprojects/zlib.wrap b/subprojects/zlib.wrap new file mode 100644 index 00000000..d471d9b3 --- /dev/null +++ b/subprojects/zlib.wrap @@ -0,0 +1,12 @@ +[wrap-file] +directory = zlib-1.2.11 +source_url = http://zlib.net/fossils/zlib-1.2.11.tar.gz +source_filename = zlib-1.2.11.tar.gz +source_hash = c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1 +patch_url = https://wrapdb.mesonbuild.com/v2/zlib_1.2.11-5/get_patch +patch_filename = zlib-1.2.11-5-wrap.zip +patch_hash = 728c8e24acbc2e6682fbd950fec39e2fc77528af361adb87259f8a8511434004 + +[provide] +zlib = zlib_dep + -- 2.50.1