summaryrefslogtreecommitdiff
path: root/security/gnupg
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2004-12-25 02:54:49 +0000
committerwiz <wiz@pkgsrc.org>2004-12-25 02:54:49 +0000
commit37147d29df6d71d94b4f17cd5c40c848c2a54831 (patch)
tree70f4195aa2d60f495d4098042a8ffe8a5c9cb6c8 /security/gnupg
parente21f81408226c5c31d94bf979c4d4f5b4c267338 (diff)
downloadpkgsrc-37147d29df6d71d94b4f17cd5c40c848c2a54831.tar.gz
Add options.mk file.
Diffstat (limited to 'security/gnupg')
-rw-r--r--security/gnupg/options.mk56
1 files changed, 56 insertions, 0 deletions
diff --git a/security/gnupg/options.mk b/security/gnupg/options.mk
new file mode 100644
index 00000000000..58642c25802
--- /dev/null
+++ b/security/gnupg/options.mk
@@ -0,0 +1,56 @@
+# $NetBSD: options.mk,v 1.1 2004/12/25 02:54:49 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.gnupg
+PKG_SUPPORTED_OPTIONS= i586-optimized idea ldap m68060-optimized
+
+.include "../../mk/bsd.prefs.mk"
+
+# legacy options -- remove after 2005Q1
+.if defined(USE_I586) && !empty(USE_I586:M[yY][eE][sS])
+PKG_DEFAULT_OPTIONS+= i586-optimized
+.endif
+
+.if defined(M68060) && !empty(M68060:M[yY][eE][sS])
+PKG_DEFAULT_OPTIONS+= m68060-optimized
+.endif
+
+.if defined(USE_IDEA) && !empty(USE_IDEA:M[yY][eE][sS])
+PKG_DEFAULT_OPTIONS+= idea
+.endif
+
+.if defined(USE_OPENLDAP) && !empty(USE_OPENLDAP:M[yY][eE][sS])
+PKG_DEFAULT_OPTIONS+= ldap
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mi586-optimized)
+# use assembler routines optimized for, and only for!, i586
+ONLY_FOR_PLATFORM= *-*-i386
+MACHINE_GNU_ARCH= i586
+.endif
+
+.if !empty(PKG_OPTIONS:Mm68060-optimized)
+# be more efficient on M68060 machines
+CONFIGURE_ENV+= M68060=${M68060}
+CFLAGS+= -m68060
+.endif
+
+.if !empty(PKG_OPTIONS:Midea)
+# use of IDEA as crypto function
+LICENCE= fee-based-commercial-use
+DISTFILES+= idea.c.gz
+SITES_idea.c.gz=ftp://ftp.gnupg.dk/pub/contrib-dk/ \
+ http://www.gnupg.dk/contrib-dk/
+
+pre-configure:
+ ${GZCAT} ${DISTDIR}/idea.c.gz > ${WRKSRC}/cipher/idea.c
+.endif
+
+.if !empty(PKG_OPTIONS:Mldap)
+.include "../../databases/openldap/buildlink3.mk"
+PLIST_SUBST+= OPENLDAP=""
+.else
+CONFIGURE_ARGS+=--disable-ldap
+PLIST_SUBST+= OPENLDAP="@comment "
+.endif