summaryrefslogtreecommitdiff
path: root/databases/postgresql11
diff options
context:
space:
mode:
authortriaxx <triaxx@pkgsrc.org>2019-10-25 04:39:18 +0000
committertriaxx <triaxx@pkgsrc.org>2019-10-25 04:39:18 +0000
commit6caf50ea5a47dadec9d1c77bbff500dff1c397fc (patch)
tree4e396404774d6ec499933470e1c73dc67da8524c /databases/postgresql11
parent270773d13c62989e6af65c64e73448c089419361 (diff)
downloadpkgsrc-6caf50ea5a47dadec9d1c77bbff500dff1c397fc.tar.gz
postgresql11: make nls support optional
Diffstat (limited to 'databases/postgresql11')
-rw-r--r--databases/postgresql11/Makefile.common7
-rw-r--r--databases/postgresql11/options.mk20
2 files changed, 19 insertions, 8 deletions
diff --git a/databases/postgresql11/Makefile.common b/databases/postgresql11/Makefile.common
index ab8324c49a5..9a38c92ee17 100644
--- a/databases/postgresql11/Makefile.common
+++ b/databases/postgresql11/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.7 2019/10/07 19:28:28 adam Exp $
+# $NetBSD: Makefile.common,v 1.8 2019/10/25 04:39:18 triaxx Exp $
#
# This Makefile fragment is included by all PostgreSQL packages built from
# the main sources of the PostgreSQL distribution except jdbc-postgresql.
@@ -38,7 +38,7 @@ COMMON_FILESDIR?= ${.CURDIR}/../../databases/postgresql11/files
PATCHDIR?= ${.CURDIR}/../../databases/postgresql11/patches
USE_PKGLOCALEDIR= yes
-USE_TOOLS+= bison gmake lex msgfmt
+USE_TOOLS+= bison gmake lex
PKG_SYSCONFSUBDIR= postgresql
.include "../../mk/bsd.prefs.mk"
@@ -62,7 +62,6 @@ CONFIGURE_ARGS+= --docdir=${PG_DOC_DIR}
CONFIGURE_ARGS+= --localedir=${PG_LOCALE_DIR}
CONFIGURE_ARGS+= --with-template=${PG_TEMPLATE.${OPSYS}}
-CONFIGURE_ARGS+= --enable-nls
CONFIGURE_ARGS+= --with-libxml
CONFIGURE_ARGS+= --with-readline
CONFIGURE_ARGS+= --without-perl
@@ -107,8 +106,6 @@ USE_LIBLTDL?= yes
.endif
USE_LIBLTDL?= no
-.include "../../devel/gettext-lib/buildlink3.mk"
-LIBS.SunOS+= -lintl
.include "../../devel/zlib/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
diff --git a/databases/postgresql11/options.mk b/databases/postgresql11/options.mk
index 6f59a56f129..e27ce251b41 100644
--- a/databases/postgresql11/options.mk
+++ b/databases/postgresql11/options.mk
@@ -1,9 +1,11 @@
-# $NetBSD: options.mk,v 1.2 2018/11/09 18:12:24 adam Exp $
+# $NetBSD: options.mk,v 1.3 2019/10/25 04:39:18 triaxx Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql11
-PKG_SUPPORTED_OPTIONS= bonjour dtrace icu llvm gssapi ldap pam
+PKG_SUPPORTED_OPTIONS= bonjour dtrace icu llvm gssapi ldap nls pam
PKG_SUGGESTED_OPTIONS= gssapi
+PLIST_VARS+= llvm nls
+
.include "../../mk/bsd.options.mk"
# Bonjour support
@@ -42,7 +44,6 @@ CONFIGURE_ARGS+= --with-ldap
.endif
# LLVM based JIT support
-PLIST_VARS+= llvm
.if !empty(PKG_OPTIONS:Mllvm)
. include "../../lang/llvm/buildlink3.mk"
CONFIGURE_ARGS+= --with-llvm
@@ -50,6 +51,19 @@ CONFIGURE_ENV+= CLANG=${CC} # XXX: make it be better
PLIST.llvm= yes
.endif
+# NLS support
+.if !empty(PKG_OPTIONS:Mnls)
+USE_PKGLOCALEDIR= yes
+USE_TOOLS+= msgfmt
+CONFIGURE_ARGS+= --enable-nls
+PLIST.nls= yes
+. include "../../devel/gettext-lib/buildlink3.mk"
+LIBS.SunOS+= -lintl
+.else
+CONFIGURE_ARGS+= --disable-nls
+.endif
+
+
# PAM authentication for the PostgreSQL backend
.if !empty(PKG_OPTIONS:Mpam)
. include "../../mk/pam.buildlink3.mk"