. "${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.12.0"
     SOURCE_HASH="sha512:71d45123e47588c8028c0e01a7820c7a18d98df05c29b5318ab6858eaff5f249879763907201ba19a93f817c6ef75c393c1974d2a0cc8e461c4e2709ca6fa45f"
          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
