1################################################################################ 2# 3# libvpx 4# 5################################################################################ 6 7LIBVPX_VERSION = 1.11.0 8LIBVPX_SITE = $(call github,webmproject,libvpx,v$(LIBVPX_VERSION)) 9LIBVPX_LICENSE = BSD-3-Clause 10LIBVPX_LICENSE_FILES = LICENSE PATENTS 11LIBVPX_CPE_ID_VENDOR = webmproject 12LIBVPX_INSTALL_STAGING = YES 13 14# ld is being used with cc options. therefore, pretend ld is cc. 15LIBVPX_CONF_ENV = \ 16 LD="$(TARGET_CC)" \ 17 CROSS=$(GNU_TARGET_NAME) 18 19LIBVPX_CONF_OPTS = \ 20 --disable-examples \ 21 --disable-docs \ 22 --disable-unit-tests 23 24# vp9/ratectrl_rtc.cc 25ifeq ($(BR2_INSTALL_LIBSTDCPP),y) 26LIBVPX_CONF_OPTS += --enable-vp9-encoder 27else 28LIBVPX_CONF_OPTS += --disable-vp9-encoder 29endif 30 31# This is not a true autotools package. It is based on the ffmpeg build system 32define LIBVPX_CONFIGURE_CMDS 33 (cd $(LIBVPX_SRCDIR) && rm -rf config.cache && \ 34 $(TARGET_CONFIGURE_OPTS) \ 35 $(TARGET_CONFIGURE_ARGS) \ 36 $(LIBVPX_CONF_ENV) \ 37 ./configure \ 38 --target=generic-gnu \ 39 --enable-pic \ 40 --prefix=/usr \ 41 $(SHARED_STATIC_LIBS_OPTS) \ 42 $(LIBVPX_CONF_OPTS) \ 43 ) 44endef 45 46define LIBVPX_BUILD_CMDS 47 $(TARGET_MAKE_ENV) $(LIBVPX_MAKE_ENV) $(MAKE) -C $(@D) all 48endef 49 50define LIBVPX_INSTALL_STAGING_CMDS 51 $(TARGET_MAKE_ENV) $(LIBVPX_MAKE_ENV) $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(@D) install 52endef 53 54define LIBVPX_INSTALL_TARGET_CMDS 55 $(TARGET_MAKE_ENV) $(LIBVPX_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install 56endef 57 58$(eval $(generic-package)) 59