2
1

0004-lua-pc.patch 890 B

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