[csw-devel] SF.net SVN: gar:[4071] csw/mgar/pkg/lua/trunk

wmeler at users.sourceforge.net wmeler at users.sourceforge.net
Mon Mar 30 13:25:40 CEST 2009


Revision: 4071
          http://gar.svn.sourceforge.net/gar/?rev=4071&view=rev
Author:   wmeler
Date:     2009-03-30 11:25:40 +0000 (Mon, 30 Mar 2009)

Log Message:
-----------
add dynamic library patch

Modified Paths:
--------------
    csw/mgar/pkg/lua/trunk/Makefile
    csw/mgar/pkg/lua/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/lua/trunk/files/dynamic.patch

Modified: csw/mgar/pkg/lua/trunk/Makefile
===================================================================
--- csw/mgar/pkg/lua/trunk/Makefile	2009-03-30 08:39:03 UTC (rev 4070)
+++ csw/mgar/pkg/lua/trunk/Makefile	2009-03-30 11:25:40 UTC (rev 4071)
@@ -12,6 +12,7 @@
 MASTER_SITES = http://www.lua.org/ftp/
 DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
 DISTFILES += CSWlua.gspec 
+PATCHFILES = dynamic.patch
 
 #CSWlua.prototype CSWlua.depend
 

Modified: csw/mgar/pkg/lua/trunk/checksums
===================================================================
--- csw/mgar/pkg/lua/trunk/checksums	2009-03-30 08:39:03 UTC (rev 4070)
+++ csw/mgar/pkg/lua/trunk/checksums	2009-03-30 11:25:40 UTC (rev 4071)
@@ -1,2 +1,3 @@
 d0870f2de55d59c1c8419f36e8fac150  download/lua-5.1.4.tar.gz
 41542acbaa142b29bec03d70b5613088  download/CSWlua.gspec
+4f9bc25fb8f12f2ea172a71e7a1360ec  download/dynamic.patch

Added: csw/mgar/pkg/lua/trunk/files/dynamic.patch
===================================================================
--- csw/mgar/pkg/lua/trunk/files/dynamic.patch	                        (rev 0)
+++ csw/mgar/pkg/lua/trunk/files/dynamic.patch	2009-03-30 11:25:40 UTC (rev 4071)
@@ -0,0 +1,76 @@
+--- lua-5.1.3/src/Makefile.orig	2008-04-13 19:21:29.000000000 +0200
++++ lua-5.1.3/src/Makefile	2008-04-13 20:06:30.000000000 +0200
+@@ -23,6 +23,7 @@
+ PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
+ 
+ LUA_A=	liblua.a
++LUA_SO=	liblua.so
+ CORE_O=	lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \
+ 	lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o  \
+ 	lundump.o lvm.o lzio.o
+@@ -33,8 +34,9 @@
+ LUAC_O=	luac.o print.o
+ 
+ ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
+-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
++ALL_T= $(LUA_A) $(LUA_SO) $(LUA_T) $(LUAC_T)
+ ALL_A= $(LUA_A)
++ALL_SO= $(LUA_SO)
+ 
+ default: $(PLAT)
+ 
+@@ -47,10 +49,17 @@
+ 
+ a:	$(ALL_A)
+ 
++so:	$(ALL_SO)
++
+ $(LUA_A): $(CORE_O) $(LIB_O)
+ 	$(AR) $@ $?
+ 	$(RANLIB) $@
+ 
++$(LUA_SO): $(LUA_A)
++	-rm -f $(LUA_SO)
++	$(CC) -h $(LUA_SO).$(V) -G -o $(LUA_SO).$(R) $(CORE_O)
++	ln -s $(LUA_SO).$(R) $(LUA_SO)
++
+ $(LUA_T): $(LUA_O) $(LUA_A)
+ 	$(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
+ 
+--- lua-5.1.3/Makefile.orig	2008-04-13 19:29:27.000000000 +0200
++++ lua-5.1.3/Makefile	2008-04-13 19:52:12.000000000 +0200
+@@ -39,6 +39,8 @@
+ TO_BIN= lua luac
+ TO_INC= lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp
+ TO_LIB= liblua.a
++TO_SOLIB= liblua.so
++TO_SOLIBV= liblua.so.$(R)
+ TO_MAN= lua.1 luac.1
+ 
+ # Lua version and release.
+@@ -48,7 +49,7 @@
+ all:	$(PLAT)
+ 
+ $(PLATS) clean:
+-	cd src && $(MAKE) $@
++	cd src && $(MAKE) V=$(V) R=$(R) $@
+ 
+ test:	dummy
+ 	src/lua test/hello.lua
+@@ -58,6 +59,8 @@
+ 	cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
+ 	cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
+ 	cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
++	cd src && $(INSTALL_EXEC) $(TO_SOLIBV) $(INSTALL_LIB)
++	cd src && ln -s           $(TO_SOLIBV) $(INSTALL_LIB)/$(TO_SOLIB)
+ 	cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
+ 
+ local:
+@@ -103,6 +105,7 @@
+ 	@echo "TO_BIN = $(TO_BIN)"
+ 	@echo "TO_INC = $(TO_INC)"
+ 	@echo "TO_LIB = $(TO_LIB)"
++	@echo "TO_SOLIB = $(TO_SOLIB)"
+ 	@echo "TO_MAN = $(TO_MAN)"
+ 
+ # echo config parameters as Lua code


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list