]> code.ossystems Code Review - openembedded-core.git/commitdiff
ncurses: Abstract out termlib
authorKhem Raj <raj.khem@gmail.com>
Wed, 21 Mar 2018 02:30:04 +0000 (19:30 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 May 2018 16:41:02 +0000 (17:41 +0100)
termlib needs to be disabled on some targets e.g. mingw
this change paves the way for doing that. Functionally
it does not change anything for other platforms

(From OE-Core rev: 88f33e1e5ba4f85093f60a296cba3ee1c1341c43)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-core/ncurses/ncurses.inc

index 875385271944caf3ac206feb35cf424eb7299fe2..01e41d5f73587fe966a39bfadade6ed6286129a8 100644 (file)
@@ -59,6 +59,7 @@ EX_TERMCAP_class-nativesdk = ":/etc/termcap:/usr/share/misc/termcap"
 EX_TERMINFO = ""
 EX_TERMINFO_class-native = ":/etc/terminfo:/usr/share/terminfo:/usr/share/misc/terminfo:/lib/terminfo"
 EX_TERMINFO_class-nativesdk = ":/etc/terminfo:/usr/share/terminfo:/usr/share/misc/terminfo:/lib/terminfo"
+EX_TERMLIB ?= "tinfo"
 
 # Helper function for do_configure to allow multiple configurations
 # $1 the directory to run configure in
@@ -80,7 +81,7 @@ ncurses_configure() {
                --disable-big-core \
                --program-prefix= \
                --with-ticlib \
-               --with-termlib=tinfo \
+               --with-termlib=${EX_TERMLIB} \
                --enable-sigwinch \
                --enable-pc-files \
                --disable-rpath-hack \