how-lix-os-pkgs/lua/default/patch

54 lines
1.3 KiB
Plaintext

--- a/Makefile 2020-04-15 12:55:07.000000000 +0000
+++ b/Makefile 2020-08-31 19:31:12.320000000 +0000
@@ -10,7 +10,7 @@
# so take care if INSTALL_TOP is not an absolute path. See the local target.
# You may want to make INSTALL_LMOD and INSTALL_CMOD consistent with
# LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h.
-INSTALL_TOP= /usr/local
+INSTALL_TOP?=
INSTALL_BIN= $(INSTALL_TOP)/bin
INSTALL_INC= $(INSTALL_TOP)/include
INSTALL_LIB= $(INSTALL_TOP)/lib
@@ -20,7 +20,7 @@
# How to install. If your install program does not support "-p", then
# you may have to run ranlib on the installed liblua.a.
-INSTALL= install -p
+INSTALL?= install -p
INSTALL_EXEC= $(INSTALL) -m 0755
INSTALL_DATA= $(INSTALL) -m 0644
#
--- a/src/luaconf.h 2020-06-18 14:25:54.000000000 +0000
+++ b/src/luaconf.h 2020-08-31 19:35:08.660000000 +0000
@@ -227,7 +227,10 @@
#else /* }{ */
-#define LUA_ROOT "/usr/local/"
+#if !defined(LUA_ROOT)
+#define LUA_ROOT "/"
+#endif
+
#define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/"
#define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/"
--- a/src/Makefile 2020-04-15 13:00:29.000000000 +0000
+++ b/src/Makefile 2020-10-23 18:41:54.130000000 +0000
@@ -16,12 +16,12 @@
RM= rm -f
UNAME= uname
-SYSCFLAGS=
-SYSLDFLAGS=
+#SYSCFLAGS=
+#SYSLDFLAGS=
SYSLIBS=
-MYCFLAGS=
-MYLDFLAGS=
+#MYCFLAGS=
+#MYLDFLAGS=
MYLIBS=
MYOBJS=