git: ca31abe56eb7 - main - devel/spdlog: Fix build for consumers of this port

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Tue, 03 Jun 2025 09:06:01 UTC
The branch main has been updated by arrowd:

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

commit ca31abe56eb74f1857be1d76a88933911b237926
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-06-03 07:41:51 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-06-03 09:05:21 +0000

    devel/spdlog: Fix build for consumers of this port
    
    PR:             287252
    Approved by:    vanilla (maintainer)
---
 devel/spdlog/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/devel/spdlog/Makefile b/devel/spdlog/Makefile
index 8fdb9a0dc8f4..630d246d02fb 100644
--- a/devel/spdlog/Makefile
+++ b/devel/spdlog/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	spdlog
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.15.2
-PORTREVISION=	0
+PORTREVISION=	1
 CATEGORIES=	devel
 
 MAINTAINER=	vanilla@FreeBSD.org
@@ -28,4 +28,8 @@ post-extract:
 post-patch:
 	${RM} ${WRKSRC}/include/spdlog/fmt/*.h.orig
 
+post-stage:
+# let consumers know that this package was compiled with SPDLOG_FMT_EXTERNAL=yes
+	${ECHO_CMD} '#define SPDLOG_FMT_EXTERNAL' >> ${WRKSRC}/include/spdlog/tweakme.h
+
 .include <bsd.port.mk>