python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / jpeg-turbo / jpeg-turbo.mk
blobe2b7e63b9aa7e74bca94fcd840edf9b9ea8f84e0
1 ################################################################################
3 # jpeg-turbo
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)
22 else
23 JPEG_TURBO_CONF_OPTS += --without-simd
24 endif
26 define JPEG_TURBO_REMOVE_USELESS_TOOLS
27 rm -f $(addprefix $(TARGET_DIR)/usr/bin/,cjpeg djpeg jpegtran rdjpgcom tjbench wrjpgcom)
28 endef
30 JPEG_TURBO_POST_INSTALL_TARGET_HOOKS += JPEG_TURBO_REMOVE_USELESS_TOOLS
32 $(eval $(autotools-package))