patch-Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. $OpenBSD: patch-Makefile,v 1.1.1.1 2015/01/14 20:06:36 jturner Exp $
  2. --- Makefile.orig Wed Oct 29 19:14:41 2014
  3. +++ Makefile Mon Jan 12 14:15:22 2015
  4. @@ -4,15 +4,15 @@
  5. # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
  6. # Your platform. See PLATS for possible values.
  7. -PLAT= none
  8. +PLAT= bsd
  9. # Where to install. The installation starts in the src and doc directories,
  10. # so take care if INSTALL_TOP is not an absolute path. See the local target.
  11. # You may want to make INSTALL_LMOD and INSTALL_CMOD consistent with
  12. # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h.
  13. -INSTALL_TOP= /usr/local
  14. +INSTALL_TOP= $(PREFIX)
  15. INSTALL_BIN= $(INSTALL_TOP)/bin
  16. -INSTALL_INC= $(INSTALL_TOP)/include
  17. +INSTALL_INC= $(INSTALL_TOP)/include/lua-5.3
  18. INSTALL_LIB= $(INSTALL_TOP)/lib
  19. INSTALL_MAN= $(INSTALL_TOP)/man/man1
  20. INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
  21. @@ -39,9 +39,9 @@ RM= rm -f
  22. PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris
  23. # What to install.
  24. -TO_BIN= lua luac
  25. +TO_BIN= lua53 luac53
  26. TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
  27. -TO_LIB= liblua.a
  28. +TO_LIB= liblua5.3.a liblua5.3.so.${LIBlua5.3_VERSION}
  29. TO_MAN= lua.1 luac.1
  30. # Lua version and release.
  31. @@ -62,7 +62,8 @@ install: dummy
  32. cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
  33. cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
  34. cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
  35. - cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
  36. + cd doc && $(INSTALL_DATA) lua.1 $(INSTALL_MAN)/lua53.1
  37. + cd doc && $(INSTALL_DATA) luac.1 $(INSTALL_MAN)/luac53.1
  38. uninstall:
  39. cd src && cd $(INSTALL_BIN) && $(RM) $(TO_BIN)