git: 67579654984a - main - games/xpipeman: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 20 Jul 2023 17:43:12 UTC
The branch main has been updated by bofh:

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

commit 67579654984a67409b46e90aaaef90ccfe33799f
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-20 13:23:46 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-20 17:42:33 +0000

    games/xpipeman: Fix build with llvm16
    
    - Add LICENSE MIT
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 games/xpipeman/Makefile | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/games/xpipeman/Makefile b/games/xpipeman/Makefile
index a6b3b1541e9b..31795e8d60e9 100644
--- a/games/xpipeman/Makefile
+++ b/games/xpipeman/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	xpipeman
 PORTVERSION=	1.5
+PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	SUNSITE/games/strategy
 DISTNAME=	${PORTNAME}
@@ -7,10 +8,19 @@ DISTNAME=	${PORTNAME}
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Connect the pipes to stop the leaks
 
+LICENSE=	MIT
+
 USES=		imake tar:Z xorg
 USE_XORG=	x11 xaw xext xmu xt sm ice
+
 CFLAGS+=	-Wno-error=return-type
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/xpipeman ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/xpipeman.man ${STAGEDIR}${MANPREFIX}/man/man6/xpipeman.6