From a0c6afd077b365ef84e9b65b676c4a770bdf71f0 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 30 Dec 2019 11:30:37 -0800 Subject: Add ncompress 4.2.4.5 --- pkg/ncompress/config.h | 5 +++++ pkg/ncompress/gen.lua | 10 ++++++++++ pkg/ncompress/src | 1 + pkg/ncompress/ver | 1 + 4 files changed, 17 insertions(+) create mode 100644 pkg/ncompress/config.h create mode 100644 pkg/ncompress/gen.lua create mode 160000 pkg/ncompress/src create mode 100644 pkg/ncompress/ver (limited to 'pkg/ncompress') diff --git a/pkg/ncompress/config.h b/pkg/ncompress/config.h new file mode 100644 index 00000000..c0672f99 --- /dev/null +++ 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 new file mode 100644 index 00000000..b4ee6380 --- /dev/null +++ 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 new file mode 160000 index 00000000..b196e1a2 --- /dev/null +++ b/pkg/ncompress/src @@ -0,0 +1 @@ +Subproject commit b196e1a2e33a21f25280c1b10aaf8b4f46f5bf12 diff --git a/pkg/ncompress/ver b/pkg/ncompress/ver new file mode 100644 index 00000000..fc001538 --- /dev/null +++ b/pkg/ncompress/ver @@ -0,0 +1 @@ +4.2.4.5 r0 -- cgit v1.2.3