pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/postgresql14-client postgresql14-client: opt...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fb90adb5354b
branches:  trunk
changeset: 386961:fb90adb5354b
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Oct 19 08:09:40 2022 +0000

description:
postgresql14-client: optionally buildlink against lz4

diffstat:

 databases/postgresql14-client/buildlink3.mk |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r ee03f0dfb5a7 -r fb90adb5354b databases/postgresql14-client/buildlink3.mk
--- a/databases/postgresql14-client/buildlink3.mk       Wed Oct 19 07:54:52 2022 +0000
+++ b/databases/postgresql14-client/buildlink3.mk       Wed Oct 19 08:09:40 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.2 2022/06/28 11:31:36 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2022/10/19 08:09:40 adam Exp $
 
 BUILDLINK_TREE+=       postgresql14-client
 
@@ -10,9 +10,16 @@
 BUILDLINK_PKGSRCDIR.postgresql14-client?=      ../../databases/postgresql14-client
 
 # This variable contains the libraries need to link most clients.
-BUILDLINK_LDADD.postgresql14-client=   -lpq ${BUILDLINK_LDADD.gettext}
+BUILDLINK_LDADD.postgresql14-client+=  -lpq ${BUILDLINK_LDADD.gettext}
 BUILDLINK_FILES.postgresql14-client+=  bin/pg_config
 
+pkgbase := postgresql14-client
+.include "../../mk/pkg-build-options.mk"
+
+.if ${PKG_BUILD_OPTIONS.postgresql14-client:Mlz4}
+.include "../../archivers/lz4/buildlink3.mk"
+.endif
+
 .include "../../mk/bsd.fast.prefs.mk"
 .if ${OPSYS} == "SunOS"
 .include "../../devel/ossp-uuid/buildlink3.mk"



Home | Main Index | Thread Index | Old Index