summaryrefslogtreecommitdiff
path: root/security/pinentry
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2015-07-17 15:49:09 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2015-07-17 15:49:09 +0000
commit7d1d2b9b426b70f7b50676137cfc5913015d81af (patch)
treeb37bd485f483c805e0d9216028e5dd6d00a79c88 /security/pinentry
parentFix runtime error: (diff)
security/pinentry:
- Add GNOME 3 pinentry dialog
Notes
Notes: svn path=/head/; revision=392382
Diffstat (limited to 'security/pinentry')
-rw-r--r--security/pinentry/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/security/pinentry/Makefile b/security/pinentry/Makefile
index f3ba8351ab17..e35e22d6c068 100644
--- a/security/pinentry/Makefile
+++ b/security/pinentry/Makefile
@@ -19,7 +19,7 @@ NO_BUILD= yes
PLIST_FILES= bin/pinentry
OPTIONS_SINGLE= FRONTEND
-OPTIONS_SINGLE_FRONTEND= TTY NCURSES GTK2 QT4
+OPTIONS_SINGLE_FRONTEND= TTY NCURSES GTK2 QT4 GNOME3
OPTIONS_DEFAULT= TTY
FRONTEND_DESC= Default frontend
@@ -44,6 +44,10 @@ QT4_DESC= Qt 4 frontend
PINENTRY_QT4= pinentry-qt4
QT4_RUN_DEPENDS= ${PINENTRY_QT4}:${PORTSDIR}/security/pinentry-qt4
+GNOME3_DESC= GNOME 3 frontend
+PINENTRY_GNOME3= pinentry-gnome3
+GNOME3_RUN_DEPENDS= ${PINENTRY_GNOME3}:${PORTSDIR}/security/pinentry-gnome3
+
.include <bsd.port.options.mk>
.for gui in ${OPTIONS_SINGLE_FRONTEND}
@@ -64,8 +68,7 @@ LIB_DEPENDS= libassuan.so:${PORTSDIR}/security/libassuan \
USES+= iconv gmake pkgconfig
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --disable-pinentry-emacs \
- --disable-pinentry-gnome3
+CONFIGURE_ARGS= --disable-pinentry-emacs
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
@@ -76,6 +79,14 @@ LIBSECRET_DESC= Saving the passphrase with libsecret
LIBSECRET_CONFIGURE_ENABLE= libsecret
LIBSECRET_LIB_DEPENDS= libsecret-1.so:${PORTSDIR}/security/libsecret
+.if ${PINENTRY_GUI} == "gnome3"
+USE_GNOME+= gtk20
+LIB_DEPENDS+= libgcr-base-3.so:${PORTSDIR}/security/gcr
+PLIST_FILES= bin/pinentry-gnome3
+.else
+CONFIGURE_ARGS+=--disable-pinentry-gnome3
+.endif
+
.if ${PINENTRY_GUI} == "qt4"
USES+= compiler:c++11-lib
USE_CXXSTD= c++11