mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 16:01:54 -09:00
package/jpeg-turbo: use configure option WITH_{TESTS, TOOLS}
Buildroot commitc531fe6520bumped the package to 3.1.2. This version first included upstream commit942ac87e47which added configure options to disable the build of command-line tools and tests. This patch replaces the current _POST_INSTALL_TARGET_HOOK with the new configure option and disables the build of tests. Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
212b7edc22
commit
d74a065a16
@@ -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,10 @@ 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))
|
||||
|
||||
Reference in New Issue
Block a user