blob: ca28730e112bf4aa4a73e142d9811032afba6318 (
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
34
35
36
37
38
39
|
# $NetBSD: Makefile,v 1.33 2004/07/22 09:16:01 recht Exp $
PKGNAME= ${PYPKGPREFIX}-postgresql-3.3
PKGREVISION= 3
CATEGORIES= databases python
MAINTAINER= darcy@NetBSD.org
COMMENT= Python interface to PostgreSQL
USE_BUILDLINK3= yes
.include "../postgresql/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 "../postgresql-lib/buildlink3.mk"
.include "../../time/py-mxDateTime/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
|