summaryrefslogtreecommitdiff
path: root/graphics/gdk-pixbuf2/Makefile
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2021-11-17 15:14:42 +0000
committerschmonz <schmonz@pkgsrc.org>2021-11-17 15:14:42 +0000
commit97eb0d716d36de642a795bfd3b6b9d2be6aaf4a1 (patch)
tree4a7cb6a2af773bcc9645f1bf5719135c0be83477 /graphics/gdk-pixbuf2/Makefile
parentebe5ed95bdb2980cbcda4393a6a9b401b2fabe3e (diff)
downloadpkgsrc-97eb0d716d36de642a795bfd3b6b9d2be6aaf4a1.tar.gz
On macOS, set DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH to fix build.
Diffstat (limited to 'graphics/gdk-pixbuf2/Makefile')
-rw-r--r--graphics/gdk-pixbuf2/Makefile15
1 files changed, 14 insertions, 1 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