graphics/libavif: fix build with clang 14 Clang >= 14 warns that mixing declarations and code is incompatible with standards before C99, even if you compile with -std=c99 or -std=gnu99. Add `-Wno-declaration-after-statement` if it is supported, to silence the warning. PR: 262634 Approved by: jbeich (maintainer) Obtained from: https://github.com/AOMediaCodec/libavif/pull/886 MFH: 2022Q148c0caf106
Port details
graphics/libavif 1.4.2
Library for encoding and decoding .avif files
Port info
- Maintainer
- sunpoet@FreeBSD.org
- Packages
- latest: 1.4.2
- Upstream
- up to date
- Last update
- to 1.4.2 · b41e696646
- Quarterly
- 2026Q4: 1.4.2
- WWW
- https://github.com/AOMediaCodec/libavif
- Links
- cgit · VuXML
Install
- Package
# pkg install libavifinstalls 1.4.2 fromlatest; fromquarterly(2026Q4) 1.4.2- Port
# cd /usr/ports/graphics/libavif && make install clean# make -C /usr/ports/graphics/libavif config # change options first
- Size
- 277 KiB download · 867 KiB installed
- Depends on
- devel/gettext-runtime 1.0_1, devel/glib20 2.88.3,2, graphics/gdk-pixbuf2 2.44.1, graphics/jpeg-turbo 3.1.4.1, graphics/libyuv 0.0.1973, graphics/png 1.6.59_1, graphics/webp 1.6.0, multimedia/aom 3.15.1, multimedia/dav1d 1.5.4
- License
- BSD2CLAUSE
- Options
- 4 of 9 on in the package: AOM DAV1D LIBSHARPYUV PIXBUF
Show the 5 options that are off
GAV1 LIBXML2 MANPAGES RAV1E SVTAV1
Packages by version and architecture
latest
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 1.4.2 | 1.4.2 | – |
| FreeBSD 15 | 1.4.2 | 1.4.2 | – |
| FreeBSD 14 | 1.4.2 | 1.4.2 | 1.4.2 |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 1.4.2 | 1.4.2 | – |
| FreeBSD 14 | 1.4.2 | 1.4.2 | 1.4.2 |
version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.
Unaddressed and VuXML only (0)
No unaddressed CVE and nothing reported by
pkg audit for the packaged version 1.4.2.Fixed (0)
No VuXML entries for this package.
Problem reports (0) · open in Bugzilla, most recently changed first
None.
Commits (102)
multimedia/dav1d: update to 1.0.0 Changes: https://code.videolan.org/videolan/dav1d/-/releases/1.0.0 Reported by: Repology3468f1957c
multimedia/svt-av1: update to 0.9.1 Changes: https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases/v0.9.1 Reported by: Repologyd187ef9400
multimedia/svt-av1: update to 0.9.0 Changes: https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases/v0.9.0 Reported by: Repologyb2302fb4a3
graphics/libavif: unbreak build with Clang 13
In file included from /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.2/contrib/gdk-pixbuf/loader.c:9:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h:35:
In file included from /usr/local/include/glib-2.0/glib.h:30:
In file included from /usr/local/include/glib-2.0/glib/galloca.h:32:
/usr/local/include/glib-2.0/glib/gtypes.h:458:24: error: identifier '_GLIB_CHECKED_ADD_U32' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
static inline gboolean _GLIB_CHECKED_ADD_U32 (guint32 *dest, guint32 a, guint32 b) {
^
/usr/local/include/glib-2.0/glib/gtypes.h:460:24: error: identifier '_GLIB_CHECKED_MUL_U32' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
static inline gboolean _GLIB_CHECKED_MUL_U32 (guint32 *dest, guint32 a, guint32 b) {
^
/usr/local/include/glib-2.0/glib/gtypes.h:462:24: error: identifier '_GLIB_CHECKED_ADD_U64' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
static inline gboolean _GLIB_CHECKED_ADD_U64 (guint64 *dest, guint64 a, guint64 b) {
^
/usr/local/include/glib-2.0/glib/gtypes.h:463:3: warning: '_Static_assert' is a C11 extension [-Wc11-extensions]
G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));
^
/usr/local/include/glib-2.0/glib/gmacros.h:819:31: note: expanded from macro 'G_STATIC_ASSERT'
#define G_STATIC_ASSERT(expr) _Static_assert (expr, "Expression evaluates to false")
^
In file included from /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.2/contrib/gdk-pixbuf/loader.c:9:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h:35:
In file included from /usr/local/include/glib-2.0/glib.h:30:
In file included from /usr/local/include/glib-2.0/glib/galloca.h:32:
/usr/local/include/glib-2.0/glib/gtypes.h:465:24: error: identifier '_GLIB_CHECKED_MUL_U64' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
static inline gboolean _GLIB_CHECKED_MUL_U64 (guint64 *dest, guint64 a, guint64 b) {
^
/usr/local/include/glib-2.0/glib/gtypes.h:495:16: error: identifier '_GDoubleIEEE754' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef union _GDoubleIEEE754 GDoubleIEEE754;
^
/usr/local/include/glib-2.0/glib/gtypes.h:496:16: error: identifier '_GFloatIEEE754' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef union _GFloatIEEE754 GFloatIEEE754;
^
/usr/local/include/glib-2.0/glib/gtypes.h:545:16: error: identifier '_GTimeVal' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime);
^
In file included from /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.2/contrib/gdk-pixbuf/loader.c:9:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h:35:
In file included from /usr/local/include/glib-2.0/glib.h:31:
/usr/local/include/glib-2.0/glib/garray.h:36:16: error: identifier '_GBytes' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GBytes GBytes;
^
/usr/local/include/glib-2.0/glib/garray.h:37:16: error: identifier '_GArray' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GArray GArray;
^
/usr/local/include/glib-2.0/glib/garray.h:38:16: error: identifier '_GByteArray' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GByteArray GByteArray;
^
/usr/local/include/glib-2.0/glib/garray.h:39:16: error: identifier '_GPtrArray' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GPtrArray GPtrArray;
^
In file included from /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.2/contrib/gdk-pixbuf/loader.c:9:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h:35:
In file included from /usr/local/include/glib-2.0/glib.h:32:
In file included from /usr/local/include/glib-2.0/glib/gasyncqueue.h:32:
In file included from /usr/local/include/glib-2.0/glib/gthread.h:33:
/usr/local/include/glib-2.0/glib/gerror.h:41:16: error: identifier '_GError' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GError GError;
^
In file included from /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.2/contrib/gdk-pixbuf/loader.c:9:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h:35:
In file included from /usr/local/include/glib-2.0/glib.h:32:
In file included from /usr/local/include/glib-2.0/glib/gasyncqueue.h:32:
In file included from /usr/local/include/glib-2.0/glib/gthread.h:34:
/usr/local/include/glib-2.0/glib/gutils.h:274:16: error: identifier '_GDebugKey' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GDebugKey GDebugKey;
^
In file included from /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.2/contrib/gdk-pixbuf/loader.c:9:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h:35:
In file included from /usr/local/include/glib-2.0/glib.h:32:
In file included from /usr/local/include/glib-2.0/glib/gasyncqueue.h:32:
/usr/local/include/glib-2.0/glib/gthread.h:49:16: error: identifier '_GThread' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GThread GThread;
^
/usr/local/include/glib-2.0/glib/gthread.h:51:16: error: identifier '_GMutex' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef union _GMutex GMutex;
^
/usr/local/include/glib-2.0/glib/gthread.h:52:16: error: identifier '_GRecMutex' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GRecMutex GRecMutex;
^
/usr/local/include/glib-2.0/glib/gthread.h:53:16: error: identifier '_GRWLock' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GRWLock GRWLock;
^
/usr/local/include/glib-2.0/glib/gthread.h:54:16: error: identifier '_GCond' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GCond GCond;
^
/usr/local/include/glib-2.0/glib/gthread.h:55:16: error: identifier '_GPrivate' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GPrivate GPrivate;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Reported by: antoine (via bug 258209 exp-run)1d042b7359graphics/libavif: Remove BROKEN after recent libyuv update. PR: 2593768aa40aa305
graphics/libavif: update to 0.9.3 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.9.2...v0.9.3 Reported by: Repology932dddab2b
graphics/libavif: Add CPE information Approved by: portmgr (blanket)a7304ac0ba
multimedia/aom: force rebuild consumers after 6f68add3f9ab $ ffmpeg ... -c:v libaom-av1 ... [libaom-av1 @ 0x804a89900] 3.2.0 [libaom-av1 @ 0x804a89900] Failed to initialize encoder: ABI version mismatch Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! https://aomedia.googlesource.com/aom/+/bbdfa68d13a0%5E%21/a950db788b
graphics/libavif: update to 0.9.2 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.9.1...v0.9.2 Reported by: GitHub (watch releases)91c45568b3
graphics/libavif: update to 0.9.1 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.9.0...v0.9.1 Reported by: GitHub (watch releases)efc8ec091e
graphics/libavif: unbreak fetch fetch: https://github.com/AOMediaCodec/libavif/commit/2340cdb5f0c2.patch: size mismatch: expected 1712, actual 1714 -index 919f0bc..cb680c3 100644 +index 919f0bc1..cb680c33 10064443938a3073
graphics/libavif: convert to USES=cmake:testing1d796349d4
multimedia/svt-av1: update to 0.8.7 Changes: https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases/v0.8.7 Reported by: Repology0c0a4f4b91
One more small cleanup, forgotten yesterday. Reported by: lwhsucf118ccf87
Remove # $FreeBSD$ from Makefiles.305f148f48
multimedia/aom: update to 3.0.0 Changes: https://aomedia.googlesource.com/aom/+log/v2.0.2..v3.0.0 Reported by: portscout6ca3a84401
graphics/libavif: update to 0.9.0 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.8.4...v0.9.0 Reported by: GitHub (watch releases)091225745c
graphics/libyuv: update to 0.0.1767 - enable option in graphics/libavif PR: 252822 Submitted by: VVD <vvd@unislabs.com>e084b3966d
multimedia/svt-av1: update to 0.8.6 Rebuild consumers after `EbSvtAv1EncConfiguration` grew in size with `recode_loop` added in the middle of the struct. Changes: https://github.com/AOMediaCodec/SVT-AV1/releases/tag/v0.8.6 Reported by: GitHub (watch releases)a8dd55117e
graphics/libavif: update to 0.8.4 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.8.3...v0.8.4 Reported by: GitHub (watch releases)ae135353fb
multimedia/dav1d: update to 0.8.0 Changes: https://code.videolan.org/videolan/dav1d/-/tags/0.8.0 Changes: https://code.videolan.org/videolan/dav1d/-/blob/0.8.0/NEWS Changes: https://code.videolan.org/videolan/dav1d/compare/0.7.1...0.8.0ff05bee7ea
graphics/libavif: update to 0.8.3 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.8.2...v0.8.3 Reported by: GitHub (watch releases)dbad31deeb
graphics/libavif: update to 0.8.2 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.8.1...v0.8.2 Reported by: GitHub (watch releases)d9fbee2905
graphics/libavif: connect tests to "make test"13f31c2ec7
graphics/libavif: replace USES=localbase with upstream fix0f23c65afe
multimedia/libgav1: add new port libgav1 is a Main profile (0) & High profile (1) compliant AV1 decoder. https://chromium.googlesource.com/codecs/libgav1ef8a4135b0
graphics/libavif: switch Clang workaround to upstream3e5efebb2d
graphics/libavif: drop mime workaround after r546053ba951e978f
graphics/libavif: enable gdk-pixbuf2 loader $ avifenc huge.jpg huge.avif $ mcomix huge.avif $ swaymsg output \* background $PWD/test.avif fill87acb482b2
graphics/libavif: update to 0.8.1 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.8.0...v0.8.1 Reported by: GitHub (watch releases)416fe053ea
graphics/libavif: update to 0.8.0 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.7.3...v0.8.0 Reported by: GitHub (watch releases)eb89598f7a
multimedia/aom: update to 2.0.0.r1 (stable branch) Changes: https://aomedia.googlesource.com/aom/+log/bb664cf03..v2.0.0-rc1 Reported by: Balance- on /r/AV1c9097166d4
multimedia/aom: update to 1.0.0.3639 Changes: https://aomedia.googlesource.com/aom/+log/26878968a..bb664cf0311b29538f1
graphics/libavif: update to 0.7.3 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.7.2...v0.7.3 Reported by: GitHub (watch releases)9f28fa0e33
multimedia/aom: update to 1.0.0.3596 Changes: https://aomedia.googlesource.com/aom/+log/5d6f2d42c..26878968ae12417460d
multimedia/aom: update to 1.0.0.3547 Changes: https://aomedia.googlesource.com/aom/+log/2f0cc17ec..5d6f2d42c3f42c0615f
graphics/libavif: update to 0.7.2 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.7.1...v0.7.2 Reported by: GitHub (watch releases)29a99f0009
graphics/libavif: update to 0.7.1 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.6.4...v0.7.1 Reported by: GitHub (watch releases)9e3f770812
graphics/libavif: update to 0.6.4 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.6.3...v0.6.4 Reported by: GitHub (watch releases)e4d2268303
graphics/libavif: fix build on GCC architectures Use newer GCC to avoid error caused by -Werror: /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.6.3/src/reformat.c:316: warning: comparison is always false due to limited range of data type MFH: 2020Q2 (fix build blanket)2562bee5d7
graphics/libavif: update to 0.6.3 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.6.2...v0.6.3 Reported by: portscout01ac44a4ee
graphics/libavif: update to 0.6.2 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.6.0...v0.6.2 Reported by: portscout96df047e1c
graphics/libavif: update to 0.6.0 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.5.7...v0.6.0 Reported by: portscout5f759bfbf3
multimedia/dav1d: update to 0.6.0 Changes: https://code.videolan.org/videolan/dav1d/tags/0.6.0 Changes: https://code.videolan.org/videolan/dav1d/blob/0.6.0/NEWS Changes: https://code.videolan.org/videolan/dav1d/compare/0.5.2...0.6.04aa2099cb2
graphics/libavif: update to 0.5.7 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.5.6...v0.5.7 Reported by: portscout9eb2cff8ec
graphics/libavif: update to 0.5.6 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.5.5...v0.5.6 Reported by: portscoutf2c7c0fd1f
graphics/libavif: update to 0.5.5 Changes: https://github.com/AOMediaCodec/libavif/compare/v0.5.4...v0.5.5 Reported by: GitHub (watch releases)45b91df8f6
multimedia/aom: update to 1.0.0.3002 Changes: https://aomedia.googlesource.com/aom/+log/b14b3dbef..5e87049aab61e67ce31
multimedia/aom: update to 1.0.0.2985 Changes: https://aomedia.googlesource.com/aom/+log/37d6a4b69..b14b3dbef9537a993a5