summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/giflib/Makefile13
1 files changed, 12 insertions, 1 deletions
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"