ports/x11/gnome-shell/files/patch-subprojects_extensions-tool_src_meson.build
Olivier Duchateau 76d99deea5 x11/gnome-shell: update to 47.7
PR:	286697
2025-06-10 15:46:22 +02:00

15 lines
793 B
Plaintext

--- subprojects/extensions-tool/src/meson.build.orig 2023-04-24 08:26:56 UTC
+++ subprojects/extensions-tool/src/meson.build
@@ -3,7 +3,10 @@ config_h.set_quoted('GETTEXT_PACKAGE', package_name)
config_h.set_quoted('VERSION', meson.project_version())
config_h.set('MAJOR_VERSION', meson.project_version().split('.')[0])
config_h.set_quoted('LOCALEDIR', localedir)
-config_h.set('HAVE_BIND_TEXTDOMAIN_CODESET', cc.has_function('bind_textdomain_codeset'))
+intl_dep = cc.find_library('intl', required: false)
+if cc.has_function('bind_textdomain_codeset', prefix: '#include <libintl.h>', dependencies: intl_dep)
+ config_h.set('HAVE_BIND_TEXTDOMAIN_CODESET', 1)
+endif
configure_file(
output: 'config.h',
configuration: config_h,