2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-09-11 22:45:08 +02:00
|
|
|
#
|
|
|
|
# opus
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-09-11 22:45:08 +02:00
|
|
|
|
2019-04-14 21:16:53 +02:00
|
|
|
OPUS_VERSION = 1.3.1
|
2017-08-30 21:28:51 +02:00
|
|
|
OPUS_SITE = https://downloads.xiph.org/releases/opus
|
2017-03-30 15:43:38 +02:00
|
|
|
OPUS_LICENSE = BSD-3-Clause
|
2013-12-06 09:31:53 +01:00
|
|
|
OPUS_LICENSE_FILES = COPYING
|
2012-09-11 22:45:08 +02:00
|
|
|
OPUS_INSTALL_STAGING = YES
|
|
|
|
|
2019-05-21 15:39:31 +02:00
|
|
|
OPUS_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
|
|
|
OPUS_CFLAGS += -O0
|
|
|
|
endif
|
|
|
|
|
|
|
|
OPUS_CONF_ENV = CFLAGS="$(OPUS_CFLAGS)"
|
|
|
|
|
2014-02-05 09:14:39 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPUS_FIXED_POINT),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OPUS_CONF_OPTS += --enable-fixed-point
|
2012-09-11 22:45:08 +02:00
|
|
|
endif
|
|
|
|
|
2016-07-06 21:41:47 +02:00
|
|
|
# When we're on ARM, but we don't have ARM instructions (only
|
|
|
|
# Thumb-2), disable the usage of assembly as it is not Thumb-ready.
|
|
|
|
ifeq ($(BR2_arm)$(BR2_armeb):$(BR2_ARM_CPU_HAS_ARM),y:)
|
|
|
|
OPUS_CONF_OPTS += --disable-asm
|
|
|
|
endif
|
|
|
|
|
2012-09-11 22:45:08 +02:00
|
|
|
$(eval $(autotools-package))
|