Ruslan Makhmatkhanov 6059d46a04 Split out postgresql-python port on to bunch of PostgreSQL version-dependent ones,
so the packages can be built with different versions of PostgreSQL. The patch is
from crees@ with couple additions from me. It has some problems that prevents the
build with python3, but it was decided that it's better to add this as starting
point. Maintainership of this port also was passed to pgsql@ team.

PR:		166999
PR:     174152
Reported by:	many
Approved by:	pgsql (crees)
2013-01-20 10:06:54 +00:00

32 lines
642 B
Makefile

# $FreeBSD$
PORTNAME= postgresql
CATEGORIES= databases python
PKGNAMESUFFIX= ${WANT_PGSQL_VER}-plpython
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}
.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
.include "${MASTERDIR}/Makefile"