xref: /OK3568_Linux_fs/buildroot/package/wavpack/wavpack.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# wavpack
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunWAVPACK_VERSION = 5.4.0
8*4882a593SmuzhiyunWAVPACK_SITE = \
9*4882a593Smuzhiyun	https://github.com/dbry/WavPack/releases/download/$(WAVPACK_VERSION)
10*4882a593SmuzhiyunWAVPACK_SOURCE = wavpack-$(WAVPACK_VERSION).tar.xz
11*4882a593SmuzhiyunWAVPACK_INSTALL_STAGING = YES
12*4882a593SmuzhiyunWAVPACK_DEPENDENCIES = $(if $(BR2_ENABLE_LOCALE),,libiconv)
13*4882a593SmuzhiyunWAVPACK_LICENSE = BSD-3-Clause
14*4882a593SmuzhiyunWAVPACK_LICENSE_FILES = COPYING
15*4882a593SmuzhiyunWAVPACK_CPE_ID_VENDOR = wavpack
16*4882a593Smuzhiyun
17*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBICONV),y)
18*4882a593SmuzhiyunWAVPACK_CONF_OPTS += LIBS=-liconv
19*4882a593Smuzhiyunendif
20*4882a593Smuzhiyun
21*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OPENSSL),y)
22*4882a593SmuzhiyunWAVPACK_DEPENDENCIES += openssl
23*4882a593SmuzhiyunWAVPACK_CONF_OPTS += --enable-libcrypto
24*4882a593Smuzhiyunelse
25*4882a593SmuzhiyunWAVPACK_CONF_OPTS += --disable-libcrypto
26*4882a593Smuzhiyunendif
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun# WavPack "autodetects" CPU type to enable ASM code. However, the assembly code
29*4882a593Smuzhiyun# for ARM is written for ARMv7 only and building WavPack for an ARM-non-v7
30*4882a593Smuzhiyun# architecture will fail. We explicitly enable ASM for the supported
31*4882a593Smuzhiyun# architectures x86, x64 and ARMv7 and disable it for all others.
32*4882a593Smuzhiyunifeq ($(BR2_i386)$(BR2_x86_64)$(BR2_ARM_CPU_ARMV7A),y)
33*4882a593SmuzhiyunWAVPACK_CONF_OPTS += --enable-asm
34*4882a593Smuzhiyunelse
35*4882a593SmuzhiyunWAVPACK_CONF_OPTS += --disable-asm
36*4882a593Smuzhiyunendif
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun$(eval $(autotools-package))
39