git: d1d115cf3b99 - main - security/libpki: Fix LDAP option build

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Tue, 19 Jul 2022 07:00:39 UTC
The branch main has been updated by eduardo:

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

commit d1d115cf3b998b9036c514c29a48718df0d26c79
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2022-07-19 06:56:19 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-07-19 06:56:19 +0000

    security/libpki: Fix LDAP option build
    
     - use LDAP_USE= OPENLDAP=yes instead of LIB_DEPENDS on
       net/openldap24-client
     - remove LDAP_LDFLAGS+= llber  causing build to fail
    
    PR:             265293
---
 security/libpki/Makefile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/security/libpki/Makefile b/security/libpki/Makefile
index 17e62c596635..09a8d085f046 100644
--- a/security/libpki/Makefile
+++ b/security/libpki/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	libpki
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.9.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	security
 
 PATCH_SITES=	https://github.com/openca/libpki/commit/
@@ -35,10 +35,8 @@ MYSQL_DESC=	"Enable MySQL support"
 PGSQL_DESC=	"Enable PostgreSQL support"
 
 DNS_CONFIGURE_ENABLE=	dns
-LDAP_LIB_DEPENDS=	liblber.so:net/openldap24-client \
-			libldap_r.so:net/openldap24-client
+LDAP_USE=		OPENLDAP=yes
 LDAP_CONFIGURE_ENABLE=	ldap
-LDAP_LDFLAGS+=		-llber
 MYSQL_USES=		mysql
 MYSQL_CONFIGURE_ENABLE=	mysql
 PGSQL_USES=		pgsql