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
|
2005-04-16 01:46:01 +02:00
|
|
|
PORTVERSION= 0.7.2
|
2005-11-05 06:22:06 +01:00
|
|
|
PORTREVISION= 3
|
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
|
|
|
|
2003-08-28 18:42:22 +02:00
|
|
|
MAINTAINER= lofi@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
|
|
|
|
2005-01-11 15:53:12 +01:00
|
|
|
LIB_DEPENDS= gcrypt.13:${PORTSDIR}/security/libgcrypt \
|
2005-12-20 17:39:54 +01:00
|
|
|
ksba.15:${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
|
|
|
|
2003-07-14 04:53:03 +02:00
|
|
|
USE_GETOPT_LONG=yes
|
2004-05-04 12:49:48 +02:00
|
|
|
USE_ICONV= yes
|
2003-02-22 19:46:14 +01:00
|
|
|
WANT_GNOME= yes
|
2005-11-15 07:52:12 +01:00
|
|
|
USE_AUTOTOOLS= libtool:13
|
2003-01-30 23:37:07 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
USE_REINPLACE= yes
|
2003-08-28 18:42:22 +02:00
|
|
|
INFO= pinentry
|
2003-01-30 23:37:07 +01:00
|
|
|
|
2004-05-04 16:18:52 +02:00
|
|
|
CONFIGURE_ARGS+=--with-libiconv-prefix=${LOCALBASE}
|
|
|
|
|
2004-11-04 17:49:10 +01:00
|
|
|
.if defined(PINENTRY_QT) || defined(PINENTRY_GTK) || defined(PINENTRY_GTK2) || defined(PINENTRY_CURSES)
|
2004-05-03 21:22:04 +02:00
|
|
|
.if defined(PINENTRY_QT)
|
2003-02-22 18:11:09 +01:00
|
|
|
USE_QT_VER= 3
|
|
|
|
PLIST_SUB+= WITH_QT=""
|
2004-11-04 17:49:10 +01:00
|
|
|
|
|
|
|
pre-configure:
|
2004-11-04 18:19:01 +01:00
|
|
|
@${REINPLACE_CMD} -e "s@-lpthread@${PTHREAD_LIBS}@g" \
|
2004-11-04 17:49:10 +01:00
|
|
|
${WRKSRC}/acinclude.m4 ${WRKSRC}/configure
|
2004-11-04 18:19:01 +01:00
|
|
|
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-pinentry-qt
|
|
|
|
PLIST_SUB+= WITH_QT="@comment "
|
2003-01-30 23:37:07 +01:00
|
|
|
.endif
|
|
|
|
|
2004-05-03 21:22:04 +02:00
|
|
|
.if defined(PINENTRY_GTK)
|
2003-02-22 18:11:09 +01:00
|
|
|
USE_GNOME+= gtk12
|
2003-02-22 19:46:14 +01:00
|
|
|
PLIST_SUB+= WITH_GTK=""
|
2005-10-18 20:33:22 +02:00
|
|
|
CONFIGURE_ENV+= CFLAGS=-I${LOCALBASE}/include
|
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
|
|
|
|
|
2004-11-04 17:49:10 +01:00
|
|
|
.if defined(PINENTRY_GTK2)
|
|
|
|
USE_GNOME+= gtk20
|
|
|
|
PLIST_SUB+= WITH_GTK2=""
|
2005-10-18 20:33:22 +02:00
|
|
|
CONFIGURE_ENV+= CFLAGS=-I${LOCALBASE}/include
|
2004-11-04 17:49:10 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-pinentry-gtk2
|
|
|
|
PLIST_SUB+= WITH_GTK2="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-05-03 21:22:04 +02:00
|
|
|
.if defined(PINENTRY_CURSES)
|
|
|
|
PLIST_SUB+= WITH_CURSES=""
|
2005-10-18 20:33:22 +02:00
|
|
|
CONFIGURE_ENV+= CFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
|
2004-05-03 21:22:04 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-pinentry-curses
|
|
|
|
PLIST_SUB+= WITH_CURSES="@comment "
|
|
|
|
.endif
|
|
|
|
.else
|
|
|
|
USE_QT_VER= 3
|
2004-11-04 17:49:10 +01:00
|
|
|
USE_GNOME+= gtk12 gtk20
|
2004-05-03 21:22:04 +02:00
|
|
|
PLIST_SUB+= WITH_QT=""
|
|
|
|
PLIST_SUB+= WITH_GTK=""
|
2004-11-04 17:49:10 +01:00
|
|
|
PLIST_SUB+= WITH_GTK2=""
|
2004-05-03 21:22:04 +02:00
|
|
|
PLIST_SUB+= WITH_CURSES=""
|
2004-11-04 18:19:01 +01:00
|
|
|
.endif
|
2003-01-30 23:37:07 +01:00
|
|
|
|
2004-05-03 21:22:04 +02:00
|
|
|
.include <bsd.port.mk>
|