The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libvpx / libvpx.mk
1 ################################################################################
2 #
3 # libvpx
4 #
5 ################################################################################
6
7 LIBVPX_VERSION = 1.4.0
8 LIBVPX_SOURCE = libvpx-$(LIBVPX_VERSION).tar.bz2
9 LIBVPX_SITE = http://storage.googleapis.com/downloads.webmproject.org/releases/webm
10 LIBVPX_LICENSE = BSD-3c
11 LIBVPX_LICENSE_FILES = LICENSE PATENTS
12 LIBVPX_INSTALL_STAGING = YES
13
14 # ld is being used with cc options. therefore, pretend ld is cc.
15 LIBVPX_CONF_ENV = \
16         LD="$(TARGET_CC)" \
17         CROSS=$(GNU_TARGET_NAME)
18
19 LIBVPX_CONF_OPTS = \
20         --disable-examples \
21         --disable-docs \
22         --disable-unit-tests
23
24 # This is not a true autotools package.  It is based on the ffmpeg build system
25 define LIBVPX_CONFIGURE_CMDS
26         (cd $(LIBVPX_SRCDIR) && rm -rf config.cache && \
27         $(TARGET_CONFIGURE_OPTS) \
28         $(TARGET_CONFIGURE_ARGS) \
29         $(LIBVPX_CONF_ENV) \
30         ./configure \
31                 --target=generic-gnu \
32                 --enable-pic \
33                 --prefix=/usr \
34                 $(SHARED_STATIC_LIBS_OPTS) \
35                 $(LIBVPX_CONF_OPTS) \
36         )
37 endef
38
39 define LIBVPX_BUILD_CMDS
40         $(TARGET_MAKE_ENV) $(LIBVPX_MAKE_ENV) $(MAKE) -C $(@D) all
41 endef
42
43 define LIBVPX_INSTALL_STAGING_CMDS
44         $(TARGET_MAKE_ENV) $(LIBVPX_MAKE_ENV) $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(@D) install
45 endef
46
47 define LIBVPX_INSTALL_TARGET_CMDS
48         $(TARGET_MAKE_ENV) $(LIBVPX_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install
49 endef
50
51 $(eval $(generic-package))