Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Clément Péron" <peron.clem@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/jpeg-turbo: Add an option to allow tools install
Date: Sun, 12 Apr 2020 13:06:32 +0200	[thread overview]
Message-ID: <20200412110632.4901-1-peron.clem@gmail.com> (raw)

JPEG Turbo tools are not useless for everybody.

Add an option to allow their installation.

Signed-off-by: Cl?ment P?ron <peron.clem@gmail.com>
---
 package/jpeg-turbo/jpeg-turbo.mk | 6 ++++--
 package/jpeg/Config.in           | 9 +++++++++
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/package/jpeg-turbo/jpeg-turbo.mk b/package/jpeg-turbo/jpeg-turbo.mk
index 126b470630b2..9d487e29c5d3 100644
--- a/package/jpeg-turbo/jpeg-turbo.mk
+++ b/package/jpeg-turbo/jpeg-turbo.mk
@@ -41,10 +41,12 @@ ifeq ($(BR2_STATIC_LIBS),)
 JPEG_TURBO_CONF_OPTS += -DCMAKE_POSITION_INDEPENDENT_CODE=ON
 endif
 
-define JPEG_TURBO_REMOVE_USELESS_TOOLS
+define JPEG_TURBO_REMOVE_TOOLS
 	rm -f $(addprefix $(TARGET_DIR)/usr/bin/,cjpeg djpeg jpegtran rdjpgcom tjbench wrjpgcom)
 endef
 
-JPEG_TURBO_POST_INSTALL_TARGET_HOOKS += JPEG_TURBO_REMOVE_USELESS_TOOLS
+ifneq ($(BR2_PACKAGE_JPEG_TURBO_TOOLS),y)
+	JPEG_TURBO_POST_INSTALL_TARGET_HOOKS += JPEG_TURBO_REMOVE_TOOLS
+endif
 
 $(eval $(cmake-package))
diff --git a/package/jpeg/Config.in b/package/jpeg/Config.in
index 3d0fea83b182..11ea01daf35b 100644
--- a/package/jpeg/Config.in
+++ b/package/jpeg/Config.in
@@ -38,6 +38,15 @@ config BR2_PACKAGE_JPEG_TURBO
 
 	  http://www.libjpeg-turbo.org
 
+config BR2_PACKAGE_JPEG_TURBO_TOOLS
+	bool "jpeg-turbo tools"
+	depends on BR2_PACKAGE_JPEG_TURBO
+	default n
+	help
+	  Libjpeg-turbo can also provide some tools like  cjpeg,
+	  djpeg, jpegtran, rdjpgcom, tjbench and wrjpgcom.
+	  If you want to keep them enable this option.
+
 # libjpeg from br2-external trees, if any
 source "$BR2_BASE_DIR/.br2-external.in.jpeg"
 
-- 
2.20.1

             reply	other threads:[~2020-04-12 11:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-12 11:06 Clément Péron [this message]
2020-04-12 13:30 ` [Buildroot] [PATCH] package/jpeg-turbo: Add an option to allow tools install Yann E. MORIN
2020-04-12 13:54   ` Clément Péron

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=20200412110632.4901-1-peron.clem@gmail.com \
    --to=peron.clem@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