OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../lua-random/lua-random-make-install.patch
  5. # Copyright (C) 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Description: Add an 'install' make target and set reasonable default directories
  17. --- random/Makefile.orig 2010-10-21 14:22:30.558695115 +0200
  18. +++ random/Makefile 2010-10-21 14:22:33.778695814 +0200
  19. @@ -1,16 +1,12 @@
  20. # makefile for random library for Lua
  21. -# change these to reflect your Lua installation
  22. -LUA= /tmp/lhf/lua-5.1.4
  23. -LUAINC= $(LUA)/src
  24. -LUALIB= $(LUA)/src
  25. -LUABIN= $(LUA)/src
  26. -
  27. # these will probably work if Lua has been installed globally
  28. -#LUA= /usr/local
  29. -#LUAINC= $(LUA)/include
  30. -#LUALIB= $(LUA)/lib
  31. -#LUABIN= $(LUA)/bin
  32. +LUA= /usr/local
  33. +LUAINC= $(LUA)/include
  34. +LUALIB= $(LUA)/lib
  35. +LUABIN= $(LUA)/bin
  36. +
  37. +LUACMOD= $(LUALIB)/lua/5.1
  38. # probably no need to change anything below here
  39. CC= gcc
  40. @@ -47,6 +43,10 @@ doc:
  41. @echo "$(MYNAME) library:"
  42. @fgrep '/**' $(MYLIB).c | cut -f2 -d/ | tr -d '*' | sort | column
  43. +install: all
  44. + mkdir -p $(LUACMOD)
  45. + cp -v $T $(LUACMOD)
  46. +
  47. # distribution
  48. FTP= www:www/ftp/lua/5.1