mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-19 16:52:16 +00:00
27 lines
1008 B
Bash
27 lines
1008 B
Bash
TERMUX_PKG_HOMEPAGE=https://imath.readthedocs.io/
|
|
TERMUX_PKG_DESCRIPTION="Library for vector/matrix and math operations, plus the half type"
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="3.1.12"
|
|
TERMUX_PKG_SRCURL=https://github.com/AcademySoftwareFoundation/Imath/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=8a1bc258f3149b5729c2f4f8ffd337c0e57f09096e4ba9784329f40c4a9035da
|
|
TERMUX_PKG_DEPENDS="libc++"
|
|
TERMUX_PKG_CONFLICTS="openexr2"
|
|
TERMUX_PKG_REPLACES="openexr2"
|
|
|
|
termux_step_pre_configure() {
|
|
# Do not forget to bump revision of reverse dependencies and rebuild them
|
|
# after SOVERSION is changed.
|
|
local _SOVERSION=29
|
|
|
|
local a
|
|
for a in LIBTOOL_CURRENT LIBTOOL_AGE; do
|
|
local _${a}=$(sed -En 's/^set\(IMATH_'"${a}"'\s+([0-9]+).*/\1/p' \
|
|
CMakeLists.txt)
|
|
done
|
|
local v=$(( _LIBTOOL_CURRENT - _LIBTOOL_AGE ))
|
|
if [ ! "${_LIBTOOL_CURRENT}" ] || [ "${v}" != "${_SOVERSION}" ]; then
|
|
termux_error_exit "SOVERSION guard check failed."
|
|
fi
|
|
}
|