Fri Oct 25 08:01:11 2019 UTC ()
postgresql12: fix nls option support


(triaxx)
diff -r1.3 -r1.4 pkgsrc/databases/postgresql12/options.mk

cvs diff -r1.3 -r1.4 pkgsrc/databases/postgresql12/options.mk (switch to unified diff)

--- pkgsrc/databases/postgresql12/options.mk 2019/10/25 07:16:28 1.3
+++ pkgsrc/databases/postgresql12/options.mk 2019/10/25 08:01:10 1.4
@@ -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
3PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql12 3PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql12
4PKG_SUPPORTED_OPTIONS= bonjour dtrace icu llvm gssapi ldap pam 4PKG_SUPPORTED_OPTIONS= bonjour dtrace icu llvm gssapi ldap nls pam
5PKG_SUGGESTED_OPTIONS= gssapi nls 5PKG_SUGGESTED_OPTIONS= gssapi nls
6 6
7PLIST_VARS+= llvm nls 7PLIST_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)
13CONFIGURE_ARGS+= --with-bonjour 13CONFIGURE_ARGS+= --with-bonjour
14. if ${OPSYS} != "Darwin" 14. if ${OPSYS} != "Darwin"
15LIBS+= -ldns_sd 15LIBS+= -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)
22CONFIGURE_ARGS+= --enable-dtrace 22CONFIGURE_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)
27USE_TOOLS+= pkg-config 27USE_TOOLS+= pkg-config
28CONFIGURE_ARGS+= --with-icu 28CONFIGURE_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"
35CONFIGURE_ARGS+= --with-gssapi 35CONFIGURE_ARGS+= --with-gssapi
36.else 36.else
37CONFIGURE_ARGS+= --without-gssapi 37CONFIGURE_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"
43CONFIGURE_ARGS+= --with-ldap 43CONFIGURE_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"
49CONFIGURE_ARGS+= --with-llvm 49CONFIGURE_ARGS+= --with-llvm
50CONFIGURE_ENV+= CLANG=${CC} # XXX: make it be better 50CONFIGURE_ENV+= CLANG=${CC} # XXX: make it be better
51PLIST.llvm= yes 51PLIST.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)
56USE_PKGLOCALEDIR= yes 56USE_PKGLOCALEDIR= yes
57USE_TOOLS+= msgfmt 57USE_TOOLS+= msgfmt
58CONFIGURE_ARGS+= --enable-nls 58CONFIGURE_ARGS+= --enable-nls
59PLIST.nls= yes 59PLIST.nls= yes
60. include "../../devel/gettext-lib/buildlink3.mk" 60. include "../../devel/gettext-lib/buildlink3.mk"
61LIBS.SunOS+= -lintl 61LIBS.SunOS+= -lintl
62.else 62.else
63CONFIGURE_ARGS+= --disable-nls 63CONFIGURE_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"
69CONFIGURE_ARGS+= --with-pam 69CONFIGURE_ARGS+= --with-pam
70.endif 70.endif