2003-01-30 23:37:07 +01:00
|
|
|
# New ports collection makefile for: pinentry
|
|
|
|
# Date created: 29 Jan 2003
|
|
|
|
# Whom: michaelnottebrock@gmx.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pinentry
|
2010-03-06 20:42:41 +01:00
|
|
|
PORTVERSION= 0.8.0
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 1
|
2003-01-30 23:37:07 +01:00
|
|
|
CATEGORIES= security
|
2004-05-03 21:22:04 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNUPG}
|
|
|
|
MASTER_SITE_SUBDIR= pinentry
|
2003-01-30 23:37:07 +01:00
|
|
|
|
2009-02-08 00:14:46 +01:00
|
|
|
MAINTAINER= makc@FreeBSD.org
|
2004-05-03 21:22:04 +02:00
|
|
|
COMMENT?= A collection of simple PIN or passphrase entry dialogs
|
2003-01-30 23:37:07 +01:00
|
|
|
|
2009-01-06 14:01:11 +01:00
|
|
|
LIB_DEPENDS= gcrypt.16:${PORTSDIR}/security/libgcrypt \
|
2006-09-13 23:24:20 +02:00
|
|
|
ksba.17:${PORTSDIR}/security/libksba
|
2004-05-03 21:22:04 +02:00
|
|
|
|
2005-04-16 01:46:01 +02:00
|
|
|
CONFLICTS?= pinentry-[a-z]*-[0.9]*
|
2003-01-30 23:37:07 +01:00
|
|
|
|
2004-05-04 12:49:48 +02:00
|
|
|
USE_ICONV= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2003-01-30 23:37:07 +01:00
|
|
|
USE_GMAKE= yes
|
2003-08-28 18:42:22 +02:00
|
|
|
INFO= pinentry
|
2003-01-30 23:37:07 +01:00
|
|
|
|
2009-08-15 17:40:30 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
|
2004-05-04 16:18:52 +02:00
|
|
|
|
2009-06-24 10:25:55 +02:00
|
|
|
.if !defined(PINENTRY_SLAVE)
|
|
|
|
OPTIONS= NCURSES "Curses frontend" on \
|
|
|
|
GTK "Gtk+1 frontend" on \
|
|
|
|
GTK2 "Gtk+2 frontend" on \
|
|
|
|
QT3 "Qt3 frontend" on \
|
|
|
|
QT4 "Qt4 frontend" on
|
|
|
|
.else
|
|
|
|
PKGNAMESUFFIX= ${PINENTRY_SLAVE}
|
|
|
|
.endif
|
2004-11-04 17:49:10 +01:00
|
|
|
|
2009-06-24 10:25:55 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_QT3)
|
|
|
|
USE_QT_VER= 3
|
|
|
|
PLIST_SUB+= WITH_QT3=""
|
|
|
|
MOC3= ${LOCALBASE}/bin/moc
|
2004-11-04 18:19:01 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-pinentry-qt
|
2009-06-24 10:25:55 +02:00
|
|
|
PLIST_SUB+= WITH_QT3="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_QT4)
|
|
|
|
#USE_QT_VER= 4
|
|
|
|
#QT_COMPONENTS= gui moc_build
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.qt.mk"
|
|
|
|
BUILD_DEPENDS+= moc-qt4:${PORTSDIR}/devel/qt4-moc
|
|
|
|
LIB_DEPENDS+= QtGui.4:${PORTSDIR}/x11-toolkits/qt4-gui
|
|
|
|
PLIST_SUB+= WITH_QT4=""
|
2009-07-12 13:28:30 +02:00
|
|
|
MOC4= ${LOCALBASE}/bin/moc-qt4
|
2009-08-15 17:40:30 +02:00
|
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
2009-06-24 10:25:55 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-pinentry-qt4
|
|
|
|
PLIST_SUB+= WITH_QT4="@comment "
|
2003-01-30 23:37:07 +01:00
|
|
|
.endif
|
|
|
|
|
2009-06-24 10:25:55 +02:00
|
|
|
.if defined(WITH_GTK)
|
2003-02-22 18:11:09 +01:00
|
|
|
USE_GNOME+= gtk12
|
2003-02-22 19:46:14 +01:00
|
|
|
PLIST_SUB+= WITH_GTK=""
|
2003-02-22 18:11:09 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-pinentry-gtk
|
2003-02-22 19:46:14 +01:00
|
|
|
PLIST_SUB+= WITH_GTK="@comment "
|
2003-01-30 23:37:07 +01:00
|
|
|
.endif
|
|
|
|
|
2009-06-24 10:25:55 +02:00
|
|
|
.if defined(WITH_GTK2)
|
2004-11-04 17:49:10 +01:00
|
|
|
USE_GNOME+= gtk20
|
|
|
|
PLIST_SUB+= WITH_GTK2=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-pinentry-gtk2
|
|
|
|
PLIST_SUB+= WITH_GTK2="@comment "
|
|
|
|
.endif
|
|
|
|
|
2009-06-24 10:25:55 +02:00
|
|
|
.if defined(WITH_NCURSES)
|
|
|
|
PLIST_SUB+= WITH_NCURSES=""
|
2004-05-03 21:22:04 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-pinentry-curses
|
2009-06-24 10:25:55 +02:00
|
|
|
PLIST_SUB+= WITH_NCURSES="@comment "
|
2004-05-03 21:22:04 +02:00
|
|
|
.endif
|
2009-06-24 10:25:55 +02:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
${REINPLACE_CMD} -e "s@-lpthread@${PTHREAD_LIBS}@g" \
|
|
|
|
${WRKSRC}/m4/qt.m4 ${WRKSRC}/configure
|
|
|
|
.if defined(WITH_QT3)
|
|
|
|
${REINPLACE_CMD} -e "/^MOC/s,@MOC@,${MOC3}," \
|
|
|
|
${WRKSRC}/qt/Makefile.in
|
2004-11-04 18:19:01 +01:00
|
|
|
.endif
|
2009-07-12 13:28:30 +02:00
|
|
|
.if defined(WITH_QT4)
|
|
|
|
cd ${WRKSRC}/qt4 && \
|
|
|
|
${MOC4} pinentrydialog.h > pinentrydialog.moc && \
|
|
|
|
${MOC4} qsecurelineedit.h > qsecurelineedit.moc
|
|
|
|
.endif
|
2003-01-30 23:37:07 +01:00
|
|
|
|
2004-05-03 21:22:04 +02:00
|
|
|
.include <bsd.port.mk>
|