perl/Test-Simple: update to 1.302205
[oi-userland.git] / components / runtime / lua-53 / patches / 01-Makefile.patch
blobb6a04828968a8db3d96fe85d0d0a6379c25fac11
1 --- lua-5.3.2.orig/Makefile 2015-11-18 22:00:04.000000000 +0300
2 +++ lua-5.3.2/Makefile 2016-10-06 11:40:25.265493753 +0300
3 @@ -4,25 +4,26 @@
4 # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
6 # Your platform. See PLATS for possible values.
7 -PLAT= none
8 +PLAT= solaris
10 # Where to install. The installation starts in the src and doc directories,
11 # so take care if INSTALL_TOP is not an absolute path. See the local target.
12 # You may want to make INSTALL_LMOD and INSTALL_CMOD consistent with
13 # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h.
14 -INSTALL_TOP= /usr/local
15 +INSTALL_TOP= $(ROOT)/usr
16 INSTALL_BIN= $(INSTALL_TOP)/bin
17 -INSTALL_INC= $(INSTALL_TOP)/include
18 +INSTALL_INC= $(INSTALL_TOP)/include/lua$V
19 INSTALL_LIB= $(INSTALL_TOP)/lib
20 -INSTALL_MAN= $(INSTALL_TOP)/man/man1
21 +INSTALL_MAN= $(INSTALL_TOP)/share/man/man1
22 INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
23 INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V
24 +INSTALL_DOC= $(INSTALL_TOP)/share/doc/lua$V
26 # How to install. If your install program does not support "-p", then
27 # you may have to run ranlib on the installed liblua.a.
28 -INSTALL= install -p
29 -INSTALL_EXEC= $(INSTALL) -m 0755
30 -INSTALL_DATA= $(INSTALL) -m 0644
31 +INSTALL= ginstall -p
32 +INSTALL_EXEC= $(INSTALL) -m 0555
33 +INSTALL_DATA= $(INSTALL) -m 0444
35 # If you don't have "install" you can use "cp" instead.
36 # INSTALL= cp -p
37 @@ -39,10 +40,11 @@
38 PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris
40 # What to install.
41 -TO_BIN= lua luac
42 +TO_BIN= lua$V luac$V
43 TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
44 -TO_LIB= liblua.a
45 -TO_MAN= lua.1 luac.1
46 +TO_LIB= liblua$V.so
47 +TO_MAN= lua$V.1 luac$V.1
48 +TO_DOC= contents.html osi-certified-72x60.png logo.gif lua.css manual.css manual.html readme.html
50 # Lua version and release.
51 V= 5.3
52 @@ -57,12 +59,14 @@
53 test: dummy
54 src/lua -v
56 -install: dummy
57 - cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
58 +install: dummy
59 + cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_DOC) $(INSTALL_MAN) $(INSTALL_TEST)
60 cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
61 cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
62 - cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
63 + cd src && $(INSTALL_EXEC) $(TO_LIB) $(INSTALL_LIB)
64 + cd doc && cp lua.1 lua$V.1 && cp luac.1 luac$V.1
65 cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
66 + cd doc && $(INSTALL_DATA) $(TO_DOC) $(INSTALL_DOC)
68 uninstall:
69 cd src && cd $(INSTALL_BIN) && $(RM) $(TO_BIN)