Skip to content

Add libavif, aom, dav1d, svt-av1 and nasm - #90

Open
KNnut wants to merge 5 commits into
R-macos:masterfrom
KNnut:avif
Open

Add libavif, aom, dav1d, svt-av1 and nasm#90
KNnut wants to merge 5 commits into
R-macos:masterfrom
KNnut:avif

Conversation

@KNnut

@KNnut KNnut commented Apr 25, 2026

Copy link
Copy Markdown

nasm is required for compiling aom, dav1d and svt-av1 on x86_64.

libavif is used by avif package.

Comment thread recipes/libavif

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It there a reason for disabling all those options? Some seem that they should work like the last three?).

@KNnut KNnut Apr 27, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libpng, libjpeg and libxml2 are only used by avifenc and avifdec tools (disabled by -DAVIF_BUILD_APPS=OFF), not libavif itself. libsharpyuv (enabled by -DAVIF_LIBSHARPYUV=SYSTEM) is a part of libwebp. I also want to enable libyuv, but libyuv has no pinned version, so I turn it off like brew does.

By default, libavif will use aom to encode avif images and dav1d for decoding. rav1e is another encoder but depends on Rust toolchain. I will try to make recipes for libgav1 and svt-av1.

Update: it seems that the dir structure of libgav1's tarball was broken by mv */* . in mkmk.pl.

The recipe I tested:

Package: libgav1
Version: 0.20.0
Source-URL: https://chromium.googlesource.com/codecs/libgav1/+archive/v${ver}.tar.gz
#: tarballs from googlesource have changing hashes
Build-system: cmake
Configure: -DLIBGAV1_ENABLE_EXAMPLES=0 -DLIBGAV1_ENABLE_TESTS=0 -DLIBGAV1_THREADPOOL_USE_STD_MUTEX=1

Comment thread .github/workflows/cook.yml
@KNnut KNnut changed the title Add libavif, aom, dav1d and nasm Add libavif, aom, dav1d, svt-av1 and nasm Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants