2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="aom"
|
2022-07-01 18:56:04 +00:00
|
|
|
PKG_VERSION="fc430c57c7b0307b4c5ffb686cd90b3c010d08d2" # 3.4.0
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="BSD"
|
|
|
|
PKG_SITE="https://www.webmproject.org"
|
2022-07-01 18:56:04 +00:00
|
|
|
PKG_URL="https://aomedia.googlesource.com/aom/+archive/${PKG_VERSION}.tar.gz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
|
|
PKG_LONGDESC="AV1 Codec Library"
|
2022-07-01 18:56:04 +00:00
|
|
|
PKG_BUILD_FLAGS="+pic"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_CMAKE_OPTS_TARGET="-DENABLE_CCACHE=1 \
|
|
|
|
-DENABLE_DOCS=0 \
|
|
|
|
-DENABLE_EXAMPLES=0 \
|
|
|
|
-DENABLE_TESTS=0 \
|
|
|
|
-DENABLE_TOOLS=0"
|
|
|
|
|
2022-07-01 18:56:04 +00:00
|
|
|
if [ "${TARGET_ARCH}" = "x86_64" ]; then
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET+=" nasm:host"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if ! target_has_feature neon; then
|
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DENABLE_NEON=0 -DENABLE_NEON_ASM=0"
|
|
|
|
fi
|
2022-07-01 18:56:04 +00:00
|
|
|
|
|
|
|
unpack() {
|
|
|
|
mkdir -p ${PKG_BUILD}
|
|
|
|
tar --strip-components=0 -xf ${SOURCES}/${PKG_NAME}/${PKG_NAME}-${PKG_VERSION}.tar.gz -C ${PKG_BUILD}
|
|
|
|
}
|