pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/gnupg Add options.mk file.
details: https://anonhg.NetBSD.org/pkgsrc/rev/7ac83637a612
branches: trunk
changeset: 486206:7ac83637a612
user: wiz <wiz%pkgsrc.org@localhost>
date: Sat Dec 25 02:54:49 2004 +0000
description:
Add options.mk file.
diffstat:
security/gnupg/options.mk | 56 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 56 insertions(+), 0 deletions(-)
diffs (60 lines):
diff -r 32552987011b -r 7ac83637a612 security/gnupg/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/gnupg/options.mk Sat Dec 25 02:54:49 2004 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index