git: 0ad72042dadc - 2026Q3 - mail/postfix-current: Fix MONGO flavor

Juraj Lutter <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch 2026Q3 has been updated by otis:

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

commit 0ad72042dadca9988eb250c45bd6236900849e33
Author:     Juraj Lutter <[email protected]>
AuthorDate: 2026-08-18 17:02:15 +0000
Commit:     Juraj Lutter <[email protected]>
CommitDate: 2026-08-18 17:02:34 +0000

    mail/postfix-current: Fix MONGO flavor
    
    Fix MONGO flavor by depending on libbson and mongo-c-driver contained
    in quarterly branch.
    
    This is a direct commit to 2026Q3
---
 mail/postfix-current/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mail/postfix-current/Makefile b/mail/postfix-current/Makefile
index b8104a969cf7..521add43b949 100644
--- a/mail/postfix-current/Makefile
+++ b/mail/postfix-current/Makefile
@@ -316,10 +316,10 @@ IGNORE=		blocklistd is only supported on FreeBSD
 .endif
 
 .if ${PORT_OPTIONS:MMONGO}
-USES+=			pkgconfig
 DYN_EXT+=		mongodb
-POSTFIX_CCARGS+=	-DHAS_MONGODB `pkg-config --cflags mongoc2`
-POSTFIX_DYN_AUXLIBS+=	"AUXLIBS_MONGODB=`pkg-config --libs mongoc2`"
+POSTFIX_CCARGS+=	-DHAS_MONGODB -I${LOCALBASE}/include/libbson-1.0 \
+			-I${LOCALBASE}/include/libmongoc-1.0
+POSTFIX_DYN_AUXLIBS+=	"AUXLIBS_MONGODB=-L${LOCALBASE}/lib -lbson-1.0 -lmongoc-1.0"
 .endif
 
 .if ${PORT_OPTIONS:MMYSQL}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.