aboutsummaryrefslogtreecommitdiff
path: root/devel/lua50-posix/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/lua50-posix/files/patch-Makefile')
-rw-r--r--devel/lua50-posix/files/patch-Makefile24
1 files changed, 17 insertions, 7 deletions
diff --git a/devel/lua50-posix/files/patch-Makefile b/devel/lua50-posix/files/patch-Makefile
index 8c8f05bddff7..b0eb70640eb4 100644
--- a/devel/lua50-posix/files/patch-Makefile
+++ b/devel/lua50-posix/files/patch-Makefile
@@ -1,20 +1,30 @@
---- Makefile.orig Mon Mar 27 12:25:04 2006
-+++ Makefile Mon Mar 27 12:43:24 2006
-@@ -1,7 +1,7 @@
+--- Makefile.orig Wed Nov 5 21:26:49 2003
++++ Makefile Mon Aug 7 00:38:38 2006
+@@ -1,13 +1,13 @@
# makefile for POSIX library for Lua
# change these to reflect your Lua installation
-LUA= /tmp/lhf/lua-5.0
+-LUAINC= $(LUA)/include
+-LUALIB= $(LUA)/lib
+-LUABIN= $(LUA)/bin
+LUA= ${PREFIX}
- LUAINC= $(LUA)/include
- LUALIB= $(LUA)/lib
- LUABIN= $(LUA)/bin
++LUAINC= $(LUA_INCDIR)
++LUALIB= $(LUA_LIBDIR)
++LUABIN= $(LUA_BINDIR)
+
+ # no need to change anything below here
+-CFLAGS= -fPIC $(INCS) $(WARN) -O2 $G
++CFLAGS+= -fPIC $(INCS) $(WARN) -O2 $G
+ WARN= -pedantic -Wall
+ INCS= -I$(LUAINC)
+
@@ -21,7 +21,7 @@
all: test
test: $T
- $(LUABIN)/lua -l$(MYNAME) test.lua
-+ LD_PRELOAD=${PREFIX}/lib/liblua.so:${PREFIX}/lib/liblualib.so $(LUABIN)/lua -l$(MYNAME) test.lua
++ LD_PRELOAD=${LUA_LIBDIR}/liblua.so:${LUA_LIBDIR}/liblualib.so $(LUABIN)/lua -l$(MYNAME) test.lua
$T: $(OBJS)
$(CC) -o $@ -shared $(OBJS)