# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit cmake xdg multilib-minimal DESCRIPTION="ISO/IEC 23008-12:2017 HEIF and AVIF file format decoder and encoder" HOMEPAGE="https://github.com/strukturag/libheif" SRC_URI="https://github.com/strukturag/libheif/releases/download/v${PV}/${P}.tar.gz" LICENSE="GPL-3 MIT" SLOT="0/$(ver_cut 1-2)" KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" IUSE="aom +dav1d ffmpeg gdk-pixbuf openh264 rav1e +svt-av1 test +x265" RESTRICT="!test? ( test )" DEPEND=" dav1d? ( media-libs/dav1d:=[${MULTILIB_USEDEP}] ) media-libs/libpng:0=[${MULTILIB_USEDEP}] media-libs/libwebp:0=[${MULTILIB_USEDEP}] media-libs/tiff:=[${MULTILIB_USEDEP}] ffmpeg? ( media-video/ffmpeg:0=[${MULTILIB_USEDEP}] ) sys-libs/zlib:=[${MULTILIB_USEDEP}] media-libs/libjpeg-turbo:0=[${MULTILIB_USEDEP}] aom? ( >=media-libs/libaom-2.0.0:=[${MULTILIB_USEDEP}] ) gdk-pixbuf? ( x11-libs/gdk-pixbuf[${MULTILIB_USEDEP}] ) rav1e? ( media-video/rav1e:= ) svt-av1? (