opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

gen.lua (1715B)


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