summaryrefslogtreecommitdiffstats
path: root/contrib/libvpx/module.defs
blob: ac65872604652144ea4b7b88b041eb393b770d5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
__deps__ := YASM
ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system))
__deps__ += PTHREADW32
endif


$(eval $(call import.MODULE.defs,LIBVPX,libvpx,$(__deps__)))
$(eval $(call import.CONTRIB.defs,LIBVPX))

LIBVPX.FETCH.url     = https://download.handbrake.fr/contrib/libvpx-1.5.0.tar.bz2
LIBVPX.FETCH.url    += http://downloads.webmproject.org/releases/webm/libvpx-1.5.0.tar.bz2
LIBVPX.FETCH.sha256  = 306d67908625675f8e188d37a81fbfafdf5068b09d9aa52702b6fbe601c76797

LIBVPX.CONFIGURE.args.host =
LIBVPX.CONFIGURE.deps  =
LIBVPX.CONFIGURE.extra =  \
    --as=yasm \
    --enable-vp8-encoder  \
    --disable-vp8-decoder \
    --enable-vp9-encoder  \
    --disable-vp9-decoder \
    --disable-vp10        \
    --disable-examples    \
    --disable-docs        \
    --disable-unit-tests

ifeq (1,$(BUILD.cross))
    LIBVPX.CONFIGURE.env.CROSS  = CROSS="$(BUILD.spec)-"
    LIBVPX.CONFIGURE.args.build =
    LIBVPX.CONFIGURE.extra += --enable-static-msvcrt
    ifeq (i686,$(BUILD.machine))
        LIBVPX.CONFIGURE.extra += --target=x86-win32-gcc
    else ifeq (x86_64,$(BUILD.machine))
        LIBVPX.CONFIGURE.extra += --target=x86_64-win64-gcc
    endif
endif

ifeq (linux,$(BUILD.system))
    ifeq (x86_64,$(BUILD.machine))
        LIBVPX.CONFIGURE.extra += --enable-pic
    endif
endif

ifeq (1,$(FEATURE.local_yasm))
    LIBVPX.CONFIGURE.env.LOCAL_PATH = PATH="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)"
    LIBVPX.BUILD.env = PATH="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)"
endif