mirror of
https://github.com/termux/termux-packages.git
synced 2025-02-22 22:47:51 +00:00
33 lines
1.1 KiB
Bash
33 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://www.openexr.com/
|
|
TERMUX_PKG_DESCRIPTION="Provides the specification and reference implementation of the EXR file format"
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="3.2.4"
|
|
TERMUX_PKG_SRCURL=https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=81e6518f2c4656fdeaf18a018f135e96a96e7f66dbe1c1f05860dd94772176cc
|
|
TERMUX_PKG_DEPENDS="imath, libc++, zlib"
|
|
TERMUX_PKG_CONFLICTS="openexr2"
|
|
TERMUX_PKG_REPLACES="openexr2"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
-DBUILD_TESTING=OFF
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
# Do not forget to bump revision of reverse dependencies and rebuild them
|
|
# after SOVERSION is changed.
|
|
local _SOVERSION=31
|
|
local v=$(sed -En 's/^set\(OPENEXR_LIB_SOVERSION\s+([0-9]+).*/\1/p' CMakeLists.txt)
|
|
if [ "${v}" != "${_SOVERSION}" ]; then
|
|
termux_error_exit "SOVERSION guard check failed."
|
|
fi
|
|
}
|
|
|
|
termux_step_post_massage() {
|
|
shopt -s nullglob
|
|
local f
|
|
for f in lib/libImath*; do
|
|
termux_error_exit "File ${f} should not be contained in this package."
|
|
done
|
|
shopt -u nullglob
|
|
}
|