1 ################################################################################
5 ################################################################################
7 JPEG_TURBO_VERSION
= 1.4.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
= README README-turbo.txt
12 JPEG_TURBO_INSTALL_STAGING
= YES
13 JPEG_TURBO_CONF_OPTS
= --with-jpeg8
15 ifeq ($(BR2_X86_CPU_HAS_MMX
)$(BR2_ARM_CPU_HAS_NEON
),y
)
16 JPEG_TURBO_CONF_OPTS
+= --with-simd
17 # x86 simd support needs nasm
18 JPEG_TURBO_DEPENDENCIES
+= $(if
$(BR2_X86_CPU_HAS_MMX
),host-nasm
)
20 JPEG_TURBO_CONF_OPTS
+= --without-simd
23 define JPEG_TURBO_REMOVE_USELESS_TOOLS
24 rm -f
$(addprefix $(TARGET_DIR
)/usr
/bin
/,cjpeg djpeg jpegtran rdjpgcom tjbench wrjpgcom
)
27 JPEG_TURBO_POST_INSTALL_TARGET_HOOKS
+= JPEG_TURBO_REMOVE_USELESS_TOOLS
29 $(eval
$(autotools-package
))