opkg

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

gen.lua (493B)


      1 cflags({
      2 	'-std=c99', '-Wall', '-Wpedantic',
      3 	'-D HAVE_STDARG_H',
      4 	'-D HAVE_UNISTD_H',
      5 	'-D _LARGEFILE64_SOURCE',
      6 })
      7 
      8 lib('libz.a', {
      9 	'adler32.c',
     10 	'crc32.c',
     11 	'deflate.c',
     12 	'infback.c',
     13 	'inffast.c',
     14 	'inflate.c',
     15 	'inftrees.c',
     16 	'trees.c',
     17 	'zutil.c',
     18 
     19 	'compress.c',
     20 	'uncompr.c',
     21 	'gzclose.c',
     22 	'gzlib.c',
     23 	'gzread.c',
     24 	'gzwrite.c',
     25 })
     26 file('lib/libz.a', '644', '$outdir/libz.a')
     27 
     28 pkg.hdrs = copy('$outdir/include', '$srcdir', {'zlib.h', 'zconf.h'})
     29 pkg.hdrs.install = true
     30 
     31 fetch('git')