opnsense-ports/databases/postgresql90-plpython/Makefile
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

31 lines
707 B
Makefile

# $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.0
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"