06a1a05b55
Encoding rate control interface for v8 is implemented in c++:
65a1751e5b
and was added to libvpx in v1.12.0 which was added to buildroot with
https://git.busybox.net/buildroot/commit/?id=e4ff284ba88ea0cb41c190165cb42a174c5faa23
Disable vp8 encoding when toolchain lacks c++.
Fixes:
http://autobuild.buildroot.net/results/a3524b954e53002973b423ce23b4c43ff5281ab5/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
59 lines
1.6 KiB
Makefile
59 lines
1.6 KiB
Makefile
################################################################################
|
|
#
|
|
# libvpx
|
|
#
|
|
################################################################################
|
|
|
|
LIBVPX_VERSION = 1.12.0
|
|
LIBVPX_SITE = $(call github,webmproject,libvpx,v$(LIBVPX_VERSION))
|
|
LIBVPX_LICENSE = BSD-3-Clause
|
|
LIBVPX_LICENSE_FILES = LICENSE PATENTS
|
|
LIBVPX_CPE_ID_VENDOR = webmproject
|
|
LIBVPX_INSTALL_STAGING = YES
|
|
|
|
# ld is being used with cc options. therefore, pretend ld is cc.
|
|
LIBVPX_CONF_ENV = \
|
|
LD="$(TARGET_CC)" \
|
|
CROSS=$(GNU_TARGET_NAME)
|
|
|
|
LIBVPX_CONF_OPTS = \
|
|
--disable-examples \
|
|
--disable-docs \
|
|
--disable-unit-tests
|
|
|
|
# vp8/ratectrl_rtc.cc vp9/ratectrl_rtc.cc
|
|
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
|
LIBVPX_CONF_OPTS += --enable-vp8-encoder --enable-vp9-encoder
|
|
else
|
|
LIBVPX_CONF_OPTS += --disable-vp8-encoder --disable-vp9-encoder
|
|
endif
|
|
|
|
# This is not a true autotools package. It is based on the ffmpeg build system
|
|
define LIBVPX_CONFIGURE_CMDS
|
|
(cd $(LIBVPX_SRCDIR) && rm -rf config.cache && \
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
$(TARGET_CONFIGURE_ARGS) \
|
|
$(LIBVPX_CONF_ENV) \
|
|
./configure \
|
|
--target=generic-gnu \
|
|
--enable-pic \
|
|
--prefix=/usr \
|
|
$(SHARED_STATIC_LIBS_OPTS) \
|
|
$(LIBVPX_CONF_OPTS) \
|
|
)
|
|
endef
|
|
|
|
define LIBVPX_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(LIBVPX_MAKE_ENV) $(MAKE) -C $(@D) all
|
|
endef
|
|
|
|
define LIBVPX_INSTALL_STAGING_CMDS
|
|
$(TARGET_MAKE_ENV) $(LIBVPX_MAKE_ENV) $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(@D) install
|
|
endef
|
|
|
|
define LIBVPX_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(LIBVPX_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|