parent
41f180c82a
commit
5d89398ab4
|
@ -11,5 +11,21 @@ TERMUX_PKG_DEPENDS="brotli, libc++"
|
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DJPEGXL_FORCE_SYSTEM_BROTLI=True"
|
||||
|
||||
termux_step_post_get_source() {
|
||||
# Do not forget to bump revision of reverse dependencies and rebuild them
|
||||
# after RELEASE / SOVERSION is changed.
|
||||
local _SOVERSION=0.7
|
||||
|
||||
for a in MAJOR SO_MINOR; do
|
||||
local _${a}=$(sed -En 's/^set\(JPEGXL_'"${a}"'_VERSION\s+([0-9]+).*/\1/p' \
|
||||
lib/CMakeLists.txt)
|
||||
done
|
||||
local v="${_MAJOR}"
|
||||
if [ "${_SO_MINOR}" != "0" ]; then
|
||||
v+=".${_SO_MINOR}"
|
||||
fi
|
||||
if [ "${_SOVERSION}" != "${v}" ]; then
|
||||
termux_error_exit "SOVERSION guard check failed."
|
||||
fi
|
||||
|
||||
./deps.sh
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue