mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] v4l-utils: make libjpeg dependency optional
@ 2013-03-25 16:55 Hubert Feurstein
  2013-03-27 18:13 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Hubert Feurstein @ 2013-03-25 16:55 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
---
 rules/v4l-utils.in   | 8 +++++++-
 rules/v4l-utils.make | 4 ++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/rules/v4l-utils.in b/rules/v4l-utils.in
index 893b1e0..288ff75 100644
--- a/rules/v4l-utils.in
+++ b/rules/v4l-utils.in
@@ -6,7 +6,7 @@ menuconfig V4L_UTILS
 	select LIBC_RT		if V4L_UTILS_LIBV4LCONVERT
 	select LIBC_M		if V4L_UTILS_LIBV4LCONVERT
 	select LIBC_PTHREAD	if V4L_UTILS_LIBV4L2
-	select LIBJPEG		if V4L_UTILS_LIBV4LCONVERT
+	select LIBJPEG		if V4L_UTILS_LIBV4LCONVERT_JPEG
 	help
 	  Linux V4L2 and DVB API utilities and v4l libraries (libv4l).
 
@@ -26,6 +26,12 @@ config V4L_UTILS_LIBV4LCONVERT
 	bool
 	prompt "install libv4lconvert"
 
+config V4L_UTILS_LIBV4LCONVERT_JPEG
+	bool
+	default y
+	depends on V4L_UTILS_LIBV4LCONVERT
+	prompt "use libjpeg"
+
 config V4L_UTILS_V4L2COMPLIANCE
 	bool
 	select V4L_UTILS_LIBV4L2
diff --git a/rules/v4l-utils.make b/rules/v4l-utils.make
index d047885..911a022 100644
--- a/rules/v4l-utils.make
+++ b/rules/v4l-utils.make
@@ -34,6 +34,10 @@ V4L_UTILS_CONF_OPT	:= \
 	$(CROSS_AUTOCONF_USR) \
 	--disable-qv4l2
 
+ifndef PTXCONF_V4L_UTILS_LIBV4LCONVERT_JPEG
+V4L_UTILS_CONF_OPT	+= --without-jpeg
+endif
+
 # ----------------------------------------------------------------------------
 # Target-Install
 # ----------------------------------------------------------------------------
-- 
1.8.1.3


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-27 18:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-25 16:55 [ptxdist] [PATCH] v4l-utils: make libjpeg dependency optional Hubert Feurstein
2013-03-27 18:13 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox