pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/taglib taglib: fixup scuffed dylibs with install...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d4f5c9d64611
branches:  trunk
changeset: 387633:d4f5c9d64611
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Wed Nov 02 22:54:39 2022 +0000

description:
taglib: fixup scuffed dylibs with install_name_tool in post-install

diffstat:

 audio/taglib/Makefile |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 65f159f420d1 -r d4f5c9d64611 audio/taglib/Makefile
--- a/audio/taglib/Makefile     Wed Nov 02 22:39:29 2022 +0000
+++ b/audio/taglib/Makefile     Wed Nov 02 22:54:39 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.44 2022/11/02 22:39:29 tnn Exp $
+# $NetBSD: Makefile,v 1.45 2022/11/02 22:54:39 tnn Exp $
 
 DISTNAME=      taglib-1.13
 CATEGORIES=    audio
@@ -45,5 +45,18 @@
 CFLAGS+=               -march=i486
 .endif
 
+.if ${OPSYS} == "Darwin"
+post-install:
+       install_name_tool -id                           \
+         ${PREFIX}/lib/libtag.1.dylib                  \
+         ${DESTDIR}${PREFIX}/lib/libtag.1.19.0.dylib
+       install_name_tool -id                           \
+         ${PREFIX}/lib/libtag_c.0.dylib                \
+         ${DESTDIR}${PREFIX}/lib/libtag_c.0.0.0.dylib  \
+         -change                                       \
+         lib/libtag.1.dylib                            \
+         ${PREFIX}/lib/libtag.1.dylib
+.endif
+
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index