sys-firmware/avd-fw - 0.2 (asahi)

Search

Install

Install this version:

emerge -a =sys-firmware/avd-fw-0.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-firmware/avd-fw-0.2

Or alternatively:

emerge --autounmask-write -a =sys-firmware/avd-fw-0.2

Package Information

Description:
Firmware for Apple silicon video decoder
Homepage:
https://github.com/AsahiLinux/avd-fw
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.2 8 ~arm64 0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

LLVM_COMPAT=( 19 20 21 22 23)

inherit meson llvm-r2

DESCRIPTION="Firmware for Apple silicon video decoder"
HOMEPAGE="https://github.com/AsahiLinux/avd-fw"

if [[ ${PV} == 9999 ]]; then
	EGIT_REPO_URI="https://github.com/asahilinux/avd-fw.git"
	inherit git-r3
else
	SRC_URI="https://github.com/AsahiLinux/${PN}/releases/download/v${PV}/${PN}-v${PV}.tar.xz -> ${P}.tar.xz"
	KEYWORDS="~arm64"
fi

LICENSE="MIT"
SLOT="0"
IUSE="+proprietary-codecs"

DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND="
	llvm-core/clang
	llvm-core/llvm
	llvm-core/lld
"

# remove for the next version with fixed packaging
S="${WORKDIR}/${PN}-v${PV}"

src_unpack() {
	if [[ ${PV} == 9999 ]]; then
		git-r3_src_unpack
	else
		unpack ${P}.tar.xz
	fi
}

src_configure() {
	local emesonargs=()

	emesonargs+=(--cross-file=./llvm.ini)
	emesonargs+=(--libdir=lib)
	emesonargs+=(-Dfirmwaredir=firmware/updates)

	emesonargs+=(-Dvideo-codecs=$(usex proprietary-codecs "all" "all_free"))

	meson_src_configure
}

USE Flags

Manage flags for this package: euse -i <flag> -p sys-firmware/avd-fw | euse -E <flag> -p sys-firmware/avd-fw | euse -D <flag> -p sys-firmware/avd-fw

Global/Standard Flags

proprietary-codecs
❓ Default: Enabled (+)

Inherited Eclasses

Dependencies

BDEPEND

	llvm-core/clang
	llvm-core/llvm
	llvm-core/lld

Manifest for 0.2

Type File Size Source URLs
DIST avd-fw-0.2.tar.xz 10276 bytes https://github.com/AsahiLinux/avd-fw/releases/download/v0.2/avd-fw-v0.2.tar.xz