aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.database.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/Mk/bsd.database.mk b/Mk/bsd.database.mk
index cea0a763b9a..a3a2cd9eb2c 100644
--- a/Mk/bsd.database.mk
+++ b/Mk/bsd.database.mk
@@ -35,8 +35,8 @@ Database_Include_MAINTAINER= ports@FreeBSD.org
# MYSQL_VER
# - Detected MySQL version.
##
-# USE_PGSQL - Add PostgreSQL client dependency. Server can be depended on
-# using USE_PGSQL=server.
+# USE_PGSQL - Add PostgreSQL client dependency. Components can be depended
+# on using USE_PGSQL= server pltcl
# If no version is given (by the maintainer via the port or
# by the user via defined variable), try to find the
# currently installed version. Fall back to default if
@@ -251,6 +251,9 @@ LIB_DEPENDS+= pq.${PGSQL${PGSQL_VER}_LIBVER}:${PORTSDIR}/databases/postgresql${P
BUILD_DEPENDS+= postgres:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
RUN_DEPENDS+= postgres:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
. endif
+. if ${USE_PGSQL:Mpltcl}
+LIB_DEPENDS+= pgtcl:${PORTSDIR}/databases/postgresql${PGSQL_VER}-pltcl
+. endif
.else
IGNORE?= cannot install: unknown PostgreSQL version: ${PGSQL_VER}
.endif # Check for correct version