freebsd-ports/databases/postgresql95-plpython/Makefile
Sunpoet Po-Chuan Hsieh e730d999d3 Add more PLIST_SUB to Mk/Uses/python.mk
- Add PYTHON_PYOEXTENSION and PYTHON_SUFFIX
- Add PYTHON2 and PYTHON3
- Respect PYTHON_VERSION
- Rename PYOEXTENSION to PYTHON_PYOEXTENSION

This change would help:
- Build databases/postgresql*-plpython with Python 3
  (It has PLIST issue since bsd.python.mk to Uses/python.mk transition)
- Simplify Makefile

PR:		205807
Differential Revision:	https://reviews.FreeBSD.org/D4758
Exp-run by:	antoine
2017-01-07 21:42:28 +00:00

25 lines
559 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.5
WANT_PYTHON_USE?= python
CONFIGURE_ARGS= --with-python
COMPONENT= -plpython
BUILD_DIRS= src/backend src/pl/plpython
INSTALL_DIRS= src/pl/plpython
SLAVE_ONLY= yes
.include "${MASTERDIR}/Makefile"