summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/ncurses/ncurses.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/ncurses/ncurses.inc')
-rw-r--r--meta/recipes-core/ncurses/ncurses.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc
index 761b6a3d31..951f96beb5 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -2,7 +2,7 @@ SUMMARY = "The New Curses library"
2DESCRIPTION = "SVr4 and XSI-Curses compatible curses library and terminfo tools including tic, infocmp, captoinfo. Supports color, multiple highlights, forms-drawing characters, and automatic recognition of keypad and function-key sequences. Extensions include resizable windows and mouse support on both xterm and Linux console using the gpm library." 2DESCRIPTION = "SVr4 and XSI-Curses compatible curses library and terminfo tools including tic, infocmp, captoinfo. Supports color, multiple highlights, forms-drawing characters, and automatic recognition of keypad and function-key sequences. Extensions include resizable windows and mouse support on both xterm and Linux console using the gpm library."
3HOMEPAGE = "http://www.gnu.org/software/ncurses/ncurses.html" 3HOMEPAGE = "http://www.gnu.org/software/ncurses/ncurses.html"
4LICENSE = "MIT" 4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://COPYING;md5=c5a4600fdef86384c41ca33ecc70a4b8;endline=27" 5LIC_FILES_CHKSUM = "file://COPYING;md5=6f291ee54551d9d8d992ecd623fe4bc7;endline=27"
6SECTION = "libs" 6SECTION = "libs"
7DEPENDS = "ncurses-native" 7DEPENDS = "ncurses-native"
8DEPENDS:class-native = "" 8DEPENDS:class-native = ""
@@ -13,15 +13,13 @@ BINCONFIG = "${bindir}/ncurses5-config ${bindir}/ncursesw5-config \
13inherit autotools binconfig-disabled multilib_header pkgconfig 13inherit autotools binconfig-disabled multilib_header pkgconfig
14 14
15# Upstream has useful patches at times at ftp://invisible-island.net/ncurses/ 15# Upstream has useful patches at times at ftp://invisible-island.net/ncurses/
16SRC_URI = "git://github.com/mirror/ncurses.git;protocol=https;branch=master" 16SRC_URI = "git://github.com/ThomasDickey/ncurses-snapshots.git;protocol=https;branch=master"
17 17
18EXTRA_AUTORECONF = "-I m4" 18EXTRA_AUTORECONF = "-I m4"
19 19
20CACHED_CONFIGUREVARS = "cf_cv_func_nanosleep=yes" 20CACHED_CONFIGUREVARS = "cf_cv_func_nanosleep=yes"
21CACHED_CONFIGUREVARS:append:linux = " cf_cv_working_poll=yes" 21CACHED_CONFIGUREVARS:append:linux = " cf_cv_working_poll=yes"
22 22
23EXTRASITECONFIG = "CFLAGS='${CFLAGS} -I${SYSROOT_DESTDIR}${includedir}'"
24
25# Whether to enable separate widec libraries; must be 'true' or 'false' 23# Whether to enable separate widec libraries; must be 'true' or 'false'
26# 24#
27# TODO: remove this variable when widec is supported in every setup? 25# TODO: remove this variable when widec is supported in every setup?
@@ -30,6 +28,9 @@ ENABLE_WIDEC ?= "true"
30# _GNU_SOURCE is required for widec stuff and is not detected automatically 28# _GNU_SOURCE is required for widec stuff and is not detected automatically
31CPPFLAGS += "-D_GNU_SOURCE" 29CPPFLAGS += "-D_GNU_SOURCE"
32 30
31# Check if we still need it when next release (6.6) happens
32CFLAGS += "-std=gnu17"
33
33# natives don't generally look in base_libdir 34# natives don't generally look in base_libdir
34base_libdir:class-native = "${libdir}" 35base_libdir:class-native = "${libdir}"
35 36
@@ -72,6 +73,7 @@ ncurses_configure() {
72 --without-debug \ 73 --without-debug \
73 --without-ada \ 74 --without-ada \
74 --without-gpm \ 75 --without-gpm \
76 --with-xterm-kbs=del \
75 --enable-hard-tabs \ 77 --enable-hard-tabs \
76 --enable-xmc-glitch \ 78 --enable-xmc-glitch \
77 --enable-colorfgbg \ 79 --enable-colorfgbg \
@@ -173,7 +175,6 @@ do_install() {
173 oe_runmake -C narrowc ${_install_cfgs} \ 175 oe_runmake -C narrowc ${_install_cfgs} \
174 install.data 176 install.data
175 177
176
177 ! ${ENABLE_WIDEC} || \ 178 ! ${ENABLE_WIDEC} || \
178 oe_runmake -C widec ${_install_cfgs} ${_install_opts} 179 oe_runmake -C widec ${_install_cfgs} ${_install_opts}
179 180
@@ -181,7 +182,7 @@ do_install() {
181 182
182 # include some basic terminfo files 183 # include some basic terminfo files
183 # stolen ;) from gentoo and modified a bit 184 # stolen ;) from gentoo and modified a bit
184 for x in ansi console dumb linux rxvt screen screen-256color sun vt52 vt100 vt102 vt200 vt220 xterm-color xterm-xfree86 xterm-256color 185 for x in alacritty ansi console dumb linux rxvt screen screen-256color sun vt52 vt100 vt102 vt200 vt220 xterm-color xterm-xfree86 xterm-256color
185 do 186 do
186 local termfile="$(find "${D}${datadir}/terminfo/" -name "${x}" 2>/dev/null)" 187 local termfile="$(find "${D}${datadir}/terminfo/" -name "${x}" 2>/dev/null)"
187 local basedir="$(basename $(dirname "${termfile}"))" 188 local basedir="$(basename $(dirname "${termfile}"))"
@@ -261,7 +262,6 @@ python populate_packages:prepend () {
261 do_split_packages(d, base_libdir, r'^lib(.*)\.so\..*', pnbase, 'ncurses %s library', prepend=True, extra_depends = '', allow_links=True) 262 do_split_packages(d, base_libdir, r'^lib(.*)\.so\..*', pnbase, 'ncurses %s library', prepend=True, extra_depends = '', allow_links=True)
262} 263}
263 264
264
265inherit update-alternatives 265inherit update-alternatives
266 266
267ALTERNATIVE_PRIORITY = "100" 267ALTERNATIVE_PRIORITY = "100"