diff options
author | schmonz <schmonz@pkgsrc.org> | 2021-11-17 15:14:42 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2021-11-17 15:14:42 +0000 |
commit | 97eb0d716d36de642a795bfd3b6b9d2be6aaf4a1 (patch) | |
tree | 4a7cb6a2af773bcc9645f1bf5719135c0be83477 /graphics | |
parent | ebe5ed95bdb2980cbcda4393a6a9b401b2fabe3e (diff) | |
download | pkgsrc-97eb0d716d36de642a795bfd3b6b9d2be6aaf4a1.tar.gz |
On macOS, set DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH to fix build.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/gdk-pixbuf2/Makefile | 15 | ||||
-rw-r--r-- | graphics/gdk-pixbuf2/distinfo | 8 | ||||
-rw-r--r-- | graphics/gdk-pixbuf2/patches/patch-gdk-pixbuf_meson.build | 8 | ||||
-rw-r--r-- | graphics/gdk-pixbuf2/patches/patch-tests_meson.build | 8 | ||||
-rw-r--r-- | graphics/gdk-pixbuf2/patches/patch-thumbnailer_meson.build | 8 |
5 files changed, 30 insertions, 17 deletions
diff --git a/graphics/gdk-pixbuf2/Makefile b/graphics/gdk-pixbuf2/Makefile index 0c817c14ed7..6b906e382b5 100644 --- a/graphics/gdk-pixbuf2/Makefile +++ b/graphics/gdk-pixbuf2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.50 2021/11/07 17:00:25 wiz Exp $ +# $NetBSD: Makefile,v 1.51 2021/11/17 15:14:42 schmonz Exp $ DISTNAME= gdk-pixbuf-2.42.6 PKGNAME= ${DISTNAME:S/pixbuf/pixbuf2/} @@ -21,6 +21,19 @@ MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/output/gdk-pixbuf # For Darwin MAKE_ENV+= DYLD_LIBRARY_PATH=${WRKSRC}/output/gdk-pixbuf +.include "../../mk/bsd.prefs.mk" + +SUBST_CLASSES+= dyld +SUBST_STAGE.dyld= pre-configure +SUBST_FILES.dyld= gdk-pixbuf/meson.build \ + tests/meson.build \ + thumbnailer/meson.build +.if ${OPSYS} == "Darwin" +SUBST_SED.dyld= -e 's|@LD_LIBRARY_PATH@|DYLD_LIBRARY_PATH|g' +.else +SUBST_SED.dyld= -e 's|@LD_LIBRARY_PATH@|LD_LIBRARY_PATH|g' +.endif + MESON_ARGS+= -D installed_tests=false PKGCONFIG_OVERRIDE_STAGE= pre-install PKGCONFIG_OVERRIDE= output/meson-private/gdk-pixbuf-2.0.pc diff --git a/graphics/gdk-pixbuf2/distinfo b/graphics/gdk-pixbuf2/distinfo index 9645c493876..188ba874e3e 100644 --- a/graphics/gdk-pixbuf2/distinfo +++ b/graphics/gdk-pixbuf2/distinfo @@ -1,9 +1,9 @@ -$NetBSD: distinfo,v 1.49 2021/10/26 10:46:09 nia Exp $ +$NetBSD: distinfo,v 1.50 2021/11/17 15:14:42 schmonz Exp $ BLAKE2s (gdk-pixbuf-2.42.6.tar.xz) = 523935fc861a24252a741e5544afebb2d7dc5f6150632831099724d97728c293 SHA512 (gdk-pixbuf-2.42.6.tar.xz) = 02e6d89de6cb6c9768d5173dada88c038e2454b4345ebc6f7b012d484303c08e53b58f085e872290555e1ccb74a478fa6cef4623a75f2e1f05c27bfc4e986f4d Size (gdk-pixbuf-2.42.6.tar.xz) = 7708484 bytes SHA1 (patch-gdk-pixbuf_gdk-pixbuf-scaled-anim.c) = a9d2436711b1a1c3bb58beef0df5e485ad6cbe7d -SHA1 (patch-gdk-pixbuf_meson.build) = 58b53744e4cc846ddc9492b86d8964c6c19ed5e2 -SHA1 (patch-tests_meson.build) = 942b0dcfbc87ee335fb871a3d8811b5bade0c436 -SHA1 (patch-thumbnailer_meson.build) = fb9b7523663ac595ef66c8cf41837a733ac44216 +SHA1 (patch-gdk-pixbuf_meson.build) = d54c4f1c5c045c3988fc2bbac19d2aac3e32de89 +SHA1 (patch-tests_meson.build) = 6da53b4e168a20dcc546840e4fbd8fc7ac8f03aa +SHA1 (patch-thumbnailer_meson.build) = c4a5abaced448add0c28f3b391b9db86b4299c02 diff --git a/graphics/gdk-pixbuf2/patches/patch-gdk-pixbuf_meson.build b/graphics/gdk-pixbuf2/patches/patch-gdk-pixbuf_meson.build index 0936f0c86f6..0efa1d23277 100644 --- a/graphics/gdk-pixbuf2/patches/patch-gdk-pixbuf_meson.build +++ b/graphics/gdk-pixbuf2/patches/patch-gdk-pixbuf_meson.build @@ -1,14 +1,14 @@ -$NetBSD: patch-gdk-pixbuf_meson.build,v 1.1 2020/02/20 03:35:35 brook Exp $ +$NetBSD: patch-gdk-pixbuf_meson.build,v 1.2 2021/11/17 15:14:42 schmonz 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.orig 2021-04-09 14:44:51.000000000 +0000 +++ gdk-pixbuf/meson.build -@@ -316,6 +316,7 @@ if not meson.is_cross_build() +@@ -355,6 +355,7 @@ if not meson.is_cross_build() output: 'loaders.cache', capture: true, command: [ -+ 'env', 'LD_LIBRARY_PATH=' + meson.current_build_dir() + '/../gdk-pixbuf', ++ '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 index e738b9e3151..3d34bf74c0e 100644 --- a/graphics/gdk-pixbuf2/patches/patch-tests_meson.build +++ b/graphics/gdk-pixbuf2/patches/patch-tests_meson.build @@ -1,14 +1,14 @@ -$NetBSD: patch-tests_meson.build,v 1.2 2021/09/19 08:06:20 nia Exp $ +$NetBSD: patch-tests_meson.build,v 1.3 2021/11/17 15:14:42 schmonz Exp $ Add LD_LIBRARY_PATH so uninstalled programs find newly built shared libraries. ---- tests/meson.build.orig 2021-04-09 14:44:51.540196000 +0000 +--- tests/meson.build.orig 2021-04-09 14:44:51.000000000 +0000 +++ tests/meson.build @@ -12,6 +12,7 @@ if enabled_loaders.contains('png') and h input: 'resources.gresource.xml', output: 'resources.c', command: [ -+ 'env', 'LD_LIBRARY_PATH=' + meson.current_build_dir() + '/../gdk-pixbuf', ++ 'env', '@LD_LIBRARY_PATH@=' + meson.current_build_dir() + '/../gdk-pixbuf', gen_resources, '--glib-compile-resources=@0@'.format(glib_compile_resources.full_path()), '--pixdata=@0@'.format(gdk_pixbuf_pixdata.full_path()), @@ -16,7 +16,7 @@ Add LD_LIBRARY_PATH so uninstalled programs find newly built shared libraries. input: 'resources.gresource.xml', output: 'resources.h', command: [ -+ 'env', 'LD_LIBRARY_PATH=' + meson.current_build_dir() + '/../gdk-pixbuf', ++ 'env', '@LD_LIBRARY_PATH@=' + meson.current_build_dir() + '/../gdk-pixbuf', gen_resources, '--glib-compile-resources=@0@'.format(glib_compile_resources.full_path()), '--pixdata=@0@'.format(gdk_pixbuf_pixdata.full_path()), diff --git a/graphics/gdk-pixbuf2/patches/patch-thumbnailer_meson.build b/graphics/gdk-pixbuf2/patches/patch-thumbnailer_meson.build index 7aa5e9d29ef..b76ab6c9acc 100644 --- a/graphics/gdk-pixbuf2/patches/patch-thumbnailer_meson.build +++ b/graphics/gdk-pixbuf2/patches/patch-thumbnailer_meson.build @@ -1,14 +1,14 @@ -$NetBSD: patch-thumbnailer_meson.build,v 1.1 2020/02/20 03:35:35 brook Exp $ +$NetBSD: patch-thumbnailer_meson.build,v 1.2 2021/11/17 15:14:42 schmonz 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.orig 2021-04-09 14:44:51.000000000 +0000 +++ thumbnailer/meson.build -@@ -16,6 +16,7 @@ custom_target('thumbnailer', +@@ -17,6 +17,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', ++ '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()), |