opkg

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

Commit: d63e62ca4c3150eb1f8ee3ceb441432abd13e2cc
Parent: cc4697c81ecac1a4479988b594ca93edea2ff78b
Author: Randy Palamar
Date:   Tue,  4 Jun 2024 05:43:13 -0600

add libutp from oasis

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

diff --git a/.gitmodules b/.gitmodules @@ -56,6 +56,9 @@ path = pkg/libs/libtls-bearssl/src url = https://git.sr.ht/~mcf/libtls-bearssl ignore = all +[submodule "pkg/libs/libutp/src"] + path = pkg/libs/libutp/src + url = https://github.com/oasislinux/libutp.git [submodule "pkg/libs/netbsd-curses/src"] path = pkg/libs/netbsd-curses/src url = https://github.com/oasislinux/netbsd-curses.git diff --git a/pkg/libs/gen.lua b/pkg/libs/gen.lua @@ -3,6 +3,7 @@ subgen('libgit2') subgen('libpng') subgen('libtermkey') subgen('libtls-bearssl') +subgen('libutp') subgen('lpeg') subgen('netbsd-curses') subgen('pcre') diff --git a/pkg/libs/libutp/gen.lua b/pkg/libs/libutp/gen.lua @@ -0,0 +1,11 @@ +cflags({ + '-std=c99', '-Wall', '-Wpedantic', + '-D _POSIX_C_SOURCE=200809L', + '-I $srcdir', +}) + +pkg.hdrs = copy('$outdir/include/libutp', '$srcdir', {'utp.h'}) + +lib('libutp.a', {'utp.c', 'utp_utils.c'}) + +fetch('git') diff --git a/pkg/libs/libutp/src b/pkg/libs/libutp/src @@ -0,0 +1 @@ +Subproject commit 996ad97f18a09a2f3d38cb210a44014eaf089df5 diff --git a/pkg/libs/libutp/ver b/pkg/libs/libutp/ver @@ -0,0 +1 @@ +996ad97f18 r0