From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 18 Feb 2022 17:08:47 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nL5oN-0032E2-7d for lore@lore.pengutronix.de; Fri, 18 Feb 2022 17:08:47 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nL5oM-0001JU-Gm; Fri, 18 Feb 2022 17:08:46 +0100 Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.pengutronix.de.) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nL5oG-0001JF-17 for ptxdist@pengutronix.de; Fri, 18 Feb 2022 17:08:40 +0100 From: Philipp Zabel To: ptxdist@pengutronix.de Date: Fri, 18 Feb 2022 17:08:35 +0100 Message-Id: <20220218160838.759601-1-p.zabel@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [ptxdist] [PATCH 1/4] libjpeg: enable building libturbojpeg X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Enable building libturbojpeg for users of the simplified API. Signed-off-by: Philipp Zabel --- rules/libjpeg.in | 7 +++++++ rules/libjpeg.make | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/rules/libjpeg.in b/rules/libjpeg.in index 53a9d9e09701..3304c6ac896f 100644 --- a/rules/libjpeg.in +++ b/rules/libjpeg.in @@ -19,4 +19,11 @@ config LIBJPEG_BIN cjpeg and djpeg are simple bineries to convert some basic image formats to jpeg (cjpeg) or convert them back from jpeg (djpeg) +config LIBJPEG_TURBO + bool + prompt "Build and install libturbojpeg" + help + In addition to the traditional libjpeg API, also provide the less + powerful but more straightforward TurboJPEG API. + endif diff --git a/rules/libjpeg.make b/rules/libjpeg.make index 559a6d08d504..704f810a4bd4 100644 --- a/rules/libjpeg.make +++ b/rules/libjpeg.make @@ -60,7 +60,7 @@ LIBJPEG_CONF_OPT := \ -DWITH_JPEG8=ON \ -DWITH_MEM_SRCDST=ON \ -DWITH_SIMD=$(call ptx/onoff,LIBJPEG_SIMD) \ - -DWITH_TURBOJPEG=OFF + -DWITHOUT_TURBOJPEG=$(call ptx/ifdef, PTXCONF_LIBJPEG_TURBO,OFF,ON) # ---------------------------------------------------------------------------- # Target-Install @@ -76,6 +76,9 @@ $(STATEDIR)/libjpeg.targetinstall: @$(call install_fixup, libjpeg,DESCRIPTION,missing) @$(call install_lib, libjpeg, 0, 0, 0644, libjpeg) +ifdef PTXCONF_LIBJPEG_TURBO + @$(call install_lib, libjpeg, 0, 0, 0644, libturbojpeg) +endif ifdef PTXCONF_LIBJPEG_BIN @$(call install_copy, libjpeg, 0, 0, 0755, -, /usr/bin/cjpeg) @$(call install_copy, libjpeg, 0, 0, 0755, -, /usr/bin/djpeg) -- 2.30.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de