1################################################################################ 2# 3# vo-aacenc 4# 5################################################################################ 6 7VO_AACENC_VERSION = 0.1.3 8VO_AACENC_SITE = http://downloads.sourceforge.net/project/opencore-amr/vo-aacenc 9VO_AACENC_LICENSE = Apache-2.0 10VO_AACENC_LICENSE_FILES = COPYING 11VO_AACENC_INSTALL_STAGING = YES 12 13VO_AACENC_CFLAGS = $(TARGET_CFLAGS) 14 15# arm specific asm optimizations 16ifeq ($(BR2_arm),y) 17 18ifeq ($(BR2_ARM_CPU_HAS_ARM),y) 19# vo-aacenc has ARM assembly code that cannot be compiled in Thumb2 20# mode, so we must force the traditional ARM mode. 21VO_AACENC_CFLAGS += -marm 22 23ifeq ($(BR2_ARM_CPU_HAS_NEON),y) 24VO_AACENC_CONF_OPTS += --enable-armv7neon 25# mfpu=neon needed to assemble neon code 26VO_AACENC_CFLAGS += -mfpu=neon 27else 28VO_AACENC_CONF_OPTS += --disable-armv7neon 29 30ifeq ($(BR2_ARM_CPU_ARMV4),) 31VO_AACENC_CONF_OPTS += --enable-armv5e 32else 33VO_AACENC_CONF_OPTS += --disable-armv5e 34endif 35 36endif # !neon 37 38else 39VO_AACENC_CONF_OPTS += --disable-armv7neon --disable-armv5e 40endif # has-arm 41endif # arm 42 43VO_AACENC_CONF_ENV = \ 44 CFLAGS="$(VO_AACENC_CFLAGS)" 45 46$(eval $(autotools-package)) 47