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 (1684B)


  1. cflags{
  2. '-I $dir',
  3. '-isystem $basedir/pkg/openbsd/include',
  4. '-isystem $builddir/pkg/zlib/include',
  5. }
  6. lib('libmandoc.a', {
  7. 'man.c',
  8. 'man_macro.c',
  9. 'man_validate.c',
  10. 'arch.c',
  11. 'att.c',
  12. 'lib.c',
  13. 'mdoc.c',
  14. 'mdoc_argv.c',
  15. 'mdoc_macro.c',
  16. 'mdoc_state.c',
  17. 'mdoc_validate.c',
  18. 'st.c',
  19. 'eqn.c',
  20. 'roff.c',
  21. 'roff_validate.c',
  22. 'tbl.c',
  23. 'tbl_data.c',
  24. 'tbl_layout.c',
  25. 'tbl_opts.c',
  26. 'chars.c',
  27. 'mandoc.c',
  28. 'mandoc_aux.c',
  29. 'mandoc_msg.c',
  30. 'mandoc_ohash.c',
  31. 'mandoc_xr.c',
  32. 'msec.c',
  33. 'preconv.c',
  34. 'read.c',
  35. 'tag.c',
  36. 'compat_fts.c',
  37. 'compat_ohash.c',
  38. }, {'pkg/zlib/headers'})
  39. exe('mandoc', {
  40. 'main.c',
  41. 'manpath.c',
  42. 'mdoc_man.c',
  43. 'mdoc_markdown.c',
  44. 'out.c',
  45. 'tree.c',
  46. 'eqn_html.c',
  47. 'html.c',
  48. 'man_html.c',
  49. 'mdoc_html.c',
  50. 'roff_html.c',
  51. 'tbl_html.c',
  52. 'eqn_term.c',
  53. 'man_term.c',
  54. 'mdoc_term.c',
  55. 'roff_term.c',
  56. 'term.c',
  57. 'term_ascii.c',
  58. 'term_ps.c',
  59. 'term_tab.c',
  60. 'term_tag.c',
  61. 'tbl_term.c',
  62. 'dbm.c',
  63. 'dbm_map.c',
  64. 'mansearch.c',
  65. 'dba.c',
  66. 'dba_array.c',
  67. 'dba_read.c',
  68. 'dba_write.c',
  69. 'mandocdb.c',
  70. 'libmandoc.a',
  71. '$builddir/pkg/openbsd/libbsd.a',
  72. '$builddir/pkg/zlib/libz.a',
  73. })
  74. file('bin/mandoc', '755', '$outdir/mandoc')
  75. for _, cmd in ipairs{'apropos', 'man', 'whatis', 'makewhatis'} do
  76. sym('bin/'..cmd, 'mandoc')
  77. end
  78. exe('demandoc', {
  79. 'demandoc.c',
  80. 'libmandoc.a',
  81. '$builddir/pkg/openbsd/libbsd.a',
  82. '$builddir/pkg/zlib/libz.a',
  83. })
  84. file('bin/demandoc', '755', '$outdir/demandoc')
  85. man{
  86. 'mandoc.1',
  87. 'demandoc.1',
  88. 'man.1',
  89. 'apropos.1',
  90. 'man.conf.5',
  91. 'mandoc.db.5',
  92. 'man.7',
  93. 'mdoc.7',
  94. 'roff.7',
  95. 'eqn.7',
  96. 'tbl.7',
  97. 'mandoc_char.7',
  98. 'makewhatis.8',
  99. }
  100. sym('share/man/man1/whatis.1.gz', 'apropos.1.gz')
  101. fetch 'curl'