blob: b3f7d1fa253eefc4b4e67ce50076478217c5ef40 (
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
40
41
42
43
44
45
46
47
|
# $NetBSD: Makefile,v 1.20 2002/09/21 23:46:47 jlam Exp $
PKGNAME= ${PYPKGPREFIX}-postgresql-3.2
COMMENT= Python interface to PostgreSQL
MAINTAINER= darcy@netbsd.org
USE_BUILDLINK_ONLY= YES
.include "../../databases/postgresql/Makefile.common"
MAKEFLAGS+= PYTHON_VERSION="${PYVERSSUFFIX}"
PLIST_SUBST+= PYTHON_LIBDIR=${PYLIB}
PLIST_SUBST+= PYPKGPREFIX=${PYPKGPREFIX}
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_DIR}
CONFIGURE_ARGS+= --with-python
CONFIGURE_ARGS+= --with-python-compile
CONFIGURE_ENV+= PYTHON="${PYTHONBIN}"
MAKE_ENV+= INSTALLED_LIBPQ=1
DIRS_TO_BUILD= src/interfaces/python
DOCDIR= ${PREFIX}/share/doc/${PYPKGPREFIX}-postgresql
do-build:
.for DIR in ${DIRS_TO_BUILD}
cd ${WRKSRC}/${DIR} && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} ${ALL_TARGET}
.endfor
do-install:
.for DIR in ${DIRS_TO_BUILD}
cd ${WRKSRC}/${DIR} && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} ${INSTALL_TARGET}
.endfor
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 "../../databases/postgresql-lib/buildlink.mk"
.include "../../lang/python/extension.mk"
.include "../../time/py-mxDateTime/buildlink.mk"
.include "../../mk/bsd.pkg.mk"
|