pkgsrc/security/gpgme/options.mk
jperkin 4373d99d5d Remove mk/find-prefix.mk usage from the security category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 12:58:02 +00:00

24 lines
810 B
Makefile

# $NetBSD: options.mk,v 1.4 2015/11/25 12:58:02 jperkin Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gpgme
PKG_OPTIONS_REQUIRED_GROUPS= gnupg
PKG_OPTIONS_GROUP.gnupg= gnupg1 gnupg2 gnupg21
PKG_SUGGESTED_OPTIONS= gnupg2
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mgnupg21)
DEPENDS+= gnupg21>=2.1:../../security/gnupg21
CONFIGURE_ARGS+= --with-gpgsm=${LOCALBASE}/bin/gpgsm
CONFIGURE_ARGS+= --with-gpg=${LOCALBASE}/bin/gpg2
REPLACE_SH+= tests/gpg/pinentry
.elif !empty(PKG_OPTIONS:Mgnupg2)
DEPENDS+= gnupg2>=2.0<2.1:../../security/gnupg2
CONFIGURE_ARGS+= --with-gpgsm=${LOCALBASE}/bin/gpgsm
CONFIGURE_ARGS+= --with-gpg=${LOCALBASE}/bin/gpg2
REPLACE_SH+= tests/gpg/pinentry
.else
DEPENDS+= gnupg>=1.4.2:../../security/gnupg
CONFIGURE_ARGS+= --without-gpgconf
CONFIGURE_ARGS+= --without-gpgsm
.endif