. "${GRIMOIRE}/FUNCTIONS"
. "${GRIMOIRE}/MESON_FUNCTIONS"
           SPELL="libgbm"
if [[ "${LIBGBM_BRANCH}" == "scm" ]]; then
         VERSION="$(get_scm_version)"
          SOURCE="${SPELL}-scm.tar.xz"
  FORCE_DOWNLOAD="on"
   SOURCE_URL[0]="git_http://github.com/glfs-book/${SPELL}:${SPELL}-scm:trunk"
   SOURCE_IGNORE="volatile"
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-scm"
else
         VERSION="1.1.2"
     SOURCE_HASH="sha512:b62bed3a3c3cefd97a951ebf4bb0b5b24c817d6839750ace1d66c5b724304716adc98c266058f6d889d587ee90035e546cf0f01c202467edc41e8e2a0b425167"
          SOURCE="${SPELL}-${VERSION}.tar.gz"
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
   SOURCE_URL[0]="https://github.com/glfs-book/${SPELL}/archive//${VERSION}/${SOURCE}"
fi
        WEB_SITE="https://github.com/glfs-book/libgbm"
         ENTERED="20260321"
      LICENSE[0]="MIT"
        KEYWORDS="generic buffer management library"
           SHORT="Generic Buffer Management library"
cat << EOF
libgbm is the Generic Buffer Management library, a frontend to GBM which
various vendors rely on to provide a GBM backend. In the case of Mesa, this
will be dri_gbm, and in the case of the NVIDIA driver, it will be
nvidia-drm_gbm, a symlink pointing to libnvidia-allocator.
EOF
