| @@ -1,70 +1,70 @@ | | | @@ -1,70 +1,70 @@ |
1 | # $NetBSD: options.mk,v 1.3 2019/10/25 07:16:28 triaxx Exp $ | | 1 | # $NetBSD: options.mk,v 1.4 2019/10/25 08:01:10 triaxx Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql12 | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql12 |
4 | PKG_SUPPORTED_OPTIONS= bonjour dtrace icu llvm gssapi ldap pam | | 4 | PKG_SUPPORTED_OPTIONS= bonjour dtrace icu llvm gssapi ldap nls pam |
5 | PKG_SUGGESTED_OPTIONS= gssapi nls | | 5 | PKG_SUGGESTED_OPTIONS= gssapi nls |
6 | | | 6 | |
7 | PLIST_VARS+= llvm nls | | 7 | PLIST_VARS+= llvm nls |
8 | | | 8 | |
9 | .include "../../mk/bsd.options.mk" | | 9 | .include "../../mk/bsd.options.mk" |
10 | | | 10 | |
11 | # Bonjour support | | 11 | # Bonjour support |
12 | .if !empty(PKG_OPTIONS:Mbonjour) | | 12 | .if !empty(PKG_OPTIONS:Mbonjour) |
13 | CONFIGURE_ARGS+= --with-bonjour | | 13 | CONFIGURE_ARGS+= --with-bonjour |
14 | . if ${OPSYS} != "Darwin" | | 14 | . if ${OPSYS} != "Darwin" |
15 | LIBS+= -ldns_sd | | 15 | LIBS+= -ldns_sd |
16 | . endif | | 16 | . endif |
17 | . include "../../net/mDNSResponder/buildlink3.mk" | | 17 | . include "../../net/mDNSResponder/buildlink3.mk" |
18 | .endif | | 18 | .endif |
19 | | | 19 | |
20 | # Dtrace support | | 20 | # Dtrace support |
21 | .if !empty(PKG_OPTIONS:Mdtrace) | | 21 | .if !empty(PKG_OPTIONS:Mdtrace) |
22 | CONFIGURE_ARGS+= --enable-dtrace | | 22 | CONFIGURE_ARGS+= --enable-dtrace |
23 | .endif | | 23 | .endif |
24 | | | 24 | |
25 | # ICU collatium support | | 25 | # ICU collatium support |
26 | .if !empty(PKG_OPTIONS:Micu) | | 26 | .if !empty(PKG_OPTIONS:Micu) |
27 | USE_TOOLS+= pkg-config | | 27 | USE_TOOLS+= pkg-config |
28 | CONFIGURE_ARGS+= --with-icu | | 28 | CONFIGURE_ARGS+= --with-icu |
29 | . include "../../textproc/icu/buildlink3.mk" | | 29 | . include "../../textproc/icu/buildlink3.mk" |
30 | .endif | | 30 | .endif |
31 | | | 31 | |
32 | # GSSAPI (Kerberos5) authentication for the PostgreSQL backend | | 32 | # GSSAPI (Kerberos5) authentication for the PostgreSQL backend |
33 | .if !empty(PKG_OPTIONS:Mgssapi) | | 33 | .if !empty(PKG_OPTIONS:Mgssapi) |
34 | . include "../../mk/krb5.buildlink3.mk" | | 34 | . include "../../mk/krb5.buildlink3.mk" |
35 | CONFIGURE_ARGS+= --with-gssapi | | 35 | CONFIGURE_ARGS+= --with-gssapi |
36 | .else | | 36 | .else |
37 | CONFIGURE_ARGS+= --without-gssapi | | 37 | CONFIGURE_ARGS+= --without-gssapi |
38 | .endif | | 38 | .endif |
39 | | | 39 | |
40 | # LDAP authentication for the PostgreSQL backend | | 40 | # LDAP authentication for the PostgreSQL backend |
41 | .if !empty(PKG_OPTIONS:Mldap) | | 41 | .if !empty(PKG_OPTIONS:Mldap) |
42 | . include "../../databases/openldap-client/buildlink3.mk" | | 42 | . include "../../databases/openldap-client/buildlink3.mk" |
43 | CONFIGURE_ARGS+= --with-ldap | | 43 | CONFIGURE_ARGS+= --with-ldap |
44 | .endif | | 44 | .endif |
45 | | | 45 | |
46 | # LLVM based JIT support | | 46 | # LLVM based JIT support |
47 | .if !empty(PKG_OPTIONS:Mllvm) | | 47 | .if !empty(PKG_OPTIONS:Mllvm) |
48 | . include "../../lang/llvm/buildlink3.mk" | | 48 | . include "../../lang/llvm/buildlink3.mk" |
49 | CONFIGURE_ARGS+= --with-llvm | | 49 | CONFIGURE_ARGS+= --with-llvm |
50 | CONFIGURE_ENV+= CLANG=${CC} # XXX: make it be better | | 50 | CONFIGURE_ENV+= CLANG=${CC} # XXX: make it be better |
51 | PLIST.llvm= yes | | 51 | PLIST.llvm= yes |
52 | .endif | | 52 | .endif |
53 | | | 53 | |
54 | # NLS support | | 54 | # NLS support |
55 | .if !empty(PKG_OPTIONS:Mnls) | | 55 | .if !empty(PKG_OPTIONS:Mnls) |
56 | USE_PKGLOCALEDIR= yes | | 56 | USE_PKGLOCALEDIR= yes |
57 | USE_TOOLS+= msgfmt | | 57 | USE_TOOLS+= msgfmt |
58 | CONFIGURE_ARGS+= --enable-nls | | 58 | CONFIGURE_ARGS+= --enable-nls |
59 | PLIST.nls= yes | | 59 | PLIST.nls= yes |
60 | . include "../../devel/gettext-lib/buildlink3.mk" | | 60 | . include "../../devel/gettext-lib/buildlink3.mk" |
61 | LIBS.SunOS+= -lintl | | 61 | LIBS.SunOS+= -lintl |
62 | .else | | 62 | .else |
63 | CONFIGURE_ARGS+= --disable-nls | | 63 | CONFIGURE_ARGS+= --disable-nls |
64 | .endif | | 64 | .endif |
65 | | | 65 | |
66 | # PAM authentication for the PostgreSQL backend | | 66 | # PAM authentication for the PostgreSQL backend |
67 | .if !empty(PKG_OPTIONS:Mpam) | | 67 | .if !empty(PKG_OPTIONS:Mpam) |
68 | . include "../../mk/pam.buildlink3.mk" | | 68 | . include "../../mk/pam.buildlink3.mk" |
69 | CONFIGURE_ARGS+= --with-pam | | 69 | CONFIGURE_ARGS+= --with-pam |
70 | .endif | | 70 | .endif |