diff options
Diffstat (limited to 'databases/py-postgresql73/Makefile')
-rw-r--r-- | databases/py-postgresql73/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/databases/py-postgresql73/Makefile b/databases/py-postgresql73/Makefile new file mode 100644 index 00000000000..dd54d1c343d --- /dev/null +++ b/databases/py-postgresql73/Makefile @@ -0,0 +1,38 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/07/24 22:26:44 recht Exp $ + +PKGNAME= ${PYPKGPREFIX}-postgresql73-3.3 +CATEGORIES= databases python + +MAINTAINER= darcy@NetBSD.org +COMMENT= Python interface to PostgreSQL + +USE_BUILDLINK3= yes + +.include "../postgresql73/Makefile.common" + +CONFIGURE_ARGS+= --with-python +CONFIGURE_ARGS+= --with-python-compile +CONFIGURE_ENV+= PYTHON="${PYTHONBIN}" + +MAKEFILE= GNUmakefile +MAKE_ENV+= INSTALLED_LIBPQ=1 +MAKEFLAGS+= PYTHON_VERSION=${PYVERSSUFFIX} + +PY_PATCHPLIST= yes +PLIST_SUBST+= PYPKGPREFIX=${PYPKGPREFIX} + +BUILD_DIRS= ${WRKSRC}/src/interfaces/python +DOCDIR= ${PREFIX}/share/doc/${PYPKGPREFIX}-postgresql + +post-install: + ${INSTALL_DATA_DIR} ${DOCDIR}/tutorial + ${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR} + for file in ${WRKSRC}/src/interfaces/python/tutorial/*.py; do \ + ${INSTALL_DATA} $${file} ${DOCDIR}/tutorial; \ + done + +.include "../postgresql73-lib/buildlink3.mk" +.include "../../time/py-mxDateTime/buildlink3.mk" +.include "../../lang/python/extension.mk" + +.include "../../mk/bsd.pkg.mk" |