logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

gen.lua (1382B)


  1. cflags{
  2. '-D _GNU_SOURCE',
  3. string.format([[-D 'SYSCONFDIR="%s/etc/libnl"']], config.prefix),
  4. '-I $dir',
  5. '-I $outdir/include',
  6. '-I $srcdir/include',
  7. '-I $srcdir/include/linux-private',
  8. '-isystem $builddir/pkg/linux-headers/include',
  9. }
  10. build('sed', '$outdir/include/netlink/version.h', '$srcdir/include/netlink/version.h.in', {
  11. expr={
  12. '-e s,@PACKAGE_STRING@,\'libnl 3.5.0\',',
  13. '-e s,@PACKAGE_VERSION@,3.5.0,',
  14. '-e s,@MAJ_VERSION@,3,',
  15. '-e s,@MIN_VERSION@,5,',
  16. '-e s,@MIC_VERSION@,0,',
  17. '-e s,@LT_CURRENT@,226,',
  18. '-e s,@LT_REVISION@,0,',
  19. '-e s,@LT_AGE@,26,',
  20. },
  21. })
  22. pkg.hdrs = {
  23. copy('$outdir/include/netlink', '$srcdir/include/netlink', {
  24. 'addr.h',
  25. 'attr.h',
  26. 'cache.h',
  27. 'cache-api.h',
  28. 'data.h',
  29. 'errno.h',
  30. 'handlers.h',
  31. 'hash.h',
  32. 'hashtable.h',
  33. 'list.h',
  34. 'msg.h',
  35. 'netlink.h',
  36. 'netlink-compat.h',
  37. 'netlink-kernel.h',
  38. 'object.h',
  39. 'object-api.h',
  40. 'socket.h',
  41. 'types.h',
  42. 'utils.h',
  43. 'genl/ctrl.h',
  44. 'genl/family.h',
  45. 'genl/genl.h',
  46. 'genl/mngt.h',
  47. }),
  48. '$outdir/include/netlink/version.h',
  49. }
  50. pkg.deps = {
  51. '$gendir/headers',
  52. 'pkg/linux-headers/headers',
  53. }
  54. lib('libnl-3.a', [[lib/(
  55. addr.c attr.c cache.c cache_mngr.c cache_mngt.c data.c
  56. error.c handlers.c msg.c nl.c object.c socket.c utils.c
  57. version.c hash.c hashtable.c mpls.c
  58. )]])
  59. lib('libnl-genl-3.a', 'lib/genl/(ctrl.c family.c genl.c mngt.c)')
  60. fetch 'git'