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