git: db9dbfa336eb - main - emulators/pcsx2: Mark as BROKEN before 13.2

From: Ganael LAPLANCHE <martymac_at_FreeBSD.org>
Date: Thu, 28 Sep 2023 10:44:01 UTC
The branch main has been updated by martymac:

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

commit db9dbfa336ebd7bb0d93d7a2638fc1d2b7505434
Author:     Ganael LAPLANCHE <martymac@FreeBSD.org>
AuthorDate: 2023-09-28 10:41:21 +0000
Commit:     Ganael LAPLANCHE <martymac@FreeBSD.org>
CommitDate: 2023-09-28 10:41:21 +0000

    emulators/pcsx2: Mark as BROKEN before 13.2
    
    Pcsx2 needs a libc++ with std::bit_cast support (introduced in 13.2
    with commit 4b6eb0e63c69)
    
    PR:             273889
    Reported by:    diizzy
---
 emulators/pcsx2/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/emulators/pcsx2/Makefile b/emulators/pcsx2/Makefile
index df7a5a1c720a..6f917ba94d19 100644
--- a/emulators/pcsx2/Makefile
+++ b/emulators/pcsx2/Makefile
@@ -93,4 +93,11 @@ Makefile.tuples::
 			https://github.com/${PORTNAME}/${PORTNAME} . && \
 		${SH} ${FILESDIR}/gen_gh_tuple.sh >> ${.CURDIR}/Makefile.tuples
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# Fixed in 13.2 with commit 4b6eb0e63c69 (libc++ update)
+.if (${OSVERSION} <= 1301503)
+BROKEN=		needs libc++ with std::bit_cast support
+.endif
+
+.include <bsd.port.post.mk>