1 ################################################################################
5 ################################################################################
7 JPEG_TURBO_VERSION
= 1.5.1
8 JPEG_TURBO_SOURCE
= libjpeg-turbo-
$(JPEG_TURBO_VERSION
).
tar.gz
9 JPEG_TURBO_SITE
= http
://downloads.sourceforge.net
/project
/libjpeg-turbo
/$(JPEG_TURBO_VERSION
)
10 JPEG_TURBO_LICENSE
= jpeg-license
(BSD-3c-like
)
11 JPEG_TURBO_LICENSE_FILES
= LICENSE.md
12 JPEG_TURBO_INSTALL_STAGING
= YES
13 JPEG_TURBO_PROVIDES
= jpeg
14 JPEG_TURBO_DEPENDENCIES
= host-pkgconf
16 JPEG_TURBO_CONF_OPTS
= --with-jpeg8
18 ifeq ($(BR2_PACKAGE_JPEG_SIMD_SUPPORT
),y
)
19 JPEG_TURBO_CONF_OPTS
+= --with-simd
20 # x86 simd support needs nasm
21 JPEG_TURBO_DEPENDENCIES
+= $(if
$(BR2_X86_CPU_HAS_MMX
),host-nasm
)
23 JPEG_TURBO_CONF_OPTS
+= --without-simd
26 define JPEG_TURBO_REMOVE_USELESS_TOOLS
27 rm -f
$(addprefix $(TARGET_DIR
)/usr
/bin
/,cjpeg djpeg jpegtran rdjpgcom tjbench wrjpgcom
)
30 JPEG_TURBO_POST_INSTALL_TARGET_HOOKS
+= JPEG_TURBO_REMOVE_USELESS_TOOLS
32 $(eval
$(autotools-package
))