1################################################################################ 2# 3# wavpack 4# 5################################################################################ 6 7WAVPACK_VERSION = 5.4.0 8WAVPACK_SITE = \ 9 https://github.com/dbry/WavPack/releases/download/$(WAVPACK_VERSION) 10WAVPACK_SOURCE = wavpack-$(WAVPACK_VERSION).tar.xz 11WAVPACK_INSTALL_STAGING = YES 12WAVPACK_DEPENDENCIES = $(if $(BR2_ENABLE_LOCALE),,libiconv) 13WAVPACK_LICENSE = BSD-3-Clause 14WAVPACK_LICENSE_FILES = COPYING 15WAVPACK_CPE_ID_VENDOR = wavpack 16 17ifeq ($(BR2_PACKAGE_LIBICONV),y) 18WAVPACK_CONF_OPTS += LIBS=-liconv 19endif 20 21ifeq ($(BR2_PACKAGE_OPENSSL),y) 22WAVPACK_DEPENDENCIES += openssl 23WAVPACK_CONF_OPTS += --enable-libcrypto 24else 25WAVPACK_CONF_OPTS += --disable-libcrypto 26endif 27 28# WavPack "autodetects" CPU type to enable ASM code. However, the assembly code 29# for ARM is written for ARMv7 only and building WavPack for an ARM-non-v7 30# architecture will fail. We explicitly enable ASM for the supported 31# architectures x86, x64 and ARMv7 and disable it for all others. 32ifeq ($(BR2_i386)$(BR2_x86_64)$(BR2_ARM_CPU_ARMV7A),y) 33WAVPACK_CONF_OPTS += --enable-asm 34else 35WAVPACK_CONF_OPTS += --disable-asm 36endif 37 38$(eval $(autotools-package)) 39