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
|
|
|
|
2017-07-24 20:26:03 +02:00
|
|
|
JPEG_TURBO_VERSION = 1.5.2
|
2012-06-03 08:32:24 +02:00
|
|
|
JPEG_TURBO_SOURCE = libjpeg-turbo-$(JPEG_TURBO_VERSION).tar.gz
|
2017-07-24 20:26:03 +02:00
|
|
|
JPEG_TURBO_SITE = https://downloads.sourceforge.net/project/libjpeg-turbo/$(JPEG_TURBO_VERSION)
|
2017-03-30 15:43:38 +02:00
|
|
|
JPEG_TURBO_LICENSE = jpeg-license (BSD-3-Clause-like)
|
2016-12-11 09:00:29 +01:00
|
|
|
JPEG_TURBO_LICENSE_FILES = LICENSE.md
|
2012-06-03 08:32:24 +02:00
|
|
|
JPEG_TURBO_INSTALL_STAGING = YES
|
2016-09-04 00:58:42 +02:00
|
|
|
JPEG_TURBO_PROVIDES = jpeg
|
2016-12-11 16:52:16 +01:00
|
|
|
JPEG_TURBO_DEPENDENCIES = host-pkgconf
|
2016-09-04 00:58:42 +02:00
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
JPEG_TURBO_CONF_OPTS = --with-jpeg8
|
2012-06-03 08:32:24 +02:00
|
|
|
|
2016-12-11 16:52:17 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_JPEG_SIMD_SUPPORT),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
JPEG_TURBO_CONF_OPTS += --with-simd
|
2012-06-03 08:32:24 +02:00
|
|
|
# x86 simd support needs nasm
|
|
|
|
JPEG_TURBO_DEPENDENCIES += $(if $(BR2_X86_CPU_HAS_MMX),host-nasm)
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
JPEG_TURBO_CONF_OPTS += --without-simd
|
2012-06-03 08:32:24 +02:00
|
|
|
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))
|