commit: a0c6afd077b365ef84e9b65b676c4a770bdf71f0
parent 822416cc4e5e863a234d2e86a4ce461a093ee009
Author: Michael Forney <mforney@mforney.org>
Date: Mon, 30 Dec 2019 11:30:37 -0800
Add ncompress 4.2.4.5
Diffstat:
6 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/.gitmodules b/.gitmodules
@@ -172,6 +172,9 @@
[submodule "pkg/musl/src"]
path = pkg/musl/src
url = git://git.musl-libc.org/musl
+[submodule "pkg/ncompress/src"]
+ path = pkg/ncompress/src
+ url = https://github.com/vapier/ncompress.git
[submodule "pkg/netsurf/src"]
path = pkg/netsurf/src
url = https://github.com/michaelforney/netsurf
diff --git a/pkg/gen.lua b/pkg/gen.lua
@@ -65,6 +65,7 @@ subgen 'mtdev'
subgen 'mupdf'
subgen 'musl'
subgen 'nasm'
+subgen 'ncompress'
subgen 'ncurses'
subgen 'netsurf'
subgen 'nginx'
diff --git a/pkg/ncompress/config.h b/pkg/ncompress/config.h
@@ -0,0 +1,5 @@
+#define DIRENT
+#define LSTAT
+#define NOFUNCDEF
+#define USERMEM 800000
+#define UTIME_H
diff --git a/pkg/ncompress/gen.lua b/pkg/ncompress/gen.lua
@@ -0,0 +1,10 @@
+cflags{
+ '-std=c99', '-Wall', '-Wpedantic',
+ '-D _POSIX_C_SOURCE=200809L',
+ '-include $dir/config.h',
+}
+
+exe('lzw', {'compress42.c'})
+file('bin/lzw', '755', '$outdir/lzw')
+
+fetch 'git'
diff --git a/pkg/ncompress/src b/pkg/ncompress/src
@@ -0,0 +1 @@
+Subproject commit b196e1a2e33a21f25280c1b10aaf8b4f46f5bf12
diff --git a/pkg/ncompress/ver b/pkg/ncompress/ver
@@ -0,0 +1 @@
+4.2.4.5 r0