TERMUX_PKG_HOMEPAGE=https://github.com/AOMediaCodec/libavif
TERMUX_PKG_DESCRIPTION="Library for encoding and decoding .avif files"
TERMUX_PKG_LICENSE="custom"
TERMUX_PKG_LICENSE_FILE="LICENSE"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.4.2"
TERMUX_PKG_SRCURL="https://github.com/AOMediaCodec/libavif/archive/refs/tags/v$TERMUX_PKG_VERSION.tar.gz"
TERMUX_PKG_SHA256=2b645287340ba5a631d268b551dc2d72bd73ac33335962dd36dcdb6d8366921d
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="libaom, libc++, libdav1d, libjpeg-turbo, libpng, libwebp, librav1e, svt-av1"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DAVIF_BUILD_APPS=ON
-DAVIF_BUILD_MAN_PAGES=ON
-DAVIF_BUILD_GDK_PIXBUF=ON
-DAVIF_CODEC_AOM=SYSTEM
-DAVIF_CODEC_DAV1D=SYSTEM
-DAVIF_CODEC_RAV1E=SYSTEM
-DAVIF_CODEC_SVT=SYSTEM
-DAVIF_LIBYUV=LOCAL
"
