git: cc5b59169459 - main - x11-wm/mangowc: Fix build on FreeBSD 13.5

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Mon, 05 Jan 2026 17:44:36 UTC
The branch main has been updated by nivit:

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

commit cc5b59169459953ccb2e10d3643544740482c3e9
Author:     Evilham <contact@evilham.com>
AuthorDate: 2026-01-05 17:38:53 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2026-01-05 17:44:32 +0000

    x11-wm/mangowc: Fix build on FreeBSD 13.5
    
    - Install a sample copy of configuration file
    - Bump PORTREVISION (pkg-plist changed)
    
    PR:             287919
    Reported by:    pkg-fallout
---
 x11-wm/mangowc/Makefile | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/x11-wm/mangowc/Makefile b/x11-wm/mangowc/Makefile
index cdd04a4d9e69..b5eef5454b37 100644
--- a/x11-wm/mangowc/Makefile
+++ b/x11-wm/mangowc/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mangowc
 DISTVERSION=	0.10.8
+PORTREVISION=	1
 CATEGORIES=	x11-wm
 
 MAINTAINER=	nivit@FreeBSD.org
@@ -43,7 +44,18 @@ SUB_FILES=	pkg-message
 
 PLIST_FILES=	bin/mango \
 		bin/mmsg \
-		etc/mango/config.conf \
+		"@sample etc/mango/config.conf.sample" \
 		share/wayland-sessions/mango.desktop
 
+post-patch:
+# Fix C flags
+# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275328
+	@${REINPLACE_CMD} -e 's/_POSIX_C_SOURCE=200809L/_XOPEN_SOURCE=700/' \
+		${WRKSRC}/meson.build
+
+# Install a sample copy of configuration file
+post-install:
+	@${CP} ${WRKSRC}/config.conf \
+		${STAGEDIR}${PREFIX}/etc/mango/config.conf.sample
+
 .include <bsd.port.mk>