mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-06 03:46:41 +00:00
888e273157
This commit has been automatically submitted by Github Actions.
30 lines
972 B
Bash
30 lines
972 B
Bash
TERMUX_PKG_HOMEPAGE=https://aomedia.org/
|
|
TERMUX_PKG_DESCRIPTION="AV1 Video Codec Library"
|
|
TERMUX_PKG_LICENSE="BSD 2-Clause"
|
|
TERMUX_PKG_LICENSE_FILE="LICENSE, PATENTS"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="3.11.0"
|
|
TERMUX_PKG_SRCURL=https://storage.googleapis.com/aom-releases/libaom-${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=cf7d103d2798e512aca9c6e7353d7ebf8967ee96fffe9946e015bb9947903e3e
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
-DBUILD_SHARED_LIBS=ON
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
# Do not forget to bump revision of reverse dependencies and rebuild them
|
|
# after SOVERSION is changed.
|
|
local _SOVERSION=3
|
|
|
|
local a
|
|
for a in LT_CURRENT LT_AGE; do
|
|
local _${a}=$(sed -En 's/^set\('"${a}"'\s+([0-9]+).*/\1/p' \
|
|
CMakeLists.txt)
|
|
done
|
|
local v=$(( _LT_CURRENT - _LT_AGE ))
|
|
if [ ! "${_LT_CURRENT}" ] || [ "${v}" != "${_SOVERSION}" ]; then
|
|
termux_error_exit "SOVERSION guard check failed."
|
|
fi
|
|
}
|