Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / gnupg / options.mk
blob86d825929a80743d11e14c8df634a5264388a863
1 # $NetBSD: options.mk,v 1.15 2012/06/08 12:50:33 fhajny Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.gnupg
4 PKG_SUPPORTED_OPTIONS= curl ldap readline
6 .include "../../mk/bsd.prefs.mk"
8 .if ${MACHINE_ARCH:Mi386}
9 PKG_SUPPORTED_OPTIONS+= i586-optimized
10 .endif
12 .if ${MACHINE_ARCH:Mm68k}
13 PKG_SUPPORTED_OPTIONS+= m68060-optimized
14 .endif
16 .include "../../mk/bsd.options.mk"
18 .if !empty(PKG_OPTIONS:Mi586-optimized)
19 # use assembler routines optimized for, and only for!, i586
20 ONLY_FOR_PLATFORM= *-*-i386
21 MACHINE_GNU_ARCH= i586
22 .endif
24 .if !empty(PKG_OPTIONS:Mcurl)
25 .include "../../www/curl/buildlink3.mk"
26 .else
27 CONFIGURE_ARGS+= --without-libcurl
28 .endif
30 PLIST_VARS+= ldap
31 .if !empty(PKG_OPTIONS:Mldap)
32 .include "../../databases/openldap-client/buildlink3.mk"
33 PLIST.ldap= yes
34 .else
35 CONFIGURE_ARGS+= --disable-ldap
36 .endif
38 .if !empty(PKG_OPTIONS:Mm68060-optimized)
39 # be more efficient on M68060 machines
40 CONFIGURE_ENV+= M68060=${M68060:Q}
41 CFLAGS+= -m68060
42 .endif
44 .if !empty(PKG_OPTIONS:Mreadline)
45 USE_GNU_READLINE= yes
46 .include "../../devel/readline/buildlink3.mk"
47 CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline}
48 .else
49 CONFIGURE_ARGS+= --without-readline
50 .endif