Tuesday, July 30, 2024

Re: UPDATE: libavif 1.1.0

On Fri, Jul 19, 2024 at 08:21:59PM -0400, Brad Smith wrote:
> Here is an update to libavif 1.1.0.

Here is an updated diff fixing the issue Rafael pointed out.


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 31 Jul 2024 05:10:01 -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.0 .
+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 31 Jul 2024 05:10:01 -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.0.tar.gz) = 7bMZUQBdehQ74XJPJIJYCVmaSDIHOt1Q6vmHcz3vtcg=
+SHA256 (lemenkov-libyuv-a6a2ec654b1be1166b376476a7555c89eca0c275.tar.gz) = +5dXKi3B2Ok3bmGzPrSHCMzPs0Egb8m02atl9Asyb7M=
+SIZE (AOMediaCodec-libavif-v1.1.0.tar.gz) = 13642536
+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 31 Jul 2024 05:10:01 -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