summaryrefslogtreecommitdiff
path: root/security/gnupg
diff options
context:
space:
mode:
authorjlam <jlam>2008-04-12 22:42:57 +0000
committerjlam <jlam>2008-04-12 22:42:57 +0000
commit84db467ec7c8386066718011f8d47775d5608811 (patch)
treefdd67c81079412bf94013749a954125434a9baca /security/gnupg
parent7082f8c2044621c8641f3c82a2da95c2d442048c (diff)
downloadpkgsrc-84db467ec7c8386066718011f8d47775d5608811.tar.gz
Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
Diffstat (limited to 'security/gnupg')
-rw-r--r--security/gnupg/PLIST4
-rw-r--r--security/gnupg/options.mk12
2 files changed, 8 insertions, 8 deletions
diff --git a/security/gnupg/PLIST b/security/gnupg/PLIST
index e89944db87b..4107bbe658f 100644
--- a/security/gnupg/PLIST
+++ b/security/gnupg/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.21 2007/03/07 11:31:24 drochner Exp $
+@comment $NetBSD: PLIST,v 1.22 2008/04/12 22:43:09 jlam Exp $
bin/gpg
bin/gpg-zip
bin/gpgsplit
@@ -7,7 +7,7 @@ info/gnupg1.info
libexec/gnupg/gpgkeys_curl
libexec/gnupg/gpgkeys_finger
libexec/gnupg/gpgkeys_hkp
-${OPENLDAP}libexec/gnupg/gpgkeys_ldap
+${PLIST.ldap}libexec/gnupg/gpgkeys_ldap
man/man1/gpg.1
man/man1/gpg.ru.1
man/man1/gpgv.1
diff --git a/security/gnupg/options.mk b/security/gnupg/options.mk
index e778f7057e1..cde9bbb4348 100644
--- a/security/gnupg/options.mk
+++ b/security/gnupg/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.12 2007/10/31 12:29:33 rillig Exp $
+# $NetBSD: options.mk,v 1.13 2008/04/12 22:43:09 jlam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gnupg
PKG_SUPPORTED_OPTIONS= curl idea ldap
@@ -43,16 +43,16 @@ pre-configure:
${GZCAT} ${DISTDIR}/idea.c.gz > ${WRKSRC}/cipher/idea.c
.endif
+PLIST_VARS+= ldap
.if !empty(PKG_OPTIONS:Mldap)
.include "../../databases/openldap-client/buildlink3.mk"
-PLIST_SUBST+= OPENLDAP=""
+PLIST.ldap= yes
.else
-CONFIGURE_ARGS+=--disable-ldap
-PLIST_SUBST+= OPENLDAP="@comment "
+CONFIGURE_ARGS+= --disable-ldap
.endif
.if !empty(PKG_OPTIONS:Mm68060-optimized)
# be more efficient on M68060 machines
-CONFIGURE_ENV+= M68060=${M68060:Q}
-CFLAGS+= -m68060
+CONFIGURE_ENV+= M68060=${M68060:Q}
+CFLAGS+= -m68060
.endif