package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / jpeg-turbo / jpeg-turbo.mk
blob25434b196788da3618c56e5eb60122a1ccd8e9f9
1 ################################################################################
3 # jpeg-turbo
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)
19 else
20 JPEG_TURBO_CONF_OPTS += --without-simd
21 endif
23 define JPEG_TURBO_REMOVE_USELESS_TOOLS
24 rm -f $(addprefix $(TARGET_DIR)/usr/bin/,cjpeg djpeg jpegtran rdjpgcom tjbench wrjpgcom)
25 endef
27 JPEG_TURBO_POST_INSTALL_TARGET_HOOKS += JPEG_TURBO_REMOVE_USELESS_TOOLS
29 $(eval $(autotools-package))