git: ba3d7c3fa72b - main - net/yaz: Use pkgconfig to detect libxml2, libxslt and icu

From: Neel Chauhan <nc_at_FreeBSD.org>
Date: Tue, 08 Mar 2022 00:39:52 UTC
The branch main has been updated by nc:

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

commit ba3d7c3fa72b1149b741d96381b5be687f905eed
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2022-03-08 00:39:25 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2022-03-08 00:39:25 +0000

    net/yaz: Use pkgconfig to detect libxml2, libxslt and icu
    
    PR:     262409
---
 net/yaz/Makefile | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/net/yaz/Makefile b/net/yaz/Makefile
index 6072f2e50f44..7047259e5019 100644
--- a/net/yaz/Makefile
+++ b/net/yaz/Makefile
@@ -3,7 +3,7 @@
 PORTNAME=	yaz
 DISTVERSION=	5.31.1
 CATEGORIES=	net
-MASTER_SITES=	http://ftp.indexdata.dk/pub/yaz/
+MASTER_SITES=	https://ftp.indexdata.dk/pub/yaz/
 
 MAINTAINER=	nc@FreeBSD.org
 COMMENT=	Z39.50/SR client and API library
@@ -14,8 +14,8 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 LIB_DEPENDS=	libicuuc.so:devel/icu \
 		libgnutls.so:security/gnutls
 
-USES=		gnome iconv libtool ncurses pathfix pkgconfig readline \
-		shebangfix tcl
+USES=		gnome iconv libtool ncurses pathfix localbase:ldflags \
+		pkgconfig readline shebangfix tcl
 SHEBANG_FILES=	src/yaz-asncomp
 GNU_CONFIGURE=	yes
 USE_GNOME=	libxml2 libxslt
@@ -23,9 +23,7 @@ USE_LDCONFIG=	yes
 MAKE_JOBS_UNSAFE=	yes
 
 CONFIGURE_ARGS=	--enable-shared --with-iconv=${ICONV_PREFIX} \
-		--with-xml2=${LOCALBASE} --with-xslt=${LOCALBASE} \
-		--with-icu=${LOCALBASE} --enable-tcpd
-LDFLAGS+=	-L${LOCALBASE}/lib
+		--with-xml2 --with-xslt --with-icu --enable-tcpd
 LIBS+=		-lexecinfo
 
 PORTDOCS=	*