aboutsummaryrefslogtreecommitdiff
path: root/security/pinentry
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2014-11-14 08:21:02 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2014-11-14 08:21:02 +0000
commit9caabf5217f6879d1d2686c4fb63ffda8320a92e (patch)
tree05d8ba575db9f25762e9cb2e169996c385c39759 /security/pinentry
parentfae2edf9a840a94661f818f890ca3458baad814f (diff)
downloadports-9caabf5217f6879d1d2686c4fb63ffda8320a92e.tar.gz
ports-9caabf5217f6879d1d2686c4fb63ffda8320a92e.zip
Notes
Diffstat (limited to 'security/pinentry')
-rw-r--r--security/pinentry/Makefile25
1 files changed, 10 insertions, 15 deletions
diff --git a/security/pinentry/Makefile b/security/pinentry/Makefile
index 7241ae32e9a0..2367f9a223c6 100644
--- a/security/pinentry/Makefile
+++ b/security/pinentry/Makefile
@@ -25,33 +25,28 @@ LDFLAGS+= -L${LOCALBASE}/lib
.if !defined(PINENTRY_SLAVE)
OPTIONS_MULTI= FRONTEND
OPTIONS_MULTI_FRONTEND= NCURSES GTK2 QT4
-OPTIONS_DEFAULT= ${PINENTRY_DEFAULT}
+OPTIONS_DEFAULT= ${OPTIONS_MULTI_FRONTEND}
NCURSES_DESC= Curses frontend
GTK2_DESC= Gtk+ 2 frontend
QT4_DESC= Qt 4 frontend
+
+. if exists(/usr/lib/libc++.so)
+OPTIONS_DEFAULT:= ${OPTIONS_DEFAULT:NQT4}
+QT4_DESC= Qt 4 frontend (broken)
+. endif
.else
PKGNAMESUFFIX= ${PINENTRY_SLAVE}
.endif
.include <bsd.port.options.mk>
-.if !defined(PINENTRY_SLAVE)
-. if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
-PINENTRY_DEFAULT= ${OPTIONS_MULTI_FRONTEND:NQT4}
-QT4_DESC= Qt 4 frontend (broken)
-. else
-PINENTRY_DEFAULT= ${OPTIONS_MULTI_FRONTEND}
-. endif
-.endif
-
.if ${PORT_OPTIONS:MQT4}
-. if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
+. if exists(/usr/lib/libc++.so)
IGNORE= with Qt 4 frontend does not compile with libc++
. endif
USE_QT4= gui moc_build
PLIST_SUB+= WITH_QT4=""
-MOC4= ${LOCALBASE}/bin/moc-qt4
.else
CONFIGURE_ARGS+=--disable-pinentry-qt4
PLIST_SUB+= WITH_QT4="@comment "
@@ -76,9 +71,9 @@ PLIST_SUB+= WITH_NCURSES="@comment "
pre-configure:
.if ${PORT_OPTIONS:MQT4}
cd ${WRKSRC}/qt4 && \
- ${MOC4} pinentrydialog.h > pinentrydialog.moc && \
- ${MOC4} qsecurelineedit.h > qsecurelineedit.moc && \
- ${MOC4} pinentryconfirm.h > pinentryconfirm.moc
+ ${MOC} pinentrydialog.h > pinentrydialog.moc && \
+ ${MOC} qsecurelineedit.h > qsecurelineedit.moc && \
+ ${MOC} pinentryconfirm.h > pinentryconfirm.moc
.endif
.include <bsd.port.mk>