git: 63114786f81d - main - devel/libvhdi: Fix build when NLS option is disabled

From: Olivier Cochard <olivier_at_FreeBSD.org>
Date: Wed, 20 May 2026 14:03:34 UTC
The branch main has been updated by olivier:

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

commit 63114786f81d91917f7b7baf2a7b8b90baf3833d
Author:     Olivier Cochard <olivier@FreeBSD.org>
AuthorDate: 2026-05-20 13:58:34 +0000
Commit:     Olivier Cochard <olivier@FreeBSD.org>
CommitDate: 2026-05-20 13:58:34 +0000

    devel/libvhdi: Fix build when NLS option is disabled
    
    The libvhdi autoconf macros add -I/usr/local/include to AM_CPPFLAGS as a side
    effect of processing --with-libintl-prefix=/usr/local.
    When NLS is enabled, the port passes that argument and the global include path
    is set correctly, making <fuse/fuse.h> resolvable.
    When NLS is disabled, --disable-nls is passed instead, the include path is
    never set, and the FUSE compilation fails.
    
    PR:             295440
    Approved by:    antoine
    Sponsored by:   Netflix
---
 devel/libvhdi/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devel/libvhdi/Makefile b/devel/libvhdi/Makefile
index 3824a1296dee..d2c387937574 100644
--- a/devel/libvhdi/Makefile
+++ b/devel/libvhdi/Makefile
@@ -18,7 +18,7 @@ GNU_CONFIGURE=	yes
 GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 CONFIGURE_ARGS=	--enable-python
 CONFIGURE_ENV=	PYTHON_CONFIG=${PYTHON_CMD}-config
-USES=		fuse libtool pathfix pkgconfig python
+USES=		fuse libtool localbase pathfix pkgconfig python
 USE_LDCONFIG=	yes
 INSTALL_TARGET=	install-strip
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}