freebsd-ports/net/luasocket/files/patch-Makefile
Sunpoet Po-Chuan Hsieh 501670ee99 - Allow build with lua52 and lua53
- Space/tab fix

PR:		200407
Submitted by:	sunpoet (myself)
Approved by:	maintainer (timeout, 4 weeks)
2015-06-21 17:12:32 +00:00

30 lines
735 B
Text

--- Makefile.orig 2013-06-14 11:27:32 UTC
+++ Makefile
@@ -23,21 +23,15 @@ print:
test:
lua test/hello.lua
-install-both:
- $(MAKE) clean
- @cd src; $(MAKE) $(PLAT) LUAV=5.1
- @cd src; $(MAKE) install LUAV=5.1
+install:
$(MAKE) clean
- @cd src; $(MAKE) $(PLAT) LUAV=5.2
- @cd src; $(MAKE) install LUAV=5.2
+ @cd src; $(MAKE) $(PLAT) LUAV=$(LUA_VER)
+ @cd src; $(MAKE) install LUAV=$(LUA_VER)
-install-both-unix:
- $(MAKE) clean
- @cd src; $(MAKE) $(PLAT) LUAV=5.1
- @cd src; $(MAKE) install-unix LUAV=5.1
+install-unix:
$(MAKE) clean
- @cd src; $(MAKE) $(PLAT) LUAV=5.2
- @cd src; $(MAKE) install-unix LUAV=5.2
+ @cd src; $(MAKE) $(PLAT) LUAV=$(LUA_VER)
+ @cd src; $(MAKE) install-unix LUAV=$(LUA_VER)
.PHONY: test