From 56c884f22de5372f72ffff6ffbf837105a006cf5 Mon Sep 17 00:00:00 2001 From: weugit Date: Mon, 20 Nov 2023 14:27:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0libaom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: weugit --- thirdparty/libaom/HPKBUILD | 65 +++++++++++++++++++++++++++++++++++++ thirdparty/libaom/SHA512SUM | 1 + 2 files changed, 66 insertions(+) create mode 100755 thirdparty/libaom/HPKBUILD create mode 100644 thirdparty/libaom/SHA512SUM diff --git a/thirdparty/libaom/HPKBUILD b/thirdparty/libaom/HPKBUILD new file mode 100755 index 00000000..79a210bf --- /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 00000000..5226bb68 --- /dev/null +++ b/thirdparty/libaom/SHA512SUM @@ -0,0 +1 @@ +7f04a686fe841368282db4b54e38c692c26ac15e0757b7ac054de890622eed72e81f283ca0237b7d75fb0052664bfb8f21edfee1d236aa9c3cbe52c9764095b0 libaom-v3.6.1.tar.gz -- Gitee