summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/gen.lua1
-rw-r--r--pkg/libtirpc/gen.lua29
m---------pkg/libtirpc/src0
-rw-r--r--pkg/libtirpc/ver1
4 files changed, 31 insertions, 0 deletions
diff --git a/pkg/gen.lua b/pkg/gen.lua
index 561ab0a2..eaec47c9 100644
--- a/pkg/gen.lua
+++ b/pkg/gen.lua
@@ -58,6 +58,7 @@ subgen 'libpciaccess'
subgen 'libpng'
subgen 'libressl'
subgen 'libtermkey'
+subgen 'libtirpc'
subgen 'libtls-bearssl'
subgen 'libutp'
subgen 'libxkbcommon'
diff --git a/pkg/libtirpc/gen.lua b/pkg/libtirpc/gen.lua
new file mode 100644
index 00000000..01ad7485
--- /dev/null
+++ b/pkg/libtirpc/gen.lua
@@ -0,0 +1,29 @@
+cflags{
+ '-std=c99', '-Wall', '-Wpedantic',
+ '-D _BSD_SOURCE',
+ '-D INET6',
+ '-I $outdir/include',
+ '-I $srcdir/tirpc',
+}
+
+pkg.hdrs = copy('$outdir/include', '$srcdir/tirpc', {
+ 'netconfig.h',
+ 'rpc/types.h',
+ 'rpc/xdr.h',
+})
+pkg.deps = {'$gendir/headers'}
+
+lib('libtirpc.a', [[
+ src/(
+ xdr.c
+ xdr_rec.c
+ xdr_array.c
+ xdr_float.c
+ xdr_mem.c
+ xdr_reference.c
+ xdr_stdio.c
+ xdr_sizeof.c
+ )
+]])
+
+fetch 'git'
diff --git a/pkg/libtirpc/src b/pkg/libtirpc/src
new file mode 160000
+Subproject 490ba51956e3935d9e4b0b36c6cc927ac305b67
diff --git a/pkg/libtirpc/ver b/pkg/libtirpc/ver
new file mode 100644
index 00000000..0eba2689
--- /dev/null
+++ b/pkg/libtirpc/ver
@@ -0,0 +1 @@
+1.3.3 r0