From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 28 Feb 2022 13:10:44 +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 1nOerU-00DDLY-5r for lore@lore.pengutronix.de; Mon, 28 Feb 2022 13:10:44 +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 1nOerT-0003an-Dx; Mon, 28 Feb 2022 13:10:43 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nOeqA-0001tq-Sw; Mon, 28 Feb 2022 13:09:22 +0100 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nOeqA-001oRB-SW; Mon, 28 Feb 2022 13:09:22 +0100 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1nOeq9-00B2ri-59; Mon, 28 Feb 2022 13:09:21 +0100 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Mon, 28 Feb 2022 13:09:21 +0100 Message-Id: <20220228120921.2631877-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220223113155.697245-1-p.zabel@pengutronix.de> References: <20220223113155.697245-1-p.zabel@pengutronix.de> MIME-Version: 1.0 Subject: Re: [ptxdist] [APPLIED] 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 Cc: Philipp Zabel 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 Thanks, applied as 7fe9471133ea89fc08f1fff62a6cf5f91a776607. Michael [sent from post-receive hook] On Mon, 28 Feb 2022 13:09:20 +0100, Philipp Zabel wrote: > Enable building libturbojpeg for users of the simplified API. > > Signed-off-by: Philipp Zabel > Message-Id: <20220223113155.697245-1-p.zabel@pengutronix.de> > Signed-off-by: Michael Olbrich > > 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..2807d9bc1d89 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 > + -DWITH_TURBOJPEG=$(call ptx/onoff,PTXCONF_LIBJPEG_TURBO) > > # ---------------------------------------------------------------------------- > # 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) _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de