Thursday, August 01, 2024

UPDATE: libavif 1.1.1

Here is an update to libavif 1.1.1.


## [1.1.1] - 2024-07-30

### Changed since 1.1.0
* In avif.h, change "AVIF_API AVIF_NODISCARD" back to "AVIF_NODISCARD AVIF_API"
to fix clang-cl and MSVC compilation errors in the shared library build on
Windows.
* Fix -DAVIF_GTEST=SYSTEM, https://github.com/AOMediaCodec/libavif/issues/2258.
* Fix infe_type and codec_config_type wrongly read as byte-aligned fields in the
experimental feature AVIF_ENABLE_EXPERIMENTAL_METAV1.
* When building aom as a local dependency, runtime CPU detection
(`CONFIG_RUNTIME_CPU_DETECT`) is now always `ON`; in 1.1.0 it had been
disabled for non-native builds.
* Fix CMake config shared library leaks
https://github.com/AOMediaCodec/libavif/issues/2264.
* Fix clang-cl compilation.
* Update gain map metadata to current ISO 21496-1 draft.
* cmake: Only search for ASM_NASM language on x86_64 platforms.
* Fix "No known features for CXX compiler" CMake error.
* Fix aom link flags so that transitive library link flags are included when
aom is a static library
https://github.com/AOMediaCodec/libavif/issues/2274.
* Fix out-of-order 'dimg' grid associations
https://github.com/AOMediaCodec/libavif/issues/2311.
* Report files with an item used in multiple 'dimg' boxes with
AVIF_RESULT_NOT_IMPLEMENTED instead of AVIF_RESULT_INVALID_IMAGE_GRID.


Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/libavif/Makefile,v
retrieving revision 1.22
diff -u -p -u -p -r1.22 Makefile
--- Makefile 3 Apr 2024 12:13:14 -0000 1.22
+++ Makefile 1 Aug 2024 08:11:20 -0000
@@ -1,11 +1,11 @@
COMMENT= library for encoding and decoding .avif files

-GH_ACCOUNT= AOMediaCodec
-GH_PROJECT= libavif
-GH_TAGNAME= v1.0.4
+DIST_TUPLE+= github AOMediaCodec libavif v1.1.1 .
+DIST_TUPLE+= github lemenkov libyuv \
+ a6a2ec654b1be1166b376476a7555c89eca0c275 ext/libyuv
CATEGORIES= graphics

-SHARED_LIBS= avif 7.0
+SHARED_LIBS= avif 7.1

HOMEPAGE= https://github.com/AOMediaCodec/libavif

@@ -14,12 +14,14 @@ MAINTAINER= Brad Smith <brad@comstyle.co
# BSD
PERMIT_PACKAGE= Yes

-WANTLIB= aom c dav1d jpeg m png pthread sharpyuv z
+WANTLIB= ${COMPILER_LIBCXX} aom c dav1d jpeg m png pthread sharpyuv z

COMPILER= base-clang ports-gcc

MODULES= devel/cmake

+BUILD_DEPENDS+= sysutils/ggrep
+
LIB_DEPENDS= graphics/jpeg \
graphics/png \
graphics/libwebp \
@@ -28,11 +30,15 @@ LIB_DEPENDS= graphics/jpeg \

CONFIGURE_ARGS+=-DAVIF_BUILD_APPS=ON \
-DAVIF_BUILD_TESTS=ON \
- -DAVIF_CODEC_AOM=ON \
+ -DAVIF_CODEC_AOM=SYSTEM \
-DAVIF_CODEC_AOM_DECODE=OFF \
- -DAVIF_CODEC_DAV1D=ON \
+ -DAVIF_CODEC_DAV1D=SYSTEM \
-DAVIF_ENABLE_GTEST=OFF \
- -DCMAKE_DISABLE_FIND_PACKAGE_libyuv=ON
+ -DAVIF_LIBSHARPYUV=SYSTEM \
+ -DAVIF_LIBYUV=LOCAL
+
+post-extract:
+ ln -sf ${LOCALBASE}/bin/ggrep ${WRKDIR}/bin/grep

do-test:
${WRKBUILD}/tests/aviftest ${WRKSRC}/tests/data
Index: distinfo
===================================================================
RCS file: /cvs/ports/graphics/libavif/distinfo,v
retrieving revision 1.16
diff -u -p -u -p -r1.16 distinfo
--- distinfo 3 Apr 2024 12:13:14 -0000 1.16
+++ distinfo 1 Aug 2024 08:11:20 -0000
@@ -1,2 +1,4 @@
-SHA256 (libavif-1.0.4.tar.gz) = 3FZwjIOkuTSoryt49n+Ga6L7VoYFx8+UMSrPUe5X0UY=
-SIZE (libavif-1.0.4.tar.gz) = 10575992
+SHA256 (AOMediaCodec-libavif-v1.1.1.tar.gz) = kUZi4WJF4GLtc/kBEvu0VIJBMAhDp3ctjUQbtoWd5Fs=
+SHA256 (lemenkov-libyuv-a6a2ec654b1be1166b376476a7555c89eca0c275.tar.gz) = +5dXKi3B2Ok3bmGzPrSHCMzPs0Egb8m02atl9Asyb7M=
+SIZE (AOMediaCodec-libavif-v1.1.1.tar.gz) = 13644189
+SIZE (lemenkov-libyuv-a6a2ec654b1be1166b376476a7555c89eca0c275.tar.gz) = 570482
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/graphics/libavif/pkg/PLIST,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 PLIST
--- pkg/PLIST 11 Mar 2022 19:22:40 -0000 1.5
+++ pkg/PLIST 1 Aug 2024 08:11:20 -0000
@@ -2,6 +2,7 @@
@bin bin/avifenc
include/avif/
include/avif/avif.h
+include/avif/avif_cxx.h
lib/cmake/libavif/
lib/cmake/libavif/libavif-config${MODCMAKE_BUILD_SUFFIX}
lib/cmake/libavif/libavif-config-version.cmake

No comments:

Post a Comment