summaryrefslogtreecommitdiff
path: root/graphics/gdk-pixbuf2
diff options
context:
space:
mode:
authorbrook <brook@pkgsrc.org>2020-02-20 03:35:35 +0000
committerbrook <brook@pkgsrc.org>2020-02-20 03:35:35 +0000
commit2cd202aa267251039d5913d479a7a2cf38224394 (patch)
tree221e95c973f69c18e9635b57e31b0457fea709a4 /graphics/gdk-pixbuf2
parente28c9e4958adac86289b1f2655f25cb7d89bf2ac (diff)
downloadpkgsrc-2cd202aa267251039d5913d479a7a2cf38224394.tar.gz
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.
Diffstat (limited to 'graphics/gdk-pixbuf2')
-rw-r--r--graphics/gdk-pixbuf2/distinfo5
-rw-r--r--graphics/gdk-pixbuf2/patches/patch-gdk-pixbuf_meson.build14
-rw-r--r--graphics/gdk-pixbuf2/patches/patch-tests_meson.build22
-rw-r--r--graphics/gdk-pixbuf2/patches/patch-thumbnailer_meson.build14
4 files changed, 54 insertions, 1 deletions
diff --git a/graphics/gdk-pixbuf2/distinfo b/graphics/gdk-pixbuf2/distinfo
index e37e460c1c1..92318de780b 100644
--- a/graphics/gdk-pixbuf2/distinfo
+++ b/graphics/gdk-pixbuf2/distinfo
@@ -1,8 +1,11 @@
-$NetBSD: distinfo,v 1.45 2019/11/06 13:52:51 wiz Exp $
+$NetBSD: distinfo,v 1.46 2020/02/20 03:35:35 brook Exp $
SHA1 (gdk-pixbuf-2.40.0.tar.xz) = 9396bd89c4647d8db2d02ef93c20c17dbce359d8
RMD160 (gdk-pixbuf-2.40.0.tar.xz) = 409fc37578fbf1dea2abaefa715f74280b3ea0ab
SHA512 (gdk-pixbuf-2.40.0.tar.xz) = 6512befd379494dbfd89a16fc4c92641842eb7b82fc820ec83a5b057526209947db646570db1124c073b0ef69c117bdf0f8d3fea807e302a4950db39187c35aa
Size (gdk-pixbuf-2.40.0.tar.xz) = 5512160 bytes
SHA1 (patch-gdk-pixbuf_gdk-pixbuf-scaled-anim.c) = 486db8d3f352b0d72b7074ba48f14ccbfa09deda
+SHA1 (patch-gdk-pixbuf_meson.build) = 58b53744e4cc846ddc9492b86d8964c6c19ed5e2
SHA1 (patch-meson.build) = e98fcafc3a123e4af8f26ba93c3a21af5fa37e2b
+SHA1 (patch-tests_meson.build) = 743abfb1d4e505882c4d304fc33ad60a3821e584
+SHA1 (patch-thumbnailer_meson.build) = fb9b7523663ac595ef66c8cf41837a733ac44216
diff --git a/graphics/gdk-pixbuf2/patches/patch-gdk-pixbuf_meson.build b/graphics/gdk-pixbuf2/patches/patch-gdk-pixbuf_meson.build
new file mode 100644
index 00000000000..0936f0c86f6
--- /dev/null
+++ b/graphics/gdk-pixbuf2/patches/patch-gdk-pixbuf_meson.build
@@ -0,0 +1,14 @@
+$NetBSD: patch-gdk-pixbuf_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.
+
+--- gdk-pixbuf/meson.build.orig 2019-10-08 10:44:10.000000000 +0000
++++ gdk-pixbuf/meson.build
+@@ -316,6 +316,7 @@ if not meson.is_cross_build()
+ output: 'loaders.cache',
+ capture: true,
+ command: [
++ 'env', 'LD_LIBRARY_PATH=' + meson.current_build_dir() + '/../gdk-pixbuf',
+ gdk_pixbuf_query_loaders,
+ dynamic_loaders,
+ ],
diff --git a/graphics/gdk-pixbuf2/patches/patch-tests_meson.build b/graphics/gdk-pixbuf2/patches/patch-tests_meson.build
new file mode 100644
index 00000000000..7d7b3be5094
--- /dev/null
+++ b/graphics/gdk-pixbuf2/patches/patch-tests_meson.build
@@ -0,0 +1,22 @@
+$NetBSD: patch-tests_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.
+
+--- tests/meson.build.orig 2019-10-08 10:44:10.000000000 +0000
++++ tests/meson.build
+@@ -5,6 +5,7 @@ resources_c = custom_target('resources.c
+ input: 'resources.gresource.xml',
+ output: 'resources.c',
+ command: [
++ 'env', 'LD_LIBRARY_PATH=' + meson.current_build_dir() + '/../gdk-pixbuf',
+ gen_resources,
+ '--pixdata=@0@'.format(gdk_pixbuf_pixdata.full_path()),
+ '--loaders=@0@'.format(loaders_cache.full_path()),
+@@ -23,6 +24,7 @@ resources_h = custom_target('resources.h
+ input: 'resources.gresource.xml',
+ output: 'resources.h',
+ command: [
++ 'env', 'LD_LIBRARY_PATH=' + meson.current_build_dir() + '/../gdk-pixbuf',
+ gen_resources,
+ '--pixdata=@0@'.format(gdk_pixbuf_pixdata.full_path()),
+ '--loaders=@0@'.format(loaders_cache.full_path()),
diff --git a/graphics/gdk-pixbuf2/patches/patch-thumbnailer_meson.build b/graphics/gdk-pixbuf2/patches/patch-thumbnailer_meson.build
new file mode 100644
index 00000000000..7aa5e9d29ef
--- /dev/null
+++ b/graphics/gdk-pixbuf2/patches/patch-thumbnailer_meson.build
@@ -0,0 +1,14 @@
+$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()),