git: ba86977d740a - main - multimedia/ab25: Fix build with llvm15

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 03 Jun 2023 18:07:03 UTC
The branch main has been updated by bofh:

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

commit ba86977d740a2e450b53774efe53f04c68af21ca
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-03 17:38:45 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-03 18:03:24 +0000

    multimedia/ab25: Fix build with llvm15
    
    - Adpot port
---
 multimedia/ab25/Makefile | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/multimedia/ab25/Makefile b/multimedia/ab25/Makefile
index c9ee5a3454ab..99bd112e1b32 100644
--- a/multimedia/ab25/Makefile
+++ b/multimedia/ab25/Makefile
@@ -3,7 +3,7 @@ PORTVERSION=	0.2.5
 CATEGORIES=	multimedia
 MASTER_SITES=	LOCAL/hrs
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	Utility for ARIB STD-B25 ECM handling in MPEG2-TS stream
 WWW=		http://www.marumo.ne.jp/db2012_2.htm #13
 
@@ -18,11 +18,17 @@ USE_LDCONFIG=	yes
 PORTDOCS=	README readme-en.txt readme-jp.txt
 
 PLIST_FILES=	bin/b25 \
-		lib/libab25.a lib/libab25_p.a lib/libab25.so.1 lib/libab25.so \
+		lib/libab25.a lib/libab25.so.1 lib/libab25.so \
 		include/ab25/arib_std_b25.h include/ab25/b_cas_card.h
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} <= 1400079
+PLIST_FILES+=	lib/libab25_p.a
+.endif
+
 pre-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/include/ab25
 
@@ -30,4 +36,4 @@ post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>