banana-pro: bring it in shape
[openadk.git] / package / libvpx / Makefile
blob7f31d719c63e9c357046b16902f105ebd029f7c6
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= libvpx
7 PKG_VERSION:= 1.14.0
8 PKG_RELEASE:= 1
9 PKG_HASH:= 5f21d2db27071c8a46f1725928a10227ae45c5cd1cad3727e4aafbe476e321fa
10 PKG_DESCR:= vp8/vp9 codec library
11 PKG_SECTION:= libs/video
12 PKG_BUILDDEP:= yasm-host
13 PKG_URL:= http://www.webmproject.org/about/
14 PKG_SITES:= https://github.com/webmproject/libvpx/archive/refs/tags/
15 PKG_OPTS:= dev
17 DISTFILES:= v${PKG_VERSION}.tar.gz
19 include $(ADK_TOPDIR)/mk/package.mk
21 $(eval $(call PKG_template,LIBVPX,libvpx,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
23 CONFIGURE_ENV+= LD=$(TARGET_CC)
25 CONFIG_STYLE:= minimal
26 ifeq ($(ADK_TARGET_ARCH_AARCH64),y)
27 CONFIGURE_ARGS+= --target=armv8-linux-gcc
28 endif
29 ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM_VEXPRESS_A9),y)
30 CONFIGURE_ARGS+= --target=armv7-linux-gcc
31 endif
32 ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_IMX6),y)
33 CONFIGURE_ARGS+= --target=armv7-linux-gcc
34 endif
35 ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
36 CONFIGURE_ARGS+= --target=armv6-linux-gcc
37 endif
38 ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI2),y)
39 CONFIGURE_ARGS+= --target=armv7-linux-gcc
40 endif
41 ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI3),y)
42 CONFIGURE_ARGS+= --target=armv7-linux-gcc
43 endif
44 ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI3P),y)
45 CONFIGURE_ARGS+= --target=armv7-linux-gcc
46 endif
47 ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI4),y)
48 CONFIGURE_ARGS+= --target=armv7-linux-gcc
49 endif
50 ifeq ($(ADK_TARGET_SYSTEM_SHARP_ZAURUS),y)
51 CONFIGURE_ARGS+= --target=armv5te-linux-gcc
52 endif
53 ifeq ($(ADK_TARGET_SYSTEM_ACMESYSTEMS_FOXG20),y)
54 CONFIGURE_ARGS+= --target=armv5te-linux-gcc
55 endif
56 ifeq ($(ADK_TARGET_ARCH_MIPS),y)
57 CONFIGURE_ARGS+= --target=mips32-linux-gcc
58 endif
59 ifeq ($(ADK_TARGET_CPU_MIPS64_LOONGSON2F),y)
60 CONFIGURE_ARGS+= --target=loongson2f-linux-gcc
61 endif
62 ifeq ($(ADK_TARGET_ARCH_MIPS64),y)
63 CONFIGURE_ARGS+= --target=mips64-linux-gcc
64 endif
65 ifeq ($(ADK_TARGET_ARCH_X86),y)
66 CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
67 endif
68 ifeq ($(ADK_TARGET_ARCH_X86_64),y)
69 CONFIGURE_ARGS+= --target=x86_64-linux-gcc --as=yasm
70 endif
71 ifeq ($(ADK_TARGET_ARCH_XTENSA),y)
72 CONFIGURE_ARGS+= --target=generic-gnu
73 endif
74 CONFIGURE_ARGS+= --prefix=/usr \
75 --disable-install-docs \
76 --disable-install-bins \
77 --enable-install-libs \
78 --disable-unit-tests \
79 --disable-docs \
80 --disable-examples \
81 --enable-shared
82 ALL_TARGET:=
84 post-extract:
85 chmod a+x $(WRKBUILD)/build/make/*.sh
86 chmod a+x $(WRKBUILD)/build/make/*.pl
88 libvpx-install:
89 $(INSTALL_DIR) $(IDIR_LIBVPX)/usr/lib
90 $(CP) $(WRKINST)/usr/lib/libvpx.so* \
91 $(IDIR_LIBVPX)/usr/lib
93 include ${ADK_TOPDIR}/mk/pkg-bottom.mk