pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/lua-bitlib lua-bitlib: fix build on OS X by usin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/297dbdf5bcd2
branches:  trunk
changeset: 339072:297dbdf5bcd2
user:      maya <maya%pkgsrc.org@localhost>
date:      Thu Sep 05 18:54:37 2019 +0000

description:
lua-bitlib: fix build on OS X by using libtool.

it will use the portable variants of arguments for us.
bump PKGREVISION.

>From clement bouvier in PR pkg/54501

diffstat:

 devel/lua-bitlib/Makefile |  16 ++++++++--------
 devel/lua-bitlib/PLIST    |   4 ++--
 2 files changed, 10 insertions(+), 10 deletions(-)

diffs (45 lines):

diff -r 7d327b64aeb1 -r 297dbdf5bcd2 devel/lua-bitlib/Makefile
--- a/devel/lua-bitlib/Makefile Thu Sep 05 16:09:09 2019 +0000
+++ b/devel/lua-bitlib/Makefile Thu Sep 05 18:54:37 2019 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2018/11/20 17:26:20 maya Exp $
+# $NetBSD: Makefile,v 1.2 2019/09/05 18:54:37 maya Exp $
 
 DISTNAME=              bitlib-5.3.0
 PKGNAME=               ${LUA_PKGPREFIX}-${DISTNAME}
+PKGREVISION=           1
 GITHUB_PROJECT=                lua-compat-5.2
 GITHUB_TAG=            ${DISTNAME}
 MASTER_SITES=          ${MASTER_SITE_GITHUB:=keplerproject/}
@@ -16,17 +17,16 @@
 LUA_VERSIONS_ACCEPTED= 51
 
 NO_CONFIGURE=          yes
+USE_LIBTOOL=           yes
 
-INSTALLATION_DIRS+=    ${LUA_CDIR}/bit32
-
-.include "../../lang/lua/module.mk"
+INSTALLATION_DIRS+=    ${LUA_CDIR}
 
 do-build:
-       ${CC} ${CFLAGS} -fPIC -c -I ${WRKSRC}/c-api ${WRKSRC}/lbitlib.c -o ${WRKSRC}/bit32.o
-       ${LD} ${LDFLAGS} -fPIC -shared ${WRKSRC}/bit32.o -o ${WRKSRC}/bit32.so
+       ${LIBTOOL} --tag=CC --mode=compile ${CC} ${CFLAGS} -fPIC -I ${WRKSRC}/c-api -c -o ${WRKSRC}/bit32.lo ${WRKSRC}/lbitlib.c
+       ${LIBTOOL} --tag=CC --mode=link ${CC} ${LDFLAGS} -rpath ${PREFIX}/${LUA_CDIR} -shared -module -avoid-version -export-dynamic -o ${WRKSRC}/bit32.la ${WRKSRC}/bit32.lo
 
 do-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/bit32.so \
-                       ${DESTDIR}${PREFIX}/${LUA_CDIR}
+       ${LIBTOOL} --mode=install ${INSTALL_DATA} ${WRKSRC}/bit32.la ${DESTDIR}${PREFIX}/${LUA_CDIR}
 
+.include "../../lang/lua/module.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 7d327b64aeb1 -r 297dbdf5bcd2 devel/lua-bitlib/PLIST
--- a/devel/lua-bitlib/PLIST    Thu Sep 05 16:09:09 2019 +0000
+++ b/devel/lua-bitlib/PLIST    Thu Sep 05 18:54:37 2019 +0000
@@ -1,2 +1,2 @@
-@comment $NetBSD: PLIST,v 1.1 2018/11/20 17:26:20 maya Exp $
-${LUA_CDIR}/bit32.so
+@comment $NetBSD: PLIST,v 1.2 2019/09/05 18:54:37 maya Exp $
+${LUA_CDIR}/bit32.la



Home | Main Index | Thread Index | Old Index