[Buildroot] [PATCH 1/2] package/jpeg-turbo: use configure option WITH_{TESTS, TOOLS}
Bernd Kuhls <[email protected]> Sun, 26 Jul 2026 19:54:16 +0200
| Newsgroups | net.busybox.buildroot |
|---|---|
| Message-ID | <[email protected]> |
Buildroot commit c531fe65209defd356e5ee8142896478a20ab371 bumped the package to 3.1.2. This version first included upstream commit https://github.com/libjpeg-turbo/libjpeg-turbo/commit/942ac87e479c48199d48781e9a5b2cda3b910d7b which added configure options to disable the build of command-line tools and tests. This patch replaces the currrent _POST_INSTALL_TARGET_HOOK with the new configure option and disables the build of tests. Please note that the line wrap at -DWITH_TOOLS=ON prepares for a subsequent patch. Signed-off-by: Bernd Kuhls <[email protected]> --- Gitlab pipeline passed: https://gitlab.com/bkuhls/buildroot/-/commits/ffb46c1044375c2566fdfdd42daefb3431bd9945 package/jpeg-turbo/jpeg-turbo.mk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package/jpeg-turbo/jpeg-turbo.mk b/package/jpeg-turbo/jpeg-turbo.mk index 9a10110766..36a0260f40 100644 --- a/package/jpeg-turbo/jpeg-turbo.mk +++ b/package/jpeg-turbo/jpeg-turbo.mk @@ -15,7 +15,7 @@ JPEG_TURBO_INSTALL_STAGING = YES JPEG_TURBO_PROVIDES = jpeg JPEG_TURBO_DEPENDENCIES = host-pkgconf -JPEG_TURBO_CONF_OPTS = -DWITH_JPEG8=ON +JPEG_TURBO_CONF_OPTS = -DWITH_JPEG8=ON -DWITH_TESTS=OFF ifeq ($(BR2_STATIC_LIBS),y) JPEG_TURBO_CONF_OPTS += -DENABLE_STATIC=ON -DENABLE_SHARED=OFF @@ -43,11 +43,11 @@ ifeq ($(BR2_STATIC_LIBS),) JPEG_TURBO_CONF_OPTS += -DCMAKE_POSITION_INDEPENDENT_CODE=ON endif -ifeq ($(BR2_PACKAGE_JPEG_TURBO_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_TOOLS +ifeq ($(BR2_PACKAGE_JPEG_TURBO_TOOLS),y) +JPEG_TURBO_CONF_OPTS += \ + -DWITH_TOOLS=ON +else +JPEG_TURBO_CONF_OPTS += -DWITH_TOOLS=OFF endif $(eval $(cmake-package)) -- 2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot