Index: head/security/gpa/Makefile =================================================================== --- head/security/gpa/Makefile (revision 406267) +++ head/security/gpa/Makefile (revision 406268) @@ -1,40 +1,40 @@ # Created by: Clive Lin # $FreeBSD$ PORTNAME= gpa PORTVERSION= 0.9.9 CATEGORIES= security MASTER_SITES= GNUPG/gpa MAINTAINER= jhale@FreeBSD.org COMMENT= GTK2+ frontend for the GNU Privacy Guard LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libassuan.so:${PORTSDIR}/security/libassuan \ libgpgme.so:${PORTSDIR}/security/gpgme BUILD_DEPENDS= gpgv2:${PORTSDIR}/security/gnupg RUN_DEPENDS= gpgv2:${PORTSDIR}/security/gnupg USES= gmake pkgconfig tar:bzip2 USE_GNOME= gtk20 GNU_CONFIGURE= yes CONFIGURE_ENV+= GPGKEYS_LDAP="${LOCALBASE}/libexec/gpg2keys_ldap" CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib OPTIONS_DEFINE= NLS OPTIONS_SUB= yes NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls -.include - -.if !exists(${LOCALBASE}/bin/gpgsm) -IGNORE= requires gpgsm. (Re)Install security/gnupg with the GPGSM option ON -.endif +pre-configure: + @(if [ ! -e ${LOCALBASE}/bin/gpgsm ] ; then \ + ${ECHO_MSG} "gpa requires gpgsm. (Re)Install security/gnupg with the GPGSM option ON" ; \ + exit 1; \ + fi) .include