diff --git a/thirdparty/libaom/HPKBUILD b/thirdparty/libaom/HPKBUILD new file mode 100755 index 0000000000000000000000000000000000000000..79a210bf8e199964d7b04848afdfc45b3ae6da53 --- /dev/null +++ b/thirdparty/libaom/HPKBUILD @@ -0,0 +1,65 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Contributor: Wenju Wang +# Maintainer: Wenju Wang + +pkgname=libaom +pkgver=v3.6.1 +pkgrel=0 +pkgdesc="Used for processing AV1 video codec" +url="https://gitlab.com/webmproject/libaom.git" +archs=("armeabi-v7a" "arm64-v8a") +license=("BSD 2-Clause 'Simplified' License") +depends=() +makedepends=() +source="https://gitlab.com/webmproject/$pkgname/-/archive/$pkgver/${pkgname}-${pkgver}.tar.gz" + +autounpack=true +downloadpackage=true +buildtools="cmake" +patchflag=true +builddir=${pkgname}-${pkgver} +packagename=${builddir}.tar.gz + +prepare() { + mkdir -p $builddir/${ARCH}-build +} + +build() { + cd $builddir + PKG_CONFIG_PATH="${pkgconfigpath}" cmake "$@" -DENABLE_NEON=OFF \ + -DHAVE_NEON=0 -DCMAKE_C_FLAGS=-mfloat-abi=softfp -Wno-unused-command-line-argument \ + -DCMAKE_CXX_FLAGS=-mfloat-abi=softfp -Wno-unused-command-line-argument \ + -B${ARCH}-build -S./ > $buildlog 2>&1 + $MAKE VERBOSE=1 -C ${ARCH}-build >> $buildlog 2>&1 + ret=$? + cd $OLDPWD + return $ret +} + +package() { + cd ${builddir} + $MAKE -C ${ARCH}-build install >> $buildlog 2>&1 + cd $OLDPWD +} + +check() { + echo "The test must be on an OpenHarmony device!" +} + +# 清理环境 +cleanbuild() { + rm -rf ${PWD}/$builddir #${PWD}/$packagename +} + diff --git a/thirdparty/libaom/SHA512SUM b/thirdparty/libaom/SHA512SUM new file mode 100644 index 0000000000000000000000000000000000000000..5226bb68864ce6dc74a0939ac88314227b7afc0e --- /dev/null +++ b/thirdparty/libaom/SHA512SUM @@ -0,0 +1 @@ +7f04a686fe841368282db4b54e38c692c26ac15e0757b7ac054de890622eed72e81f283ca0237b7d75fb0052664bfb8f21edfee1d236aa9c3cbe52c9764095b0 libaom-v3.6.1.tar.gz