ports/126659: [patch] lang/tolua++: build shared library
Tim Niemueller
tim at niemueller.de
Tue Aug 19 15:00:11 UTC 2008
>Number: 126659
>Category: ports
>Synopsis: [patch] lang/tolua++: build shared library
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Aug 19 15:00:11 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Tim Niemueller
>Release: 7
>Organization:
>Environment:
FreeBSD barbossa 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
The tolua++ port only builds the static library. With a trivial patch the shared library is built as well.
>How-To-Repeat:
>Fix:
Attached patch causes the shared library to be built *additionally* to the static library (put into files/patch-makeso). Additionally required patches for installation:
--- Makefile~ 2008-08-11 00:42:41.000000000 +0200
+++ Makefile 2008-08-19 16:41:03.000000000 +0200
@@ -31,5 +31,6 @@
${LN} -sf ${LUA_SUBDIR}/tolua++ ${PREFIX}/bin/tolua++-${LUA_VER}
${INSTALL_DATA} ${WRKSRC}/include/tolua++.h ${LUA_INCDIR}
${INSTALL_DATA} ${WRKSRC}/lib/libtolua++.a ${LUA_LIBDIR}
+ ${INSTALL_DATA} ${WRKSRC}/lib/libtolua++.so ${LUA_LIBDIR}
.include <bsd.port.mk>
--- pkg-plist~ 2008-08-11 00:42:41.000000000 +0200
+++ pkg-plist 2008-08-19 16:40:50.000000000 +0200
@@ -1,4 +1,5 @@
%%LUA_BINDIR%%/tolua++
bin/tolua++-%%LUA_VER%%
%%LUA_LIBDIR%%/libtolua++.a
+%%LUA_LIBDIR%%/libtolua++.so
%%LUA_INCDIR%%/tolua++.h
Patch attached with submission follows:
--- src/lib/SCsub.orig 2005-11-28 14:51:15.000000000 +0100
+++ src/lib/SCsub 2008-08-19 16:11:40.000000000 +0200
@@ -9,5 +9,6 @@
'tolua_to.c',
]
-env.lib_target = env.Library('#/lib/'+env['tolua_lib'], sources)
+env.lib_target = env.Library('#/lib/'+env['tolua_lib'], sources)
+env.lib_target += env.SharedLibrary('#/lib/'+env['tolua_lib'], sources)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list