1# Created by: Palle Girgensohn <girgen@partitur.se>
2
3PORTNAME=	postgresql
4# Keep the ?=, it is used by the other pltcl ports.
5PORTREVISION?=	0
6CATEGORIES=	databases tcl
7PKGNAMESUFFIX?=	${WANT_PGSQL_VER:S/.//}${COMPONENT}
8
9MAINTAINER=	ports@MidnightBSD.org
10COMMENT=	Module for using Tcl to write SQL functions
11
12MASTERDIR=	${.CURDIR}/../../databases/postgresql14-server
13
14WANT_PGSQL_VER?=14
15
16USES+=		tcl pgsql:14
17WANT_PGSQL=	server
18_WANT_PGSQL_VER=14
19
20CONFIGURE_ARGS=	--with-tcl --without-tk \
21		--with-tclconfig="${TCL_LIBDIR}" \
22		--with-includes="${TCL_INCLUDEDIR}"
23
24CONFIGURE_ENV+=	TCLSH="${TCLSH}"
25MAKE_ENV+=	TCL_INCDIR="${TCL_INCLUDEDIR}"
26
27BUILD_DIRS=	src/backend src/pl/tcl
28INSTALL_DIRS=	src/pl/tcl
29SLAVE_ONLY=	yes
30COMPONENT=	-pltcl
31
32# this port fails to build in parallel
33MAKE_JOBS_UNSAFE=	yes
34
35.include "${MASTERDIR}/Makefile"
36