Commit 4f45784f authored by T. Fischer's avatar T. Fischer

New ebuild for libavif, a library for encoding and decoding .avif files

parent b2d0ed7b
DIST libavif-0.4.2.tar.gz 57321 BLAKE2B 8e510a3cb9b6a7ee38f7f7105791314083a836535776ce1c48d7e31a872a58b8b1436b946c7b3f46a49f95211f8f4cbbe5836eb21b68c891903bc7a010171b3d SHA512 4ef5a737bcca9be22442b5470605f5c00ce2907e384c09b3dc8da3d6d29d0f1abeed0d90e09b8321103aadda2857c668625cab495a0a85ba7db90986852ff8d3
EBUILD libavif-0.4.2.ebuild 1080 BLAKE2B e684435cbf42d34755ddb46e7f7d636eb33d8e3423925162482315328f9ff3dac7f4c4ec2eb60cd4ba76e625eb0fc0a49143f45764193b9fe6bff630c34ced75 SHA512 20a21c58864033d229238bc34606668df8bf42f7fa272b79f90677d7b3f26d66566372eb6ca6435e3e9d022e71221e796d1435f64cc4a1e55195585404c3c583
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake-utils
DESCRIPTION="A library for encoding and decoding .avif files"
HOMEPAGE="https://github.com/AOMediaCodec/libavif"
SRC_URI="https://github.com/AOMediaCodec/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="dav1d"
RDEPEND="dav1d? ( media-libs/dav1d )
=media-libs/libaom-9999"
DEPEND="${RDEPEND}
dev-lang/nasm
>=dev-util/cmake-3.5"
src_configure() {
local mycmakeargs=(
-DAVIF_BUILD_APPS:BOOL=ON
-DAVIF_CODEC_DAV1D:BOOL=$(usex dav1d ON OFF)
)
cmake-utils_src_configure
}
src_install() {
# libavif's CMakeLists.txt lacks proper install functions, so do everything manually
# Command line programs to convert between .y4m and .avif
dobin ${BUILD_DIR}/avifenc
dobin ${BUILD_DIR}/avifdec
# Static library (no shared library seems to get built)
dolib.a ${BUILD_DIR}/libavif.a
# Directory with header files
# TODO install whole directory or only selected files?
doheader -r include/avif
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment