. "${GRIMOIRE}/FUNCTIONS"
. "${GRIMOIRE}/MESON_FUNCTIONS"
           SPELL="dav1d"
if [[ "${DAV1D_BRANCH}" == "scm" ]]; then
         VERSION="$(get_scm_version)"
          SOURCE="${SPELL}-git.tar.xz"
  FORCE_DOWNLOAD="on"
   SOURCE_URL[0]="git_http://code.videolan.org/videolan/${SPELL}.git:${SPELL}-git"
   SOURCE_IGNORE="volatile"
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-git"
else
         VERSION=1.5.1
     SOURCE_HASH=sha512:43319d75c173003337bb3e0b4ffe1b0b544bfe882dd51097d7634168ee94c0d316a1c04e4f101057ff4629117dde8f22362df1a49d6a058ba510c3e648a437a3
          SOURCE="${SPELL}-${VERSION}.tar.bz2"
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
   SOURCE_URL[0]="https://code.videolan.org/videolan/${SPELL}/-/archive/${VERSION}/${SOURCE}"
fi
      LICENSE[0]="BSD"
        WEB_SITE="https://code.videolan.org/videolan/dav1d/"
         ENTERED="20190201"
           SHORT="a new AV1 cross-platform decoder"
cat << EOF
dav1d is a new AV1 cross-platform decoder, open-source, and focused on speed
and correctness.

The goal of this project is to provide a decoder for most platforms, and
achieve the highest speed possible to overcome the temporary lack of AV1
hardware decoder.

It supports all features from AV1, including all subsampling and bit-depth
parameters.
EOF
