git: fad385cf80b7 - main - graphics/libjxl: simplify plist updates

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Thu, 27 Jun 2024 16:59:23 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fad385cf80b7dd41409f4cda5931008bb32bea8b

commit fad385cf80b7dd41409f4cda5931008bb32bea8b
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-06-27 16:46:00 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-06-27 16:58:08 +0000

    graphics/libjxl: simplify plist updates
---
 graphics/libjxl/Makefile  | 1 +
 graphics/libjxl/pkg-plist | 8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/graphics/libjxl/Makefile b/graphics/libjxl/Makefile
index cae984150510..0ba5904ed340 100644
--- a/graphics/libjxl/Makefile
+++ b/graphics/libjxl/Makefile
@@ -27,6 +27,7 @@ CMAKE_OFF=	${BENCHMARK FUZZERS TCMALLOC:L:S/^/JPEGXL_ENABLE_/}
 CMAKE_OFF+=	${OpenGL GLUT:L:S/^/CMAKE_DISABLE_FIND_PACKAGE_/} # sjpeg
 CMAKE_OFF+=	${CMAKE_TESTING_ON}
 LDFLAGS+=	-Wl,--as-needed # brotlicommon, OPENEXR/PNG deps
+PLIST_SUB=	VERSION=${PORTVERSION}
 
 OPTIONS_DEFINE=	GIF JPEG LTO MANPAGES OPENEXR PIXBUF PNG
 OPTIONS_DEFAULT=GIF JPEG LTO MANPAGES OPENEXR PIXBUF PNG
diff --git a/graphics/libjxl/pkg-plist b/graphics/libjxl/pkg-plist
index 1ef7d9b49cff..d7d706b4e9aa 100644
--- a/graphics/libjxl/pkg-plist
+++ b/graphics/libjxl/pkg-plist
@@ -26,16 +26,16 @@ include/jxl/version.h
 %%PIXBUF%%lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders/libpixbufloader-jxl.so
 lib/libjxl.so
 lib/libjxl.so.0.10
-lib/libjxl.so.0.10.2
+lib/libjxl.so.%%VERSION%%
 lib/libjxl_cms.so
 lib/libjxl_cms.so.0.10
-lib/libjxl_cms.so.0.10.2
+lib/libjxl_cms.so.%%VERSION%%
 lib/libjxl_extras_codec.so
 lib/libjxl_extras_codec.so.0.10
-lib/libjxl_extras_codec.so.0.10.2
+lib/libjxl_extras_codec.so.%%VERSION%%
 lib/libjxl_threads.so
 lib/libjxl_threads.so.0.10
-lib/libjxl_threads.so.0.10.2
+lib/libjxl_threads.so.%%VERSION%%
 libdata/pkgconfig/libjxl.pc
 libdata/pkgconfig/libjxl_cms.pc
 libdata/pkgconfig/libjxl_threads.pc