libpcre: Make readline dependency conditional on PACKAGECONFIG[pcretest-readline]

The only place in pcre that requires readline is pcretest, and even there it's
optional.  This allows the dependency to be removed unless specifically requested.

(From OE-Core rev: 5bf7397cdb91d8ab0f2a525484eee9a3cec25f87)

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Phil Blundell 2013-04-25 16:00:57 +01:00 committed by Richard Purdie
parent b48db72ee7
commit f18ba44ab3
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@ S = "${WORKDIR}/pcre-${PV}"
FILESPATH .= ":${@base_set_filespath([bb.which(BBPATH, 'recipes-support/libpcre/files', direction=True)], d)}"
PROVIDES += "pcre"
DEPENDS += "bzip2 zlib readline"
DEPENDS += "bzip2 zlib"
PACKAGECONFIG[pcretest-readline] = "--enable-pcretest-libreadline,--disable-pcretest-libreadline,readline,"
inherit autotools binconfig