opkg

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

Commit: f13028b8ddcb2dd8e2cd46309b9fde8c3a233e63
Parent: f88536c79bcec1afb42c61733fc7c979466aed89
Author: Randy Palamar
Date:   Wed, 27 Sep 2023 19:48:59 -0600

add zlib from oasis

Diffstat:
M.gitmodules | 3+++
Mpkg/libs/gen.lua | 1+
Apkg/libs/zlib/gen.lua | 31+++++++++++++++++++++++++++++++
Apkg/libs/zlib/src | 1+
Apkg/libs/zlib/ver | 1+
5 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -32,3 +32,6 @@ path = pkg/libs/netbsd-curses/src url = https://github.com/oasislinux/netbsd-curses.git ignore = all +[submodule "pkg/libs/zlib/src"] + path = pkg/libs/zlib/src + url = https://github.com/madler/zlib.git diff --git a/pkg/libs/gen.lua b/pkg/libs/gen.lua @@ -3,3 +3,4 @@ subgen('libtermkey') subgen('libtls-bearssl') subgen('lpeg') subgen('netbsd-curses') +subgen('zlib') diff --git a/pkg/libs/zlib/gen.lua b/pkg/libs/zlib/gen.lua @@ -0,0 +1,31 @@ +cflags({ + '-D HAVE_HIDDEN', + '-D HAVE_STDARG_H', + '-D HAVE_UNISTD_H', + '-D _LARGEFILE64_SOURCE', +}) + +lib('libz.a', { + 'adler32.c', + 'crc32.c', + 'deflate.c', + 'infback.c', + 'inffast.c', + 'inflate.c', + 'inftrees.c', + 'trees.c', + 'zutil.c', + + 'compress.c', + 'uncompr.c', + 'gzclose.c', + 'gzlib.c', + 'gzread.c', + 'gzwrite.c', +}) +file('lib/libz.a', '644', '$outdir/libz.a') + +pkg.hdrs = copy('$outdir/include', '$srcdir', {'zlib.h', 'zconf.h'}) +pkg.hdrs.install = true + +fetch('git') diff --git a/pkg/libs/zlib/src b/pkg/libs/zlib/src @@ -0,0 +1 @@ +Subproject commit 09155eaa2f9270dc4ed1fa13e2b4b2613e6e4851 diff --git a/pkg/libs/zlib/ver b/pkg/libs/zlib/ver @@ -0,0 +1 @@ +1.3 r0