libaom: Add SOVERSION guard

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2022-09-26 06:02:10 +09:00 committed by xtkoba
parent bd123ac47b
commit 5db6bbe426
1 changed files with 12 additions and 0 deletions

View File

@ -10,3 +10,15 @@ 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.
# Not exactly the same as the SOVERSION though.
local _MAJOR_VERSION=3
case "$TERMUX_PKG_VERSION" in
${_MAJOR_VERSION}.*|*:${_MAJOR_VERSION}.* ) ;;
* ) termux_error_exit "SOVERSION check failed." ;;
esac
}