[BACK]Return to patch-thumbnailer_meson.build CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / graphics / gdk-pixbuf2 / patches

File: [cvs.NetBSD.org] / pkgsrc / graphics / gdk-pixbuf2 / patches / patch-thumbnailer_meson.build (download)

Revision 1.1, Thu Feb 20 03:35:35 2020 UTC (21 months, 1 week ago) by brook
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1

gdk-pixbuf2: Fix build on certain Darwin configurations.

During the build, newly compiled applications are run and require libraries also
within the build area.  At least on Darwin, these must be accessed via
LD_LIBRARY_PATH, which must be added to the meson build files to be included in
the appropriate commands.

$NetBSD: patch-thumbnailer_meson.build,v 1.1 2020/02/20 03:35:35 brook Exp $

Add LD_LIBRARY_PATH so uninstalled programs find newly built shared libraries.

--- thumbnailer/meson.build.orig	2019-10-08 10:44:10.000000000 +0000
+++ thumbnailer/meson.build
@@ -16,6 +16,7 @@ custom_target('thumbnailer',
               input: 'gdk-pixbuf-thumbnailer.thumbnailer.in',
               output: 'gdk-pixbuf-thumbnailer.thumbnailer',
               command: [
+	        'env', 'LD_LIBRARY_PATH=' + meson.current_build_dir() + '/../gdk-pixbuf',
                 gen_thumbnailer,
                 '--printer=@0@'.format(gdk_pixbuf_print_mime_types.full_path()),
                 '--pixdata=@0@'.format(gdk_pixbuf_pixdata.full_path()),