ports/graphics/imv/files/patch-meson.build
Nuno Teixeira 5105b8b0a2 graphics/imv: Update to 4.5.0
- Unbreak build with ICU 76
  Fix imported from NetBSD pkgsrc (see ${FILESDIR}/patch-meson.build
  for details)

ChangeLog:	https://git.sr.ht/~exec64/imv/tree/v4.5.0/item/CHANGELOG
PR:		283573
2024-12-24 23:43:20 +00:00

32 lines
1.1 KiB
Text

imv: directly link against everything that it uses, needed for ICU 76
From NetBSD pkgsrc:
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/graphics/imv/patches/patch-meson.build?rev=1.2;content-type=text%2Fplain
--- meson.build.orig 2024-02-20 22:30:06 UTC
+++ meson.build
@@ -42,7 +42,7 @@ if _unicode == 'icu'
_unicode = get_option('unicode')
if _unicode == 'icu'
- unicode_lib = dependency('icu-io')
+ unicode_lib = [dependency('icu-io'), dependency('icu-uc')]
add_project_arguments('-DIMV_USE_ICU', language: 'c')
elif _unicode == 'grapheme'
unicode_lib = cc.find_library('grapheme')
@@ -120,7 +120,7 @@ foreach backend : [
enabled_backends = []
foreach backend : [
- ['freeimage', 'library', 'freeimage'],
+ ['freeimage', 'dependency', 'freeimage', []],
['libtiff', 'dependency', 'libtiff-4', []],
['libpng', 'dependency', 'libpng', []],
['libjpeg', 'dependency', 'libturbojpeg', []],
@@ -205,6 +205,7 @@ install_data(
files('files/imv_config'),
install_dir: get_option('sysconfdir'),
install_mode: 'rw-r--r--',
+ rename: 'imv_config.sample',
)
dep_cmocka = dependency('cmocka', required: get_option('test'))