libpcre: Make readline dependency conditional on PACKAGECONFIG[pcretest-readline]
authorPhil Blundell <pb@pbcl.net>
Thu, 25 Apr 2013 15:00:57 +0000 (16:00 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 29 Apr 2013 13:45:07 +0000 (14:45 +0100)
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>
meta/recipes-support/libpcre/libpcre_8.32.bb

index 4d17741..a2a8d80 100644 (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