]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
build: Add wrapdb support for zlib
authorDaniel Wagner <dwagner@suse.de>
Wed, 15 Dec 2021 12:29:54 +0000 (13:29 +0100)
committerDaniel Wagner <dwagner@suse.de>
Thu, 16 Dec 2021 08:17:22 +0000 (09:17 +0100)
The meson wrapdb library supports also zlib. Let's add it as fallback
option to the build.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
meson.build
subprojects/zlib.wrap [new file with mode: 0644]

index 951d9cce4a6eae4236d8c3167d83fe549bade1aa..9a9f5d07b14229fb1a3dfebfa34086955f3ef76a 100644 (file)
@@ -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 (file)
index 0000000..d471d9b
--- /dev/null
@@ -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
+