git: 1e2aa3947a05 - main - multimedia/svt-av1: simplify plist updates

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

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

commit 1e2aa3947a05a7d71732020ce10c163d3d8d9d50
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-06-27 16:47:28 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-06-27 16:58:05 +0000

    multimedia/svt-av1: simplify plist updates
---
 multimedia/svt-av1/Makefile  | 1 +
 multimedia/svt-av1/pkg-plist | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/multimedia/svt-av1/Makefile b/multimedia/svt-av1/Makefile
index e0dd32b82576..f719216b6f11 100644
--- a/multimedia/svt-av1/Makefile
+++ b/multimedia/svt-av1/Makefile
@@ -22,6 +22,7 @@ USE_LDCONFIG=	yes
 GL_ACCOUNT=	AOMediaCodec
 GL_PROJECT=	SVT-AV1
 CMAKE_OFF=	NATIVE
+PLIST_SUB=	VERSION=${DISTVERSION:C/-.*//}
 
 CONFLICTS_INSTALL=	svt-av1-psy # bin/SvtAv1EncApp
 
diff --git a/multimedia/svt-av1/pkg-plist b/multimedia/svt-av1/pkg-plist
index 637f608bbf8f..9b0de4c721bb 100644
--- a/multimedia/svt-av1/pkg-plist
+++ b/multimedia/svt-av1/pkg-plist
@@ -8,5 +8,5 @@ include/svt-av1/EbSvtAv1Formats.h
 include/svt-av1/EbSvtAv1Metadata.h
 lib/libSvtAv1Enc.so
 lib/libSvtAv1Enc.so.2
-lib/libSvtAv1Enc.so.2.1.1
+lib/libSvtAv1Enc.so.%%VERSION%%
 libdata/pkgconfig/SvtAv1Enc.pc