mirror of https://github.com/OpenIPC/firmware.git
33 lines
979 B
Makefile
33 lines
979 B
Makefile
################################################################################
|
|
#
|
|
# opus-openipc
|
|
#
|
|
################################################################################
|
|
|
|
OPUS_OPENIPC_VERSION = 1.3.1
|
|
OPUS_OPENIPC_SOURCE = opus-$(OPUS_OPENIPC_VERSION).tar.gz
|
|
OPUS_OPENIPC_SITE = https://downloads.xiph.org/releases/opus
|
|
OPUS_OPENIPC_LICENSE = BSD-3-Clause
|
|
OPUS_OPENIPC_LICENSE_FILES = COPYING
|
|
OPUS_OPENIPC_INSTALL_STAGING = YES
|
|
|
|
OPUS_OPENIPC_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
|
OPUS_OPENIPC_CFLAGS += -O0
|
|
endif
|
|
|
|
OPUS_OPENIPC_CONF_ENV = CFLAGS="$(OPUS_OPENIPC_CFLAGS)"
|
|
|
|
ifeq ($(BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT),y)
|
|
OPUS_OPENIPC_CONF_OPTS += --enable-fixed-point
|
|
endif
|
|
|
|
# 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_OPENIPC_CONF_OPTS += --disable-asm
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|