. "${GRIMOIRE}/FUNCTIONS"
. "${GRIMOIRE}/CMAKE_FUNCTIONS"
           SPELL="libjxl"
if [[ "${LIBJXL_BRANCH}" == "scm" ]]; then
         VERSION="$(get_scm_version)"
          SOURCE="${SPELL}-scm.tar.xz"
  FORCE_DOWNLOAD="on"
   SOURCE_URL[0]="git_http://github.com/libjxl/${SPELL}:${SPELL}-scm:main"
   SOURCE_IGNORE="volatile"
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-scm"
else
         VERSION="0.11.2"
     SOURCE_HASH="sha512:a7e1f7d060b358f4382e84367d66aa2850aef3b4524a0fdfe3f22dd258fb9e35dda7540f859d8bf4c32f31c61a7a03db677f4490a9f472cd25869a9d00797336"
          SOURCE="${SPELL}-${VERSION}.tar.gz"
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
   SOURCE_URL[0]="https://github.com/libjxl/${SPELL}/archive/refs/tags/v${VERSION}.tar.gz"
# Watch: https://github.com/libjxl/libjxl/tags tags/v([0-9.]+)[.]tar
fi
        WEB_SITE="https://github.com/libjxl/libjxl"
         ENTERED="20241214"
      LICENSE[0]="BSD"
        KEYWORDS="jpeg image format compression lossless"
           SHORT="JPEG XL image format reference implementation"
cat << EOF
A reference implementation of JPEG XL (encoder and decoder), called libjxl.
This software library is used by many applications that support JPEG XL.
EOF
