gcc-6: use $(GNU_ARCH) in manifest
[unleashed-userland.git] / components / runtime / lua / patches / 1.Makefile.patch
blob30005008f4288e60df0abb81a48c9dcf5e95f71f
1 --- Makefile.~1~ 2012-05-17 07:05:54.000000000 -0700
2 +++ Makefile 2012-09-06 17:26:51.006475447 -0700
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_LIB= $(INSTALL_TOP)/lib
19 -INSTALL_MAN= $(INSTALL_TOP)/man/man1
20 +INSTALL_MAN= $(INSTALL_TOP)/share/man/man1
21 INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
22 INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V
23 +INSTALL_DOC= $(INSTALL_TOP)/share/doc/lua
25 # How to install. If your install program does not support "-p", then
26 # you may have to run ranlib on the installed liblua.a.
27 -INSTALL= install -p
28 -INSTALL_EXEC= $(INSTALL) -m 0755
29 -INSTALL_DATA= $(INSTALL) -m 0644
30 +INSTALL= ginstall -p
31 +INSTALL_EXEC= $(INSTALL) -m 0555
32 +INSTALL_DATA= $(INSTALL) -m 0444
34 # If you don't have "install" you can use "cp" instead.
35 # INSTALL= cp -p
36 @@ -36,13 +37,14 @@
37 # == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE =======
39 # Convenience platforms targets.
40 -PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
41 +PLATS= solaris
43 # What to install.
44 TO_BIN= lua luac
45 -TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
46 -TO_LIB= liblua.a
47 +TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
48 +TO_LIB= liblua.so
49 TO_MAN= lua.1 luac.1
50 +TO_DOC= contents.html osi-certified-72x60.png logo.gif lua.css manual.css manual.html readme.html
52 # Lua version and release.
53 V= 5.2
54 @@ -58,11 +60,13 @@
55 src/lua -v
57 install: dummy
58 - cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
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 && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
65 + cd doc && $(INSTALL_DATA) $(TO_DOC) $(INSTALL_DOC)
68 uninstall:
69 cd src && cd $(INSTALL_BIN) && $(RM) $(TO_BIN)