blob: ba44fbe60f9db90b43cbf04e666e8afabdb5f34e [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "Allows you to set-up and manipulate the Linux console"
2DESCRIPTION = "Provides tools that enable the set-up and manipulation of the linux console and console-font files."
Patrick Williamsc124f4f2015-09-15 14:41:29 -05003SECTION = "base"
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://COPYING.kbd;md5=9b2d91511d3d80d4d20ac6e6b0137fe9"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08006DEPENDS = "flex-native bison-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007PR = "r8"
8
9SRC_URI = "${SOURCEFORGE_MIRROR}/lct/console-tools-${PV}.tar.gz \
10 file://codepage.patch \
11 file://configure.patch \
12 file://compile.patch \
13 file://kbdrate.patch \
14 file://uclibc-fileno.patch \
15 file://nodocs.patch \
16 file://fix-libconsole-linking.patch \
17 file://no-dep-on-libfl.patch \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050018 file://0001-kbdtools-Include-sys-types.h-for-u_char-and-u_short-.patch \
19 file://0001-Cover-the-else-with-__GLIBC__.patch \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050020 file://0001-Fix-format-security-compilation-error.patch \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021 file://lcmessage.m4 \
22 file://Makevars"
23
24SRC_URI[md5sum] = "bf21564fc38b3af853ef724babddbacd"
25SRC_URI[sha256sum] = "eea6b441672dacd251079fc85ed322e196282e0e66c16303ec64c3a2b1c126c2"
26
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/lct/files/console-tools-devel/"
28UPSTREAM_CHECK_REGEX = "/console-tools-devel/(?P<pver>(\d\d?\.)+\d\d?)/"
29
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080030inherit autotools gettext update-alternatives
31
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050032CFLAGS_append_aarch64 = " -D_USE_TERMIOS "
33
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080034ASNEEDED = ""
35
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036do_configure_prepend () {
37 mkdir -p ${S}/m4
38 cp ${WORKDIR}/lcmessage.m4 ${S}/m4/
39 rm -f ${S}/acinclude.m4
40 cp ${WORKDIR}/Makevars ${S}/po/
41}
42
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050043ALTERNATIVE_PRIORITY = "30"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050044
45bindir_progs = "chvt deallocvt fgconsole openvt"
46ALTERNATIVE_${PN} = "${bindir_progs}"
47
48RDEPENDS_${PN} = "bash"