2011-01-20 09:54:56 +01:00
|
|
|
# $NetBSD: options.mk,v 1.5 2011/01/20 08:54:56 adam Exp $
|
2007-08-30 01:19:06 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.gnupg2
|
2009-12-18 18:49:51 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= gpgsm
|
2009-12-15 21:10:40 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS= gpgsm
|
2007-08-30 01:19:06 +02:00
|
|
|
|
2007-11-07 16:24:26 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2007-08-30 01:19:06 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
## If no options are specified, only gpg-agent is built. This
|
|
|
|
## is sufficient for OpenPGP/MIME support in Kmail
|
|
|
|
## SMIME support is provided by gpgsm. This support is
|
|
|
|
## in the alpha stage of development.
|
2011-01-20 09:54:56 +01:00
|
|
|
PLIST_SRC= ${.CURDIR}/PLIST
|
2007-08-30 01:19:06 +02:00
|
|
|
|
|
|
|
# XXX It looks like that gpgsm support could be split into its own package,
|
|
|
|
# according to the configure script. If that's true, this use of the options
|
|
|
|
# framework is incorrect and should be fixed.
|
|
|
|
.if empty(PKG_OPTIONS:Mgpgsm)
|
2011-01-20 09:54:56 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-agent-only
|
2007-08-30 01:19:06 +02:00
|
|
|
.else
|
2007-11-07 16:24:26 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-gpgsm
|
|
|
|
CONFIGURE_ARGS+= --with-dirmngr-pgm=${BUILDLINK_PREFIX.dirmngr}/bin/dirmngr
|
2011-01-20 09:54:56 +01:00
|
|
|
PLIST_SRC+= ${.CURDIR}/PLIST.gpgsm
|
2007-08-30 01:19:06 +02:00
|
|
|
. include "../../security/dirmngr/buildlink3.mk"
|
|
|
|
.endif
|