2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-06-03 08:32:24 +02:00
|
|
|
#
|
|
|
|
# jpeg-turbo
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-06-03 08:32:24 +02:00
|
|
|
|
2014-04-10 16:13:40 +02:00
|
|
|
JPEG_TURBO_VERSION = 1.3.1
|
2012-06-03 08:32:24 +02:00
|
|
|
JPEG_TURBO_SOURCE = libjpeg-turbo-$(JPEG_TURBO_VERSION).tar.gz
|
|
|
|
JPEG_TURBO_SITE = http://downloads.sourceforge.net/project/libjpeg-turbo/$(JPEG_TURBO_VERSION)
|
2014-05-07 14:28:03 +02:00
|
|
|
JPEG_TURBO_LICENSE = jpeg-license (BSD-3c-like)
|
|
|
|
JPEG_TURBO_LICENSE_FILES = README README-turbo.txt
|
2012-06-03 08:32:24 +02:00
|
|
|
JPEG_TURBO_INSTALL_STAGING = YES
|
|
|
|
JPEG_TURBO_CONF_OPT = --with-jpeg8
|
|
|
|
|
|
|
|
ifeq ($(BR2_X86_CPU_HAS_MMX)$(BR2_ARM_CPU_HAS_NEON),y)
|
|
|
|
JPEG_TURBO_CONF_OPT += --with-simd
|
|
|
|
# x86 simd support needs nasm
|
|
|
|
JPEG_TURBO_DEPENDENCIES += $(if $(BR2_X86_CPU_HAS_MMX),host-nasm)
|
|
|
|
else
|
|
|
|
JPEG_TURBO_CONF_OPT += --without-simd
|
|
|
|
endif
|
|
|
|
|
|
|
|
define JPEG_TURBO_REMOVE_USELESS_TOOLS
|
2014-02-11 03:07:38 +01:00
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/bin/,cjpeg djpeg jpegtran rdjpgcom tjbench wrjpgcom)
|
2012-06-03 08:32:24 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
JPEG_TURBO_POST_INSTALL_TARGET_HOOKS += JPEG_TURBO_REMOVE_USELESS_TOOLS
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|