0004-lua-pc.patch 986 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. add lua.pc
  2. Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
  3. [Jörg Krause: add @MYLIBS@]
  4. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
  5. Index: b/etc/lua.pc
  6. ===================================================================
  7. --- /dev/null
  8. +++ b/etc/lua.pc
  9. @@ -0,0 +1,31 @@
  10. +# lua.pc -- pkg-config data for Lua
  11. +
  12. +# vars from install Makefile
  13. +
  14. +# grep '^V=' ../Makefile
  15. +V= 5.2
  16. +# grep '^R=' ../Makefile
  17. +R= 5.2.3
  18. +
  19. +# grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
  20. +prefix= /usr
  21. +INSTALL_BIN= ${prefix}/bin
  22. +INSTALL_INC= ${prefix}/include
  23. +INSTALL_LIB= ${prefix}/lib
  24. +INSTALL_MAN= ${prefix}/man/man1
  25. +INSTALL_LMOD= ${prefix}/share/lua/${V}
  26. +INSTALL_CMOD= ${prefix}/lib/lua/${V}
  27. +
  28. +# canonical vars
  29. +exec_prefix=${prefix}
  30. +libdir=${exec_prefix}/lib
  31. +includedir=${prefix}/include
  32. +
  33. +Name: Lua
  34. +Description: An Extensible Extension Language
  35. +Version: ${R}
  36. +Requires:
  37. +Libs: -L${libdir} -llua -lm @MYLIBS@
  38. +Cflags: -I${includedir}
  39. +
  40. +# (end of lua.pc)