distribution/packages/games/emulators/raze/libvpx/package.mk
2022-02-05 09:23:32 -05:00

39 lines
1.2 KiB
Makefile

PKG_NAME="libvpx"
PKG_VERSION="1.11.0"
PKG_LICENSE="BSD"
PKG_SITE="https://www.webmproject.org"
PKG_URL="https://github.com/webmproject/libvpx/archive/v${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="WebM VP8/VP9 Codec"
configure_target() {
case $ARCH in
aarch64)
PKG_TARGET_NAME_LIBVPX="arm64-linux-gcc"
;;
arm)
PKG_TARGET_NAME_LIBVPX="armv7-linux-gcc"
;;
x86_64)
PKG_TARGET_NAME_LIBVPX="x86_64-linux-gcc"
;;
esac
$PKG_CONFIGURE_SCRIPT --prefix=/usr \
--extra-cflags="$CFLAGS" \
--as=nasm \
--target=$PKG_TARGET_NAME_LIBVPX \
--disable-docs \
--disable-examples \
--disable-shared \
--disable-tools \
--disable-unit-tests \
--disable-vp8-decoder \
--disable-vp9-decoder \
--enable-ccache \
--enable-pic \
--enable-static \
--enable-vp8 \
--enable-vp9
}