2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-26 19:12:20 +02:00
|
|
|
#
|
|
|
|
# libvpx
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-26 19:12:20 +02:00
|
|
|
|
2016-07-31 11:17:40 +02:00
|
|
|
LIBVPX_VERSION = 1.6.0
|
2015-04-08 00:53:31 +02:00
|
|
|
LIBVPX_SOURCE = libvpx-$(LIBVPX_VERSION).tar.bz2
|
|
|
|
LIBVPX_SITE = http://storage.googleapis.com/downloads.webmproject.org/releases/webm
|
2017-03-30 15:43:38 +02:00
|
|
|
LIBVPX_LICENSE = BSD-3-Clause
|
2013-05-26 19:12:20 +02:00
|
|
|
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)
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBVPX_CONF_OPTS = \
|
2013-05-26 19:12:20 +02:00
|
|
|
--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) \
|
2014-09-27 21:32:44 +02:00
|
|
|
$(LIBVPX_CONF_OPTS) \
|
2013-05-26 19:12:20 +02:00
|
|
|
)
|
|
|
|
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))
|