aboutsummaryrefslogtreecommitdiff
path: root/databases/postgresql95-plpython/Makefile
blob: 115b776bde4cdbb0cbd05c7bd0fe4ea2dcf21789 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $FreeBSD$

PORTNAME=	postgresql
CATEGORIES=	databases python
PKGNAMESUFFIX?=	${DISTVERSION:R:S/.//}${COMPONENT}

MAINTAINER=	pgsql@FreeBSD.org
COMMENT=	Module for using Python to write SQL functions

USES+=		pgsql:${WANT_PGSQL_VER} ${WANT_PYTHON_USE}
WANT_PGSQL=	server

MASTERDIR=	${.CURDIR}/../postgresql${WANT_PGSQL_VER:S/.//}-server

WANT_PGSQL_VER?=	9.5
WANT_PYTHON_USE?=	python

CONFIGURE_ARGS=	--with-python
COMPONENT=	-plpython

.if defined(PYTHON_VER) && ${PYTHON_VER:R} == 3
PLIST_SUB+=	PYTHON2="@comment " PYTHON3=""
.else
PLIST_SUB+=	PYTHON2="" PYTHON3="@comment "
.endif

BUILD_DIRS=	src/backend src/pl/plpython
INSTALL_DIRS=	src/pl/plpython
SLAVE_ONLY=	yes

.include "${MASTERDIR}/Makefile"