# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
maintainers {ionic @Ionic} openmaintainer
homepage https://gnupg.org/software/pinentry/
description Passphrase entry dialog utilizing the Assuan protocol
long_description This is a collection of simple PIN or passphrase entry \
dialogs in a secure manner.
checksums rmd160 33b1f9ae44172a0bba37ad4b7d264822e040fe9e \
sha256 68076686fa724a290ea49cdf0d1c0c1500907d1b759a3bcbfbec0293e8f56570 \
configure.args --with-libiconv-prefix=${prefix} \
--with-ncurses-include-dir=${prefix}/include/ncurses \
--enable-pinentry-curses \
--disable-pinentry-gtk2 \
--disable-pinentry-gnome3 \
# Fix picking up the correct assuan version.
# -isystem has the added benefit of moving the include
# directory specified to the end of the include path list.
# This will help the build system respect custom include
# paths correctly (i.e., searching them before the MP include
configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
depends_build port:pkgconfig
depends_lib port:libiconv \
variant gtk2 description {Enable gtk2-based pinentry tool} {
depends_lib-append port:gtk2
configure.args-delete --disable-pinentry-gtk2
configure.args-append --enable-pinentry-gtk2 \
variant gnome3 description {Enable GNOME3/gtk3-based pinentry tool} {
depends_lib-append port:gcr \
configure.args-delete --disable-pinentry-gnome3 \
configure.args-append --enable-pinentry-gnome3 \