2014-02-17 10:16:27 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# vo-aacenc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
VO_AACENC_VERSION = 0.1.3
|
|
|
|
VO_AACENC_SITE = http://downloads.sourceforge.net/project/opencore-amr/vo-aacenc
|
|
|
|
VO_AACENC_LICENSE = Apache-2.0
|
|
|
|
VO_AACENC_LICENSE_FILES = COPYING
|
|
|
|
VO_AACENC_INSTALL_STAGING = YES
|
|
|
|
|
2014-04-20 23:23:32 +02:00
|
|
|
VO_AACENC_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
|
2014-02-17 10:16:27 +01:00
|
|
|
# arm specific asm optimizations
|
|
|
|
ifeq ($(BR2_arm),y)
|
|
|
|
|
2014-04-20 23:23:32 +02:00
|
|
|
# vo-aacenc has ARM assembly code that cannot be compiled in Thumb2
|
|
|
|
# mode, so we must force the traditional ARM mode.
|
|
|
|
VO_AACENC_CFLAGS += -marm
|
|
|
|
|
2014-02-17 10:16:27 +01:00
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
|
|
|
|
VO_AACENC_CONF_OPT += --enable-armv7neon
|
|
|
|
# mfpu=neon needed to assemble neon code
|
2014-04-20 23:23:32 +02:00
|
|
|
VO_AACENC_CFLAGS += -mfpu=neon
|
2014-02-17 10:16:27 +01:00
|
|
|
else
|
|
|
|
VO_AACENC_CONF_OPT += --disable-armv7neon
|
|
|
|
|
2014-05-07 19:10:05 +02:00
|
|
|
ifeq ($(BR2_arm920t)$(BR2_arm922t)$(BR2_strongarm)$(BR2_fa526),)
|
2014-02-17 10:16:27 +01:00
|
|
|
VO_AACENC_CONF_OPT += --enable-armv5e
|
|
|
|
else
|
|
|
|
VO_AACENC_CONF_OPT += --disable-armv5e
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif # !neon
|
|
|
|
endif # arm
|
|
|
|
|
2014-04-20 23:23:32 +02:00
|
|
|
VO_AACENC_CONF_ENV = \
|
|
|
|
CFLAGS="$(VO_AACENC_CFLAGS)"
|
|
|
|
|
2014-02-17 10:16:27 +01:00
|
|
|
$(eval $(autotools-package))
|