| @@ -1,102 +1,71 @@ | | | @@ -1,102 +1,71 @@ |
1 | # $NetBSD: options.mk,v 1.12 2020/05/01 07:10:19 rillig Exp $ | | 1 | # $NetBSD: options.mk,v 1.13 2020/05/03 19:08:52 rillig Exp $ |
2 | | | | |
3 | | | 2 | |
4 | # xmlada is built-in (not optional) due to gprbuild dependency | | 3 | # xmlada is built-in (not optional) due to gprbuild dependency |
5 | # zlib is built-in because it's mandatory. It even comes with AWS. | | 4 | # zlib is built-in because it's mandatory. It even comes with AWS. |
6 | # ASIS is not supported right now (custom build, requires part of GNAT) | | 5 | # ASIS is not supported right now (custom build, requires part of GNAT) |
7 | | | 6 | |
8 | # The "ipv6" option effectively disabled IPv4 support, so it | | 7 | # The "ipv6" option effectively disabled IPv4 support, so it |
9 | # should not be switched on per default even on systems which | | 8 | # should not be switched on per default even on systems which |
10 | # support IPv6. For that reason, the option name is not "inet6". | | 9 | # support IPv6. For that reason, the option name is not "inet6". |
11 | | | 10 | |
12 | PKG_OPTIONS_VAR= PKG_OPTIONS.aws | | 11 | PKG_OPTIONS_VAR= PKG_OPTIONS.aws |
13 | PKG_OPTIONS_OPTIONAL_GROUPS= slayer | | 12 | PKG_OPTIONS_OPTIONAL_GROUPS= slayer |
14 | PKG_OPTIONS_GROUP.slayer= ssl gnutls | | 13 | PKG_OPTIONS_GROUP.slayer= ssl gnutls |
15 | PKG_SUPPORTED_OPTIONS= ldap inet6 debug relocatable | | 14 | PKG_SUPPORTED_OPTIONS= ldap inet6 debug relocatable |
16 | PKG_SUGGESTED_OPTIONS= ssl | | 15 | PKG_SUGGESTED_OPTIONS= ssl |
17 | | | 16 | |
18 | .include "../../mk/bsd.prefs.mk" | | 17 | .include "../../mk/bsd.prefs.mk" |
19 | .include "../../mk/bsd.options.mk" | | 18 | .include "../../mk/bsd.options.mk" |
20 | | | 19 | |
21 | CONFIGURE_ARGS+= GCC=ada | | 20 | CONFIGURE_ARGS+= GCC=ada |
22 | CONFIGURE_ARGS+= PROCESSORS=${MAKE_JOBS} | | 21 | CONFIGURE_ARGS+= PROCESSORS=${MAKE_JOBS} |
23 | CONFIGURE_ARGS+= PYTHON=python${PYVERSSUFFIX} | | 22 | CONFIGURE_ARGS+= PYTHON=python${PYVERSSUFFIX} |
24 | CONFIGURE_ARGS+= XMLADA=true | | 23 | CONFIGURE_ARGS+= XMLADA=true |
25 | CONFIGURE_ARGS+= prefix=${PREFIX} | | 24 | CONFIGURE_ARGS+= prefix=${PREFIX} |
26 | DOTBUILD= release | | | |
27 | | | 25 | |
28 | # The system libgcc is from version 4.1 which doesn't include the symbol | | 26 | # The system libgcc is from version 4.1 which doesn't include the symbol |
29 | # _Unwind_GetIPInfo. If AWS uses the system zlib or if it's configured to use | | 27 | # _Unwind_GetIPInfo. If AWS uses the system zlib or if it's configured to use |
30 | # SSL the search path /usr/lib is inserted in the gnatmake/gprbuild | | 28 | # SSL the search path /usr/lib is inserted in the gnatmake/gprbuild |
31 | # instructions and the system libgcc.a is picked up instead of | | 29 | # instructions and the system libgcc.a is picked up instead of |
32 | # /usr/pkg/lib/libgcc.a. This is a bug confirmed by Adacore and an internal | | 30 | # /usr/pkg/lib/libgcc.a. This is a bug confirmed by Adacore and an internal |
33 | # bug report has been generated. In the meantime, this means AWS can't be | | 31 | # bug report has been generated. In the meantime, this means AWS can't be |
34 | # configured for HTTPS on NetBSD, and that zlib must be built from scratch on | | 32 | # configured for HTTPS on NetBSD, and that zlib must be built from scratch on |
35 | # NetBSD until NetBSD upgrades it's libgcc or until a new GNAT and GPRBuild | | 33 | # NetBSD until NetBSD upgrades it's libgcc or until a new GNAT and GPRBuild |
36 | # are delivered that don't have this bug. | | 34 | # are delivered that don't have this bug. |
37 | | | 35 | |
38 | .if ${OPSYS} == NetBSD | | 36 | .if ${OPSYS} == NetBSD |
39 | CONFIGURE_ARGS+= ZLIB=false | | 37 | CONFIGURE_ARGS+= ZLIB=false |
40 | .else | | 38 | .else |
41 | CONFIGURE_ARGS+= ZLIB=true | | 39 | CONFIGURE_ARGS+= ZLIB=true |
42 | .endif | | 40 | .endif |
43 | | | 41 | |
44 | ################### | | | |
45 | ## SSL Support ## | | | |
46 | ################### | | | |
47 | | | | |
48 | .if !empty(PKG_OPTIONS:Mssl) | | 42 | .if !empty(PKG_OPTIONS:Mssl) |
49 | .include "../../security/openssl/buildlink3.mk" | | 43 | .include "../../security/openssl/buildlink3.mk" |
50 | CONFIGURE_ARGS+= SOCKET=openssl | | 44 | CONFIGURE_ARGS+= SOCKET=openssl |
51 | .endif | | 45 | .endif |
52 | | | 46 | |
53 | .if !empty(PKG_OPTIONS:Mgnutls) | | 47 | .if !empty(PKG_OPTIONS:Mgnutls) |
54 | .include "../../security/libgcrypt/buildlink3.mk" | | 48 | .include "../../security/libgcrypt/buildlink3.mk" |
55 | .include "../../security/openssl/buildlink3.mk" | | 49 | .include "../../security/openssl/buildlink3.mk" |
56 | .include "../../security/gnutls/buildlink3.mk" | | 50 | .include "../../security/gnutls/buildlink3.mk" |
57 | CONFIGURE_ARGS+= SOCKET=gnutls | | 51 | CONFIGURE_ARGS+= SOCKET=gnutls |
58 | .endif | | 52 | .endif |
59 | | | 53 | |
60 | | | | |
61 | #################### | | | |
62 | ## LDAP Support ## | | | |
63 | #################### | | | |
64 | | | | |
65 | .if !empty(PKG_OPTIONS:Mldap) | | 54 | .if !empty(PKG_OPTIONS:Mldap) |
66 | CONFIGURE_ARGS+= LDAP=true | | 55 | CONFIGURE_ARGS+= LDAP=true |
67 | .include "../../databases/openldap-client/buildlink3.mk" | | 56 | .include "../../databases/openldap-client/buildlink3.mk" |
68 | .endif | | 57 | .endif |
69 | | | 58 | |
70 | #################### | | 59 | .if !empty(PKG_OPTIONS:Minet6) |
71 | ## IPv6 Support ## | | | |
72 | #################### | | | |
73 | | | | |
74 | PLIST_VARS+= ipv6 noipv6 | | | |
75 | .if !empty(PKG_OPTIONS:Mipv6) | | | |
76 | CONFIGURE_ARGS+= IPv6=true | | 60 | CONFIGURE_ARGS+= IPv6=true |
77 | .endif | | 61 | .endif |
78 | | | 62 | |
79 | ##################### | | | |
80 | ## Debug Support ## | | | |
81 | ##################### | | | |
82 | | | | |
83 | .if !empty(PKG_OPTIONS:Mdebug) | | 63 | .if !empty(PKG_OPTIONS:Mdebug) |
84 | CONFIGURE_ARGS+= DEBUG=true | | 64 | CONFIGURE_ARGS+= DEBUG=true |
85 | DOTBUILD= debug | | | |
86 | .endif | | 65 | .endif |
87 | | | 66 | |
88 | ############################## | | | |
89 | ## Shared Runtime Library ## | | | |
90 | ############################## | | | |
91 | | | | |
92 | #.if !empty(PKG_OPTIONS:Mdisable-shared-rt) | | | |
93 | CONFIGURE_ARGS+= ENABLE_SHARED=false | | 67 | CONFIGURE_ARGS+= ENABLE_SHARED=false |
94 | #.endif | | | |
95 | | | | |
96 | ############################ | | | |
97 | ## Default Library Type ## | | | |
98 | ############################ | | | |
99 | | | 68 | |
100 | .if !empty(PKG_OPTIONS:Mrelocatable) | | 69 | .if !empty(PKG_OPTIONS:Mrelocatable) |
101 | CONFIGURE_ARGS+= DEFAULT_LIBRARY_TYPE=relocatable | | 70 | CONFIGURE_ARGS+= DEFAULT_LIBRARY_TYPE=relocatable |
102 | .endif | | 71 | .endif |