summaryrefslogtreecommitdiffstats
path: root/databases/postgresql90-plpython/Makefile
blob: 678cc27dc5a6ecc95a51e8e3636e4c4a9e3dc3aa (plain)
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
32
33
# $FreeBSD$

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

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

USE_PGSQL=	server

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

WANT_PGSQL_VER?=	90

USE_PYTHON?=	yes
PYTHON_MAJOR_VER=	${PYTHON_VER:R}
CONFIGURE_ARGS=	--with-python
PLIST_SUB=	PYTHON_MAJOR_VER=${PYTHON_MAJOR_VER}
COMPONENT=	-plpython

.if ${PYTHON_MAJOR_VER} == 3
PLIST_SUB+=	PYTHON3=""
.else
PLIST_SUB+=	PYTHON3="@comment "
.endif

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

NO_STAGE=	yes
.include "${MASTERDIR}/Makefile"
OpenPOWER on IntegriCloud