python/manuel: update to 1.13.0
[oi-userland.git] / components / runtime / lua-54 / patches / 03-Makefile.patch
blobc7270fd28f03e6ef03bd4f318abbbbea7c9aa658
1 --- lua-5.4.6/Makefile 2023-05-02 22:06:08.000000000 +0200
2 +++ lua-5.4.6/Makefile.new 2023-10-02 22:46:58.368043987 +0200
3 @@ -10,19 +10,20 @@
4 # so take care if INSTALL_TOP is not an absolute path. See the local target.
5 # You may want to make INSTALL_LMOD and INSTALL_CMOD consistent with
6 # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h.
7 -INSTALL_TOP= /usr/local
8 +INSTALL_TOP= $(ROOT)/usr
9 INSTALL_BIN= $(INSTALL_TOP)/bin
10 -INSTALL_INC= $(INSTALL_TOP)/include
11 +INSTALL_INC= $(INSTALL_TOP)/include/lua$V
12 INSTALL_LIB= $(INSTALL_TOP)/lib
13 -INSTALL_MAN= $(INSTALL_TOP)/man/man1
14 +INSTALL_MAN= $(INSTALL_TOP)/share/man/man1
15 INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
16 INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V
17 +INSTALL_DOC= $(INSTALL_TOP)/share/doc/lua$V
19 # How to install. If your install program does not support "-p", then
20 # you may have to run ranlib on the installed liblua.a.
21 -INSTALL= install -p
22 -INSTALL_EXEC= $(INSTALL) -m 0755
23 -INSTALL_DATA= $(INSTALL) -m 0644
24 +INSTALL= ginstall -p
25 +INSTALL_EXEC= $(INSTALL) -m 0555
26 +INSTALL_DATA= $(INSTALL) -m 0444
28 # If you don't have "install" you can use "cp" instead.
29 # INSTALL= cp -p
30 @@ -39,10 +40,11 @@
31 PLATS= guess aix bsd c89 freebsd generic ios linux linux-readline macosx mingw posix solaris
33 # What to install.
34 -TO_BIN= lua luac
35 +TO_BIN= lua$V luac$V
36 TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
37 -TO_LIB= liblua.a
38 -TO_MAN= lua.1 luac.1
39 +TO_LIB= liblua$V.so
40 +TO_MAN= lua$V.1 luac$V.1
41 +TO_DOC= contents.html osi-certified-72x60.png logo.gif lua.css manual.css manual.html readme.html
43 # Lua version and release.
44 V= 5.4
45 @@ -55,11 +57,13 @@
46 @cd src && $(MAKE) $@
48 install: dummy
49 - cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
50 + cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_DOC) $(INSTALL_MAN) $(INSTALL_TEST)
51 cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
52 cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
53 - cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
54 + cd src && $(INSTALL_EXEC) $(TO_LIB) $(INSTALL_LIB)
55 + cd doc && cp lua.1 lua$V.1 && cp luac.1 luac$V.1
56 cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
57 + cd doc && $(INSTALL_DATA) $(TO_DOC) $(INSTALL_DOC)
59 uninstall:
60 cd src && cd $(INSTALL_BIN) && $(RM) $(TO_BIN)