git: f4673bd16d27 - main - games/vultures-eye: fix build on 14.x by renaming macro which conflicts with math.h

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Tue, 20 Sep 2022 18:21:40 UTC
The branch main has been updated by amdmi3:

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

commit f4673bd16d27820218d57ee0676becd8d2f9c252
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-09-20 16:03:49 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-09-20 18:21:03 +0000

    games/vultures-eye: fix build on 14.x by renaming macro which conflicts with math.h
    
    Reported by:    pkg-fallout
---
 games/vultures-eye/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/games/vultures-eye/Makefile b/games/vultures-eye/Makefile
index 86d0396b25eb..502617575c4d 100644
--- a/games/vultures-eye/Makefile
+++ b/games/vultures-eye/Makefile
@@ -39,6 +39,11 @@ MAKE_ENV+=	FLEX="${FLEX}"
 pre-patch:
 	@(cd ${WRKSRC}/win && ${LN} -sf ../../vulture)
 
+post-patch:
+	@${FIND} ${WRKSRC} \( -name "*.c" -o -name "*.h" \) -print
+	@${FIND} ${WRKSRC} \( -name "*.c" -o -name "*.h" \) -exec \
+		${REINPLACE_CMD} -e 's|yn(|yesno(|g' {} \;
+
 pre-configure:
 	@${CHMOD} a+x ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}