diff options
| author | triaxx <triaxx@pkgsrc.org> | 2019-10-25 12:01:19 +0000 |
|---|---|---|
| committer | triaxx <triaxx@pkgsrc.org> | 2019-10-25 12:01:19 +0000 |
| commit | 4ecb780ae72156d61678dcf92315281baf05baf9 (patch) | |
| tree | a827137347ddda69011feec08e8d6944a78eb0ce /databases/postgresql10 | |
| parent | fbc8c2303fff2e288331e8022883603b3491d8e7 (diff) | |
| download | pkgsrc-4ecb780ae72156d61678dcf92315281baf05baf9.tar.gz | |
postgresql10: make nls support optional
Diffstat (limited to 'databases/postgresql10')
| -rw-r--r-- | databases/postgresql10/Makefile.common | 11 | ||||
| -rw-r--r-- | databases/postgresql10/options.mk | 20 |
2 files changed, 19 insertions, 12 deletions
diff --git a/databases/postgresql10/Makefile.common b/databases/postgresql10/Makefile.common index 6daba4f5246..ec211dfdd22 100644 --- a/databases/postgresql10/Makefile.common +++ b/databases/postgresql10/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.15 2019/10/07 19:28:28 adam Exp $ +# $NetBSD: Makefile.common,v 1.16 2019/10/25 12:01:19 triaxx Exp $ # # This Makefile fragment is included by all PostgreSQL packages built from # the main sources of the PostgreSQL distribution except jdbc-postgresql. @@ -37,8 +37,7 @@ DISTINFO_FILE?= ${.CURDIR}/../../databases/postgresql10/distinfo COMMON_FILESDIR?= ${.CURDIR}/../../databases/postgresql10/files PATCHDIR?= ${.CURDIR}/../../databases/postgresql10/patches -USE_PKGLOCALEDIR= yes -USE_TOOLS+= bison gmake lex msgfmt +USE_TOOLS+= bison gmake lex PKG_SYSCONFSUBDIR= postgresql .include "../../mk/bsd.prefs.mk" @@ -62,16 +61,12 @@ 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 CONFIGURE_ARGS+= --without-python CONFIGURE_ARGS+= --without-tcl -# avoid pointing to a wrapper -CONFIGURE_ENV+= MSGFMT=${TOOLS_PATH.msgfmt} - # sys/ucred.h shouldn't be included on Solaris, causes conflicts between # procfs and largefile. CONFIGURE_ENV.SunOS+= ac_cv_header_sys_ucred_h=no @@ -107,8 +102,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/postgresql10/options.mk b/databases/postgresql10/options.mk index 2096f696280..49f3239baf7 100644 --- a/databases/postgresql10/options.mk +++ b/databases/postgresql10/options.mk @@ -1,8 +1,10 @@ -# $NetBSD: options.mk,v 1.2 2017/12/15 16:52:23 dholland Exp $ +# $NetBSD: options.mk,v 1.3 2019/10/25 12:01:19 triaxx Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql10 -PKG_SUPPORTED_OPTIONS= bonjour dtrace icu gssapi ldap pam -PKG_SUGGESTED_OPTIONS= gssapi +PKG_SUPPORTED_OPTIONS= bonjour dtrace icu gssapi ldap nls pam +PKG_SUGGESTED_OPTIONS= gssapi nls + +PLIST_VARS+= nls .include "../../mk/bsd.options.mk" @@ -41,6 +43,18 @@ CONFIGURE_ARGS+= --without-gssapi CONFIGURE_ARGS+= --with-ldap .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" +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" |
