4bb5e380f0
The recent bump to version 5.1.0 added a dependency on wchar:
```
import_id3.c:37:34: error: unknown type name 'wchar_t'
```
This issue has been reported upstream [1] and a fix was commited by
upstream to remove the wchar dependency [2].
Fixes:
http://autobuild.buildroot.net/results/9a6/9a693f5b798571917f36cfb7661e2f2638aac550/
http://autobuild.buildroot.net/results/44c/44c8227043045baf4f043da44b8129e43dfff687/
http://autobuild.buildroot.net/results/a80/a80221dcc0860046ebdf0bbf454e056b1e20df83/
.. and more.
The build was successfully tested with the 'br-arm-basic-2017.02-rc1-2-g133c5ac'
toolchain.
[1] https://github.com/dbry/WavPack/issues/19
[2] 876fc3f390
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
33 lines
1.1 KiB
Makefile
33 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# wavpack
|
|
#
|
|
################################################################################
|
|
|
|
WAVPACK_VERSION = 5.1.0
|
|
WAVPACK_SITE = http://www.wavpack.com
|
|
WAVPACK_SOURCE = wavpack-$(WAVPACK_VERSION).tar.bz2
|
|
WAVPACK_INSTALL_STAGING = YES
|
|
WAVPACK_DEPENDENCIES = $(if $(BR2_ENABLE_LOCALE),,libiconv)
|
|
WAVPACK_LICENSE = BSD-3c
|
|
WAVPACK_LICENSE_FILES = COPYING
|
|
|
|
# Fetch patch from upstream to remove wchar dependency
|
|
WAVPACK_PATCH = https://github.com/dbry/WavPack/commit/876fc3f3907e871d0938ac6c8c5252f5f31abd1f.patch
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
WAVPACK_CONF_OPTS += LIBS=-liconv
|
|
endif
|
|
|
|
# WavPack "autodetects" CPU type to enable ASM code. However, the assembly code
|
|
# for ARM is written for ARMv7 only and building WavPack for an ARM-non-v7
|
|
# architecture will fail. We explicitly enable ASM for the supported
|
|
# architectures x86, x64 and ARMv7 and disable it for all others.
|
|
ifeq ($(BR2_i386)$(BR2_x86_64)$(BR2_ARM_CPU_ARMV7A),y)
|
|
WAVPACK_CONF_OPTS += --enable-asm
|
|
else
|
|
WAVPACK_CONF_OPTS += --disable-asm
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|