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)
|
2014-09-27 21:32:44 +02:00
|
|
|
VO_AACENC_CONF_OPTS += --enable-armv7neon
|
2014-02-17 10:16:27 +01:00
|
|
|
# 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
|
2014-09-27 21:32:44 +02:00
|
|
|
VO_AACENC_CONF_OPTS += --disable-armv7neon
|
2014-02-17 10:16:27 +01:00
|
|
|
|
2014-10-21 22:27:01 +02:00
|
|
|
ifeq ($(BR2_ARM_CPU_ARMV4),)
|
2014-09-27 21:32:44 +02:00
|
|
|
VO_AACENC_CONF_OPTS += --enable-armv5e
|
2014-02-17 10:16:27 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VO_AACENC_CONF_OPTS += --disable-armv5e
|
2014-02-17 10:16:27 +01:00
|
|
|
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))
|