diff options
Diffstat (limited to 'meta/recipes-core/readline/readline.inc')
-rw-r--r-- | meta/recipes-core/readline/readline.inc | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-core/readline/readline.inc b/meta/recipes-core/readline/readline.inc new file mode 100644 index 0000000000..0ce3b519e6 --- /dev/null +++ b/meta/recipes-core/readline/readline.inc | |||
@@ -0,0 +1,41 @@ | |||
1 | SUMMARY = "Library for editing typed command lines" | ||
2 | DESCRIPTION = "The GNU Readline library provides a set of functions for use by applications that allow users to edit \ | ||
3 | command lines as they are typed in. Both Emacs and vi editing modes are available. The Readline library includes \ | ||
4 | additional functions to maintain a list of previously-entered command lines, to recall and perhaps reedit those \ | ||
5 | lines, and perform csh-like history expansion on previous commands." | ||
6 | SECTION = "libs" | ||
7 | |||
8 | # GPLv2+ (< 6.0), GPLv3+ (>= 6.0) | ||
9 | LICENSE = "GPLv3+" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
11 | |||
12 | DEPENDS += "ncurses" | ||
13 | |||
14 | SRC_URI = "${GNU_MIRROR}/readline/${BPN}-${PV}.tar.gz;name=archive \ | ||
15 | file://configure-fix.patch \ | ||
16 | file://config-dirent-symbols.patch \ | ||
17 | file://norpath.patch" | ||
18 | |||
19 | S = "${WORKDIR}/${BPN}-${PV}" | ||
20 | |||
21 | inherit autotools texinfo | ||
22 | |||
23 | EXTRA_AUTORECONF += "--exclude=autoheader" | ||
24 | |||
25 | LEAD_SONAME = "libreadline.so" | ||
26 | |||
27 | do_configure_prepend () { | ||
28 | if [ ! -e ${S}/acinclude.m4 ]; then | ||
29 | cat ${S}/aclocal.m4 > ${S}/acinclude.m4 | ||
30 | fi | ||
31 | } | ||
32 | |||
33 | do_install_append () { | ||
34 | # Make install doesn't properly install these | ||
35 | oe_libinstall -so -C shlib libhistory ${D}${libdir} | ||
36 | oe_libinstall -so -C shlib libreadline ${D}${libdir} | ||
37 | |||
38 | rmdir ${D}${bindir} | ||
39 | } | ||
40 | |||
41 | BBCLASSEXTEND = "native nativesdk" | ||