libvpx: Add SOVERSION guard

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2022-04-20 00:07:17 +09:00
parent 01b46f7204
commit e78458a96d
1 changed files with 12 additions and 0 deletions

View File

@ -56,3 +56,15 @@ termux_step_configure() {
--enable-small \
--extra-cflags="-fPIC"
}
termux_step_post_massage() {
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION_GUARD_FILES="lib/libvpx.so.7"
local f
for f in ${_SOVERSION_GUARD_FILES}; do
if [ ! -e "${f}" ]; then
termux_error_exit "Error: file ${f} not found; please check if SOVERSION has changed."
fi
done
}