void-packages/srcpkgs/p11-kit/patches/e1a8ec6c84421b6e5d309323e48...

39 lines
1.1 KiB
Diff

From e1a8ec6c84421b6e5d309323e4817394fa6dbf49 Mon Sep 17 00:00:00 2001
From: Daiki Ueno <ueno@gnu.org>
Date: Fri, 5 Mar 2021 08:24:50 +0100
Subject: [PATCH] meson: Make sure to set PROJECT_NAME and ENABLE_NLS for 'nls'
option
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Pointed out by Érico Nogueira Rolim in:
https://github.com/p11-glue/p11-kit/issues/357
---
meson.build | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meson.build b/meson.build
index 27cb5e76..52643f02 100644
--- a/meson.build
+++ b/meson.build
@@ -26,6 +26,7 @@ add_project_arguments(['-D_GNU_SOURCE', '-DP11_KIT_FUTURE_UNSTABLE_API'],
conf = configuration_data()
+conf.set_quoted('PACKAGE_NAME', meson.project_name())
conf.set('PACKAGE_MAJOR', major_version)
conf.set('PACKAGE_MINOR', minor_version)
@@ -58,6 +59,10 @@ endif
conf.set10('WITH_STRICT', get_option('strict'))
+if get_option('nls') and cc.has_header('libintl.h')
+ conf.set('ENABLE_NLS', 1)
+endif
+
prefix = get_option('prefix')
datadir = get_option('datadir')
bindir = get_option('bindir')