summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2018-02-18 12:35:34 -0800
committerMichael Forney <mforney@mforney.org>2018-02-18 12:43:17 -0800
commit6bd306267323706409c346280eea353a16c876a4 (patch)
tree434b4ba8c270e5427c9ba48ae78b112e85b66a4f /pkg
parent241c6fb3da996cd75beb663ca71efa2c6c106211 (diff)
ncurses: Build infocmp and tput
Diffstat (limited to 'pkg')
-rw-r--r--pkg/ncurses/gen.lua20
-rw-r--r--pkg/ncurses/transform.h1
2 files changed, 19 insertions, 2 deletions
diff --git a/pkg/ncurses/gen.lua b/pkg/ncurses/gen.lua
index 5b604f45..e680344d 100644
--- a/pkg/ncurses/gen.lua
+++ b/pkg/ncurses/gen.lua
@@ -125,17 +125,33 @@ file('lib/libncurses.a', '644', '$outdir/libncurses.a')
lib('libtic.a', srcs.ticlib)
+cc('progs/reset_cmd.c')
+cc('progs/tparm_type.c')
cc('progs/transform.c')
+cc('progs/tty_settings.c')
+
+exe('infocmp', [[
+ progs/(infocmp.c dump_entry.c.o)
+ libtic.a
+ libncurses.a
+]])
+file('bin/infocmp', '755', '$outdir/infocmp')
exe('tic', [[
- progs/(tic.c dump_entry.c tparm_type.c transform.c.o)
+ progs/(tic.c dump_entry.c tparm_type.c.o transform.c.o)
libtic.a
libncurses.a
]])
file('bin/tic', '755', '$outdir/tic')
+exe('tput', [[
+ progs/(tput.c clear_cmd.c reset_cmd.c.o tparm_type.c.o transform.c.o tty_settings.c.o)
+ libncurses.a
+]])
+file('bin/tput', '755', '$outdir/tput')
+
exe('tset', [[
- progs/(tset.c reset_cmd.c transform.c.o tty_settings.c)
+ progs/(tset.c reset_cmd.c.o transform.c.o tty_settings.c.o)
libncurses.a
]])
file('bin/tset', '755', '$outdir/tset')
diff --git a/pkg/ncurses/transform.h b/pkg/ncurses/transform.h
index df994d1d..4a74025a 100644
--- a/pkg/ncurses/transform.h
+++ b/pkg/ncurses/transform.h
@@ -4,6 +4,7 @@
extern bool same_program(const char *, const char *);
#define PROG_CAPTOINFO "captoinfo"
#define PROG_INFOTOCAP "infotocap"
+#define PROG_CLEAR "clear"
#define PROG_RESET "reset"
#define PROG_INIT "init"
#endif /* __TRANSFORM_H */