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


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