commit: 6bd306267323706409c346280eea353a16c876a4
parent 241c6fb3da996cd75beb663ca71efa2c6c106211
Author: Michael Forney <mforney@mforney.org>
Date: Sun, 18 Feb 2018 12:35:34 -0800
ncurses: Build infocmp and tput
Diffstat:
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git 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
@@ -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 */