mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 00:10:52 +00:00
43d76301da
This commit has been automatically submitted by Github Actions.
35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://jpegxl.info/
|
|
TERMUX_PKG_DESCRIPTION="JPEG XL image format reference implementation"
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="0.11.1"
|
|
TERMUX_PKG_SRCURL=https://github.com/libjxl/libjxl/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=1492dfef8dd6c3036446ac3b340005d92ab92f7d48ee3271b5dac1d36945d3d9
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="brotli, libc++"
|
|
TERMUX_PKG_NO_STATICSPLIT=true
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
-DJPEGXL_ENABLE_JNI=False
|
|
-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.11
|
|
|
|
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
|
|
}
|