dev-lua/luaexpat: bump to 1.3.3
[lua-alt-overlay.git] / dev-lang / lua / files / lua-5.2.4_make.patch
blobc184f7c05b1830b207f4f20a8c31dc70d62dd181
1 --- lua-5.1.1.orig/Makefile 2006-06-02 12:53:38.000000000 +0200
2 +++ lua-5.1.1/Makefile 2006-11-16 02:16:53.000000000 +0100
3 @@ -11,7 +11,7 @@
4 # so take care if INSTALL_TOP is not an absolute path.
5 INSTALL_TOP= /usr/local
6 INSTALL_BIN= $(INSTALL_TOP)/bin
7 -INSTALL_INC= $(INSTALL_TOP)/include
8 +INSTALL_INC= $(INSTALL_TOP)/include/lua$V
9 INSTALL_LIB= $(INSTALL_TOP)/lib
10 INSTALL_MAN= $(INSTALL_TOP)/man/man1
12 @@ -127,3 +127,18 @@
13 .PHONY: all $(PLATS) clean install local none dummy echo pecho lecho newer
15 # (end of Makefile)
17 +# Use libtool for binary installs, etc.
19 +export V
20 +export LIBTOOL = $(EROOT)/usr/bin/libtool --quiet --tag=CC
21 +# See libtool manual about how to set this
23 +gentoo_clean:
24 + cd src; $(MAKE) $@
26 +gentoo_install:
27 + mkdir -p $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB)
28 + cd src; $(LIBTOOL) --mode=install $(INSTALL_EXEC) lua$V luac$V $(INSTALL_BIN)
29 + cd src; $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
30 + cd src; $(LIBTOOL) --mode=install $(INSTALL_DATA) liblua$V.la $(INSTALL_LIB)
31 --- lua-5.1.1.orig/src/Makefile 2006-03-22 01:41:49.000000000 +0100
32 +++ lua-5.1.1/src/Makefile 2006-11-16 02:10:27.000000000 +0100
33 @@ -39,1 +39,1 @@
34 -LUA_T= lua
35 +LUA_T= lua$V
36 @@ -42,1 +42,1 @@
37 -LUAC_T= luac
38 +LUAC_T= luac$V
39 @@ -54,1 +54,1 @@
40 -$(LUA_T): $(LUA_O) $(LUA_A)
41 +origin$(LUA_T): $(LUA_O) $(LUA_A)
42 @@ -57,1 +57,1 @@
43 -$(LUAC_T): $(LUAC_O) $(LUA_A)
44 +origin$(LUAC_T): $(LUAC_O) $(LUA_A)
45 @@ -185,3 +185,30 @@
46 lzio.o: lzio.c lua.h luaconf.h llimits.h lmem.h lstate.h lobject.h ltm.h \
47 lzio.h
50 +export LIBTOOL = $(EROOT)/usr/bin/libtool --quiet --tag=CC
51 +export LIB_VERSION = 6:1:1
53 +# The following rules use libtool for compiling and linking in order to
54 +# provide shared library support.
56 +LIB_NAME = liblua$V.la
57 +LIB_OBJS = $(CORE_O:.o=.lo) $(LIB_O:.o=.lo)
59 +%.lo %.o: %.c
60 + $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
62 +$(LIB_NAME): $(LIB_OBJS)
63 + $(LIBTOOL) --mode=link $(CC) -version-info $(LIB_VERSION) \
64 + -rpath $(RPATH) $(LDFLAGS) -o $(LIB_NAME) $(LIB_OBJS) $(LIB_LIBS)
66 +$(LUA_T): $(LUA_O:.o=.lo) $(LIB_NAME)
67 + $(LIBTOOL) --mode=link $(CC) -export-dynamic $(LDFLAGS) -o $@ $(LUA_O:.o=.lo) $(LIB_NAME) $(LUA_LIBS)
69 +$(LUAC_T): $(LUAC_O:.o=.lo) $(LIB_NAME)
70 + $(LIBTOOL) --mode=link $(CC) -static $(LDFLAGS) -o $@ $(LUAC_O:.o=.lo) $(LIB_NAME)
72 +gentoo_clean:
73 + $(LIBTOOL) --mode=clean $(RM) $(ALL_O:.o=.lo) $(LIB_NAME) lua$V luac$V
75 +gentoo_all: $(LIB_NAME) $(LUA_T) $(LUAC_T)