. "$GRIMOIRE/FUNCTIONS"
. "$GRIMOIRE/MESON_FUNCTIONS"
           SPELL=libdrm
if [[ $LIBDRM_BRANCH == scm ]]; then
         VERSION="$(get_scm_version)"
          SOURCE=drm-git.tar.xz # Use the same source as drm
   SOURCE_URL[0]=git_http://gitlab.freedesktop.org/mesa/drm.git:drm-git:main
SOURCE_DIRECTORY="$BUILD_DIRECTORY/drm-git"
   SOURCE_IGNORE=volatile
  FORCE_DOWNLOAD=1
else
         VERSION=2.4.130
     SOURCE_HASH=sha512:1346df2d25552346ceea526ac7b1f0c3c9e4815ac246ba4ca61f54b9e27a5938d0e8041f22348eadce267cd8f6fd27d8ec2b0630f39451c3ec61ff2254896341
          SOURCE=${SPELL}-${VERSION}.tar.xz
   SOURCE_URL[0]=https://dri.freedesktop.org/${SPELL}/${SOURCE}
# Watch: https://gitlab.freedesktop.org/mesa/drm/-/tags libdrm-([0-9.]+)[.]tar
SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
fi
        WEB_SITE=http://dri.freedesktop.org/
         ENTERED=20051125
      LICENSE[0]=XCL
           SHORT="Direct rendering manager library"
cat << EOF
The Direct Rendering Infrastructure, also known as the DRI, is a framework for allowing direct 
access to graphics hardware under the X Window System in a safe and efficient manner. It includes 
changes to the X server, to several client libraries, and to the kernel (DRM, Direct Rendering 
Manager). The most important use for the DRI is to create fast OpenGL implementations providing 
hardware acceleration for Mesa. Several 3D accelerated drivers have been written to the DRI 
specification, including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel and 
Matrox.
EOF
