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
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/
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
29 ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM_VEXPRESS_A9
),y
)
30 CONFIGURE_ARGS
+= --target
=armv7-linux-gcc
32 ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
),y
)
33 CONFIGURE_ARGS
+= --target
=armv7-linux-gcc
35 ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI
),y
)
36 CONFIGURE_ARGS
+= --target
=armv6-linux-gcc
38 ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI2
),y
)
39 CONFIGURE_ARGS
+= --target
=armv7-linux-gcc
41 ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI3
),y
)
42 CONFIGURE_ARGS
+= --target
=armv7-linux-gcc
44 ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI3P
),y
)
45 CONFIGURE_ARGS
+= --target
=armv7-linux-gcc
47 ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI4
),y
)
48 CONFIGURE_ARGS
+= --target
=armv7-linux-gcc
50 ifeq ($(ADK_TARGET_SYSTEM_SHARP_ZAURUS
),y
)
51 CONFIGURE_ARGS
+= --target
=armv5te-linux-gcc
53 ifeq ($(ADK_TARGET_SYSTEM_ACMESYSTEMS_FOXG20
),y
)
54 CONFIGURE_ARGS
+= --target
=armv5te-linux-gcc
56 ifeq ($(ADK_TARGET_ARCH_MIPS
),y
)
57 CONFIGURE_ARGS
+= --target
=mips32-linux-gcc
59 ifeq ($(ADK_TARGET_CPU_MIPS64_LOONGSON2F
),y
)
60 CONFIGURE_ARGS
+= --target
=loongson2f-linux-gcc
62 ifeq ($(ADK_TARGET_ARCH_MIPS64
),y
)
63 CONFIGURE_ARGS
+= --target
=mips64-linux-gcc
65 ifeq ($(ADK_TARGET_ARCH_X86
),y
)
66 CONFIGURE_ARGS
+= --target
=x86-linux-gcc
--as=yasm
68 ifeq ($(ADK_TARGET_ARCH_X86_64
),y
)
69 CONFIGURE_ARGS
+= --target
=x86_64-linux-gcc
--as=yasm
71 ifeq ($(ADK_TARGET_ARCH_XTENSA
),y
)
72 CONFIGURE_ARGS
+= --target
=generic-gnu
74 CONFIGURE_ARGS
+= --prefix=/usr \
75 --disable-install-docs \
76 --disable-install-bins \
77 --enable-install-libs \
78 --disable-unit-tests \
85 chmod a
+x
$(WRKBUILD
)/build
/make
/*.sh
86 chmod a
+x
$(WRKBUILD
)/build
/make
/*.pl
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