xref: /OK3568_Linux_fs/buildroot/package/opus/opus.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# opus
4#
5################################################################################
6
7OPUS_VERSION = 1.3.1
8OPUS_SITE = https://downloads.xiph.org/releases/opus
9OPUS_LICENSE = BSD-3-Clause
10OPUS_LICENSE_FILES = COPYING
11OPUS_INSTALL_STAGING = YES
12
13OPUS_CFLAGS = $(TARGET_CFLAGS)
14
15ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
16OPUS_CFLAGS += -O0
17endif
18
19OPUS_CONF_ENV = CFLAGS="$(OPUS_CFLAGS)"
20
21ifeq ($(BR2_PACKAGE_OPUS_FIXED_POINT),y)
22OPUS_CONF_OPTS += --enable-fixed-point
23endif
24
25# When we're on ARM, but we don't have ARM instructions (only
26# Thumb-2), disable the usage of assembly as it is not Thumb-ready.
27ifeq ($(BR2_arm)$(BR2_armeb):$(BR2_ARM_CPU_HAS_ARM),y:)
28OPUS_CONF_OPTS += --disable-asm
29endif
30
31$(eval $(autotools-package))
32