diff options
author | tnn <tnn@pkgsrc.org> | 2022-07-18 22:13:20 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2022-07-18 22:13:20 +0000 |
commit | 55631d0088cbb6523ba2cfbe4db2dcbe1c54e6a5 (patch) | |
tree | 3e4090128d75fb1b80c5df593511b7c3b47d1b2f /databases/postgresql14 | |
parent | 9e32909bad1cfb71bdce3af495e9ec4eb4831723 (diff) | |
download | pkgsrc-55631d0088cbb6523ba2cfbe4db2dcbe1c54e6a5.tar.gz |
postgresql*-client: fix installed PGXS Makefiles when using pkgsrc gettext
If we are using the "nls" PKG_OPTION together with pkgsrc gettext, then
we must ensure CPPFLAGS contains -I${PREFIX}/include/gettext.
The installed postgresql/server/c.h expects to be able to include
<libintl.h> using the CPPFLAGS that get installed in Makefile.global.
Without this it is not possible to develop PGXS extensions
outside of pkgsrc.
Diffstat (limited to 'databases/postgresql14')
-rw-r--r-- | databases/postgresql14/options.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/databases/postgresql14/options.mk b/databases/postgresql14/options.mk index 4cf8eceac6a..155f61a9f48 100644 --- a/databases/postgresql14/options.mk +++ b/databases/postgresql14/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.2 2022/05/12 13:03:57 abs Exp $ +# $NetBSD: options.mk,v 1.3 2022/07/18 22:13:21 tnn Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql14 PKG_SUPPORTED_OPTIONS= bonjour dtrace icu llvm gssapi ldap nls pam lz4 @@ -67,6 +67,9 @@ PLIST.nls= yes BROKEN_GETTEXT_DETECTION= yes . include "../../devel/gettext-lib/buildlink3.mk" LIBS.SunOS+= -lintl +. if !empty(USE_BUILTIN.gettext:M[nN][oO]) +CPPFLAGS+= -I${PREFIX}/include/gettext +. endif .else CONFIGURE_ARGS+= --disable-nls .endif |