# $NetBSD: Makefile,v 1.15 2025/10/23 20:39:09 wiz Exp $

PKGNAME=	${DISTNAME:S/pinentry-/pinentry-fltk-/}
PKGREVISION=	1
COMMENT=	Applications for entering PINs or Passphrases, FLTK enabled

.include "../../security/pinentry/Makefile.common"

USE_LANGUAGES=		c c++
USE_TOOLS+=		pkg-config
CONFIGURE_ARGS+=	--disable-libsecret
CONFIGURE_ARGS+=	--disable-pinentry-curses
CONFIGURE_ARGS+=	--disable-pinentry-efl
CONFIGURE_ARGS+=	--disable-pinentry-emacs
CONFIGURE_ARGS+=	--disable-pinentry-gnome3
CONFIGURE_ARGS+=	--disable-pinentry-gtk2
CONFIGURE_ARGS+=	--disable-pinentry-qt
CONFIGURE_ARGS+=	--disable-pinentry-qt5
CONFIGURE_ARGS+=	--enable-pinentry-fltk

INSTALL_DIRS=		fltk

# ----------------------------------------------------------------------
# Remove "patch-configure.ac" and this section after FLTK 1.4 support
# was provided by upstream
USE_TOOLS+=	autoconf automake autoreconf gm4 gettext-m4

pre-configure:
	cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} autoreconf -fi
# ----------------------------------------------------------------------

.include "../../x11/fltk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
