aboutsummaryrefslogtreecommitdiff
path: root/contrib/depends/packages/ncurses.mk
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2019-11-03 00:12:31 +0000
committerHoward Chu <hyc@symas.com>2019-11-03 19:03:31 +0000
commit436e4c336396f12c36df779c973824bbbae386ae (patch)
treeb69a3e0d720869c220f46be9851d2c05f27a226e /contrib/depends/packages/ncurses.mk
parentMerge pull request #6079 (diff)
downloadmonero-436e4c336396f12c36df779c973824bbbae386ae.tar.xz
Fix readline build
Make sure it links to our libtinfo from our ncurses build. Hardcode some basic terminal descriptions into our libtinfo. Re-enable $HOME/.terminfo support to allow user customization. Use unlikely terminfo-dir, to prevent accidentally using differently-configured system databases.
Diffstat (limited to 'contrib/depends/packages/ncurses.mk')
-rw-r--r--contrib/depends/packages/ncurses.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/depends/packages/ncurses.mk b/contrib/depends/packages/ncurses.mk
index c3b16baab..1acf1faca 100644
--- a/contrib/depends/packages/ncurses.mk
+++ b/contrib/depends/packages/ncurses.mk
@@ -3,6 +3,7 @@ $(package)_version=6.1
$(package)_download_path=https://ftp.gnu.org/gnu/ncurses
$(package)_file_name=$(package)-$($(package)_version).tar.gz
$(package)_sha256_hash=aa057eeeb4a14d470101eff4597d5833dcef5965331be3528c08d99cebaa0d17
+$(package)_patches=fallback.c
define $(package)_set_vars
$(package)_build_opts=CC="$($(package)_cc)"
@@ -35,9 +36,8 @@ define $(package)_set_vars
$(pacakge)_config_opts+=--disable-symlinks
$(pacakge)_config_opts+=--enable-warnings
$(pacakge)_config_opts+=--enable-assertions
- $(pacakge)_config_opts+=--disable-home-terminfo
- $(package)_config_opts+=--with-default-terminfo-dir=/etc/terminfo
- $(package)_config_opts+=--with-terminfo-dirs="/etc/terminfo:/lib/terminfo:/usr/share/terminfo"
+ $(package)_config_opts+=--with-default-terminfo-dir=/etc/_terminfo_
+ $(package)_config_opts+=--with-terminfo-dirs=/etc/_terminfo_
$(pacakge)_config_opts+=--enable-database
$(pacakge)_config_opts+=--enable-sp-funcs
$(pacakge)_config_opts+=--disable-term-driver
@@ -46,6 +46,10 @@ define $(package)_set_vars
$(package)_build_opts=CFLAGS="$($(package)_cflags) $($(package)_cppflags) -fPIC"
endef
+define $(package)_preprocess_cmds
+ cp $($(package)_patch_dir)/fallback.c ncurses
+endef
+
define $(package)_config_cmds
./configure $($(package)_config_opts)
endef