diff options
author | minskim <minskim@pkgsrc.org> | 2020-01-13 07:20:17 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2020-01-13 07:20:17 +0000 |
commit | 5d2ef89ecfbcf3ce89408739d58914b625d0af22 (patch) | |
tree | 28067dd97751ff854794f42f9a23a6ea493edfa4 | |
parent | 2e7e31e97f99f7ecf9a9a459aa1b17464af310fa (diff) | |
download | pkgsrc-5d2ef89ecfbcf3ce89408739d58914b625d0af22.tar.gz |
graphics/giflib: Fix install_name on Darwin
-rw-r--r-- | graphics/giflib/Makefile | 13 |
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" |