From 5d2ef89ecfbcf3ce89408739d58914b625d0af22 Mon Sep 17 00:00:00 2001 From: minskim Date: Mon, 13 Jan 2020 07:20:17 +0000 Subject: graphics/giflib: Fix install_name on Darwin --- graphics/giflib/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/graphics/giflib/Makefile b/graphics/giflib/Makefile index b53347f4dbb..7916531cfdf 100644 --- a/graphics/giflib/Makefile +++ b/graphics/giflib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.51 2020/01/11 13:33:31 schmonz Exp $ +# $NetBSD: Makefile,v 1.52 2020/01/13 07:20:17 minskim Exp $ .include "Makefile.common" PKGREVISION= 1 @@ -10,4 +10,15 @@ CONFLICTS+= libungif-[0-9]* INSTALL_TARGET= install-include INSTALL_TARGET+= install-lib +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "Darwin" +.PHONY: fix-darwin-install-name +post-install: fix-darwin-install-name +fix-darwin-install-name: +. for lib in libgif.7.2.0.dylib libgifutil.dylib + install_name_tool -id ${PREFIX}/lib/${lib} ${DESTDIR}${PREFIX}/lib/${lib} +. endfor +.endif + .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3