opkg

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

gen.lua (996B)


      1 cflags({
      2 	'-std=c99', '-Wall', '-Wpedantic', '-Wno-maybe-uninitialized',
      3 	'-D _XOPEN_SOURCE=700',
      4 	'-I $dir',
      5 	'-isystem $builddir/pkg/libs/netbsd-curses/include',
      6 })
      7 
      8 objects([[
      9 	lesskey_parse.c
     10 	version.c
     11 	xbuf.c
     12 ]])
     13 
     14 exe('less', [[
     15 	main.c screen.c brac.c ch.c charset.c cmdbuf.c
     16 	command.c cvt.c decode.c edit.c filename.c forwback.c
     17 	help.c ifile.c input.c jump.c
     18 	line.c linenum.c
     19 	lsystem.c mark.c optfunc.c option.c opttbl.c os.c
     20 	output.c pattern.c position.c prompt.c search.c signal.c
     21 	tags.c ttyin.c version.c.o xbuf.c.o
     22 	lesskey_parse.c.o
     23 	$builddir/pkg/libs/netbsd-curses/libcurses.a.d
     24 ]], {'pkg/libs/netbsd-curses/headers'})
     25 file('bin/less', '755', '$outdir/less')
     26 
     27 exe('lessecho', {'lessecho.c', 'version.c.o'})
     28 file('bin/lessecho', '755', '$outdir/lessecho')
     29 
     30 exe('lesskey', {'lesskey.c', 'lesskey_parse.c.o', 'xbuf.c.o', 'version.c.o'})
     31 file('bin/lesskey', '755', '$outdir/lesskey')
     32 
     33 man({'less.nro', 'lessecho.nro', 'lesskey.nro'}, '1')
     34 
     35 sym('bin/more', 'less')
     36 
     37 fetch('curl')