libopenblas: Add SOVERSION guard

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2022-12-30 02:54:31 +09:00 committed by xtkoba
parent 782c05ad0b
commit b0285e3852
1 changed files with 11 additions and 0 deletions

View File

@ -16,6 +16,17 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS='
-DC_LAPACK=ON
'
termux_step_post_get_source() {
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION=0
local v=$(echo ${TERMUX_PKG_VERSION#*:} | cut -d . -f 1)
if [ "${v}" != "${_SOVERSION}" ]; then
termux_error_exit "SOVERSION guard check failed."
fi
}
termux_step_pre_configure() {
if [ "$TERMUX_ARCH" = "x86_64" ] || [ "$TERMUX_ARCH" = "i686" ]; then
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+='-DTARGET=CORE2'