distribution/packages/multimedia/aom/package.mk
2023-02-28 19:58:37 -05:00

24 lines
811 B
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="aom"
PKG_VERSION="3.6.0"
PKG_LICENSE="BSD"
PKG_SITE="https://www.webmproject.org"
PKG_URL="https://storage.googleapis.com/aom-releases/libaom-${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain llvm"
PKG_LONGDESC="AV1 Codec Library"
PKG_BUILD_FLAGS="+pic"
PKG_CMAKE_OPTS_TARGET="-DENABLE_CCACHE=1 \
-DENABLE_DOCS=0 \
-DENABLE_EXAMPLES=0 \
-DENABLE_TESTS=0 \
-DENABLE_TOOLS=0 \
-DBUILD_SHARED_LIBS=0"
if [ "${TARGET_ARCH}" = "x86_64" ]; then
PKG_DEPENDS_TARGET+=" nasm:host"
elif ! target_has_feature neon; then
PKG_CMAKE_OPTS_TARGET+=" -DENABLE_NEON=0 -DENABLE_NEON_ASM=0"
fi