2682d77d1a
Switched _SITE to github, current _SITE is broken. The URL https://chromium.googlesource.com/webm/libvpx/+archive/v1.7.0.tar.gz proposed by upstream https://storage.googleapis.com/downloads.webmproject.org/releases/webm/index.html provides archives with different hashes for each download so we use Github instead. Added license hashes. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# libvpx
|
|
#
|
|
################################################################################
|
|
|
|
LIBVPX_VERSION = v1.7.0
|
|
LIBVPX_SITE = $(call github,webmproject,libvpx,$(LIBVPX_VERSION))
|
|
LIBVPX_LICENSE = BSD-3-Clause
|
|
LIBVPX_LICENSE_FILES = LICENSE PATENTS
|
|
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
|
|
|
|
# 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))
|