git: e31a71e241ce - main - mail/bmf: Remove support for deprecated Berkeley DB 5.3

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sun, 19 May 2024 07:56:20 UTC
The branch main has been updated by diizzy:

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

commit e31a71e241ce14dd0e1efdb8d18acace249e61a5
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-05-18 21:31:46 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-05-19 06:05:06 +0000

    mail/bmf: Remove support for deprecated Berkeley DB 5.3
    
    Remove support for Berkeley DB 5.3 and switch to MySQL backend instead
---
 mail/bmf/Makefile | 26 +++++++++++---------------
 1 file changed, 11 insertions(+), 15 deletions(-)

diff --git a/mail/bmf/Makefile b/mail/bmf/Makefile
index 4f0ab41360e6..f8ae30449328 100644
--- a/mail/bmf/Makefile
+++ b/mail/bmf/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	bmf
 PORTVERSION=	0.9.4
-PORTREVISION=	1
+PORTREVISION=	2
 PORTEPOCH=	1
 CATEGORIES=	mail
 MASTER_SITES=	SF
@@ -12,26 +12,22 @@ WWW=		https://sourceforge.net/projects/bmf/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+USES=		mysql
+
 HAS_CONFIGURE=	yes
+
 BINARY_ALIAS=	gcc=${CC} g++=${CXX}
-CONFIGURE_ENV=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
 
-OPTIONS_DEFINE=	BDB DEBUG DOCS MANPAGES MYSQL
-OPTIONS_DEFAULT=BDB MANPAGES
-OPTIONS_SUB=	yes
+CFLAGS+=	-I${LOCALBASE}/include/mysql
+LDFLAGS+=	-L${LOCALBASE}/lib/mysql
 
-BDB_USES=		bdb
-BDB_CONFIGURE_WITH=	libdb
-BDB_CFLAGS=		-I${BDB_INCLUDE_DIR}
-BDB_LDFLAGS=		-L${BDB_LIB_DIR}
-BDB_CONFIGURE_ENV=	DB_LIBNAME=-l${BDB_LIB_NAME}
+CONFIGURE_ARGS=	--with-mysql --without-libdb
 
-DEBUG_CONFIGURE_ON=	--debug=yes
+OPTIONS_DEFINE=	DEBUG DOCS MANPAGES
+OPTIONS_DEFAULT=MANPAGES
+OPTIONS_SUB=	yes
 
-MYSQL_CONFIGURE_WITH=	mysql
-MYSQL_CFLAGS=		-I${LOCALBASE}/include/mysql
-MYSQL_LDFLAGS=		-L${LOCALBASE}/lib/mysql
-MYSQL_USES=		mysql
+DEBUG_CONFIGURE_ON=	--debug=yes
 
 do-install:
 	cd ${WRKSRC} && ${INSTALL_PROGRAM} bmf bmfconv ${STAGEDIR}${PREFIX}/bin