From: Romain Naour <romain.naour@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv2 2/3] package/poke: add optional json-c dependency
Date: Mon, 17 May 2021 17:56:27 +0200 [thread overview]
Message-ID: <20210517155628.267749-2-romain.naour@gmail.com> (raw)
In-Reply-To: <20210517155628.267749-1-romain.naour@gmail.com>
From [1]:
"The poke machine-interface uses a protocol to communicate with
clients, which is based on JSON. poke uses the json-c library to
parse and build JSON strings.
If this library is not found, poke will build without machine-interface
support."
[1] https://git.savannah.nongnu.org/cgit/poke.git/tree/DEPENDENCIES?h=releases/poke-1.2#n55
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Jose E. Marchesi <jemarch@gnu.org>
Cc: Luca Saiu <positron@gnu.org>
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
package/poke/poke.mk | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/package/poke/poke.mk b/package/poke/poke.mk
index c0217b6fad..7c3c81d93c 100644
--- a/package/poke/poke.mk
+++ b/package/poke/poke.mk
@@ -19,7 +19,13 @@ POKE_DEPENDENCIES = host-flex host-bison host-pkgconf bdwgc readline
POKE_CONF_OPTS = \
--disable-gui \
--disable-libnbd \
- --disable-mi \
--with-libreadline-prefix=$(STAGING_DIR)
+ifeq ($(BR2_PACKAGE_JSON_C),y)
+POKE_DEPENDENCIES += json-c
+POKE_CONF_OPTS += --enable-mi
+else
+POKE_CONF_OPTS += --disable-mi
+endif
+
$(eval $(autotools-package))
--
2.31.1
next prev parent reply other threads:[~2021-05-17 15:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-17 15:56 [Buildroot] [PATCHv2 1/3] package/poke: new package Romain Naour
2021-05-17 15:56 ` Romain Naour [this message]
2021-05-17 15:56 ` [Buildroot] [PATCHv2 3/3] package/poke: enable uClibc-ng support Romain Naour
2021-05-18 15:16 ` Yann E. MORIN
2021-05-18 14:21 ` [Buildroot] [PATCHv2 1/3] package/poke: new package Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210517155628.267749-2-romain.naour@gmail.com \
--to=romain.naour@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox