pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/archivers/lua-zlib lua-zlib: fix shared object id on D...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/99b08f0e0158
branches:  trunk
changeset: 388623:99b08f0e0158
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Nov 23 16:25:53 2022 +0000

description:
lua-zlib: fix shared object id on Darwin

diffstat:

 archivers/lua-zlib/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 042f6dc41594 -r 99b08f0e0158 archivers/lua-zlib/Makefile
--- a/archivers/lua-zlib/Makefile       Wed Nov 23 16:18:32 2022 +0000
+++ b/archivers/lua-zlib/Makefile       Wed Nov 23 16:25:53 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2020/12/19 09:17:45 nia Exp $
+# $NetBSD: Makefile,v 1.7 2022/11/23 16:25:53 adam Exp $
 
 DISTNAME=      lua-zlib-1.2
 PKGNAME=       ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
@@ -26,8 +26,13 @@
 
 BUILDLINK_TRANSFORM.Darwin+=   rm:-bundle
 
+.include "../../mk/bsd.prefs.mk"
+
 do-install:
        ${INSTALL_LIB} ${WRKSRC}/zlib.so ${DESTDIR}${PREFIX}/${LUA_CDIR}
+.if ${OPSYS} == "Darwin"
+       install_name_tool -id ${PREFIX}/${LUA_CDIR}/zlib.so ${DESTDIR}${PREFIX}/${LUA_CDIR}/zlib.so
+.endif
 
 .include "../../lang/lua/module.mk"
 .include "../../devel/zlib/buildlink3.mk"



Home | Main Index | Thread Index | Old Index