summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/ncurses.make15
1 files changed, 8 insertions, 7 deletions
diff --git a/rules/ncurses.make b/rules/ncurses.make
index cd167c4f7..0879c91dc 100644
--- a/rules/ncurses.make
+++ b/rules/ncurses.make
@@ -120,13 +120,20 @@ ifdef PTXCONF_NCURSES_PANEL
NCURSES_LIBRARY_LIST += panel
endif
+NCURSES_WIDE := w
endif
+NCURSES_MAJOR := 6
+NCURSES_MINOR := 0
+
$(STATEDIR)/ncurses.install.post:
@$(call targetinfo)
@$(call world/install.post, NCURSES)
- @cp -dp -- "$(NCURSES_PKGDIR)/usr/bin/"*config* "$(PTXCONF_SYSROOT_CROSS)/bin"
+ @cp -dp -- "$(NCURSES_PKGDIR)/usr/bin/ncurses$(NCURSES_WIDE)$(NCURSES_MAJOR)-config" \
+ "$(PTXCONF_SYSROOT_CROSS)/bin"
+ @ln -sf -- "ncurses$(NCURSES_WIDE)$(NCURSES_MAJOR)-config" \
+ "$(PTXCONF_SYSROOT_CROSS)/bin/ncurses$(NCURSES_WIDE)5-config"
ifdef PTXCONF_NCURSES_WIDE_CHAR
# Note: This tweak only works if we build the application with these settings!
@@ -144,12 +151,6 @@ endif
# Target-Install
# ----------------------------------------------------------------------------
-ifdef PTXCONF_NCURSES_WIDE_CHAR
-NCURSES_WIDE := w
-endif
-NCURSES_MAJOR := 6
-NCURSES_MINOR := 0
-
$(STATEDIR)/ncurses.targetinstall:
@$(call targetinfo)