Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Apr 2023 18:37:27 GMT
From:      Bernard Spil <brnrd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c3471a56d231 - main - devel/apr1: Update BDB support
Message-ID:  <202304021837.332IbRai078669@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by brnrd:

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

commit c3471a56d23194c594c5dcf30ce3e8cebf127a2c
Author:     Bernard Spil <brnrd@FreeBSD.org>
AuthorDate: 2023-04-02 18:34:41 +0000
Commit:     Bernard Spil <brnrd@FreeBSD.org>
CommitDate: 2023-04-02 18:34:41 +0000

    devel/apr1: Update BDB support
    
     * Allow no BDB
     * Correct license with BDB 18
     * Spelling
    
    PR:             269857
    Submitted by:   John Hein <jcfyecrayz liamekaens com>
---
 devel/apr1/Makefile | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/devel/apr1/Makefile b/devel/apr1/Makefile
index 0665d9648f41..35f77f80c553 100644
--- a/devel/apr1/Makefile
+++ b/devel/apr1/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	apr
 PORTVERSION=	${APR_VERSION}.${APU_VERSION}
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	APACHE/apr
 DISTFILES=	apr-${APR_VERSION}.tar.gz \
@@ -29,14 +30,15 @@ OPTIONS_SUB=		yes
 OPTIONS_GROUP=		APU
 OPTIONS_DEFINE=		IPV6
 OPTIONS_GROUP_APU=	GDBM LDAP MYSQL NDBM ODBC PGSQL SQLITE
-OPTIONS_RADIO=		BERKLEYDB CRYPTO
-OPTIONS_RADIO_BERKLEYDB=BDB BDB5
+OPTIONS_RADIO=		BERKELEYDB CRYPTO
+OPTIONS_RADIO_BERKELEYDB=	BDB BDB5
 OPTIONS_RADIO_CRYPTO=	SSL NSS
 OPTIONS_DEFAULT=	BDB GDBM SSL
 
 APU_DESC=		Database support
+BDB_DESC=		Berkeley DB support (AGPLv3)
 BDB5_DESC=		Berkeley DB v5 support (deprecated)
-BERKLEYDB_DESC=		Berkley DB provider
+BERKELEYDB_DESC=	Berkeley DB provider
 CRYPTO_DESC=		Cryptography provider
 NDBM_DESC=		NDBM support
 NSS_DESC=		NSS crypto driver
@@ -83,8 +85,9 @@ IPV6_VARS_OFF=		APR_CONF_ARGS+=--disable-ipv6
 # to avoid failures if previous apr_version.h is present
 APU_CPPFLAGS=	-I${APR_WRKDIR}/include
 
-BDB_VARS=	APU_CONF_ARGS+=--with-berkeley-db=${BDB_INCLUDE_DIR}:${BDB_LIB_DIR}
-BDB_VARS_OFF=	APU_CONF_ARGS+=--without-berkeley-db
+BDB_VARS=	${BDB5_VARS} \
+		LICENSE_COMB=dual LICENSE+=AGPLv3
+BDB5_VARS=	APU_CONF_ARGS+=--with-berkeley-db=${BDB_INCLUDE_DIR}:${BDB_LIB_DIR} \
 GDBM_VARS=	APU_CONF_ARGS+=--with-gdbm=${LOCALBASE}
 LDAP_VARS=	APU_CONF_ARGS+="--with-ldap-include=${LOCALBASE}/include \
 			--with-ldap-lib=${LOCALBASE}/lib --with-ldap=ldap"
@@ -115,6 +118,10 @@ APU_CONF_ENV+=	${CONFIGURE_ENV:O:u} CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${AP
 
 .include <bsd.port.options.mk>
 
+.if !${PORT_OPTIONS:MBDB} && !${PORT_OPTIONS:MBDB5}
+APU_CONF_ARGS+=	--without-berkeley-db
+.endif
+
 .if ${PORT_OPTIONS:MSSL} || ${PORT_OPTIONS:MNSS}
 APU_CONF_ARGS+=	--with-crypto
 .else



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304021837.332IbRai078669>