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.

43 lines
1.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../lua-lanes/lua-lanes-2.0.10-destdir-prefix.patch
  5. # Copyright (C) 2011 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. --- lanes-2.0.10/Makefile.orig 2011-03-11 15:48:00.926696388 +0100
  17. +++ lanes-2.0.10/Makefile 2011-03-11 15:52:34.530696290 +0100
  18. @@ -177,17 +177,18 @@
  19. #
  20. # LUA_LIBDIR and LUA_SHAREDIR are used by the .rockspec (don't change the names!)
  21. #
  22. -DESTDIR=/usr/local
  23. -LUA_LIBDIR=$(DESTDIR)/lib/lua/5.1
  24. -LUA_SHAREDIR=$(DESTDIR)/share/lua/5.1
  25. +DESTDIR=
  26. +PREFIX=/usr/local
  27. +LUA_LIBDIR=$(PREFIX)/lib/lua/5.1
  28. +LUA_SHAREDIR=$(PREFIX)/share/lua/5.1
  29. #
  30. # AKa 17-Oct: changed to use 'install -m 644' and 'cp -p'
  31. #
  32. install: $(_TARGET_SO) src/lanes.lua
  33. - mkdir -p $(LUA_LIBDIR) $(LUA_SHAREDIR)
  34. - install -m 644 $(_TARGET_SO) $(LUA_LIBDIR)
  35. - cp -p src/lanes.lua $(LUA_SHAREDIR)
  36. + mkdir -p $(DESTDIR)$(LUA_LIBDIR) $(DESTDIR)$(LUA_SHAREDIR)
  37. + install -m 644 $(_TARGET_SO) $(DESTDIR)$(LUA_LIBDIR)
  38. + cp -p src/lanes.lua $(DESTDIR)$(LUA_SHAREDIR)
  39. #--- Packaging ---