Lines 7-13
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= bsddb |
8 |
PORTNAME= bsddb |
9 |
PORTVERSION= ${PYTHON_PORTVERSION} |
9 |
PORTVERSION= ${PYTHON_PORTVERSION} |
10 |
PORTREVISION= 1 |
10 |
PORTREVISION= 2 |
11 |
CATEGORIES= databases python |
11 |
CATEGORIES= databases python |
12 |
MASTER_SITES= ${PYTHON_MASTER_SITES} |
12 |
MASTER_SITES= ${PYTHON_MASTER_SITES} |
13 |
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} |
13 |
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} |
Lines 18-32
Link Here
|
18 |
COMMENT= Python bindings to the Berkeley DB library |
18 |
COMMENT= Python bindings to the Berkeley DB library |
19 |
|
19 |
|
20 |
.if defined(WITH_DB3) |
20 |
.if defined(WITH_DB3) |
21 |
LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3 |
21 |
WITH_BDB_VER= 3 |
22 |
DBVERSION= db3 |
|
|
23 |
PKGNAMESUFFIX= -db3 |
24 |
.elif defined(WITH_DB4) |
22 |
.elif defined(WITH_DB4) |
25 |
LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4 |
23 |
WITH_BDB_VER?= 41 |
26 |
DBVERSION= db4 |
24 |
.endif |
|
|
25 |
|
26 |
.if defined(WITH_BDB_VER) |
27 |
.if ${WITH_BDB_VER} == 3 |
28 |
LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3 |
29 |
DBVERSION= db3 |
30 |
DBHEADER= db3 |
31 |
PKGNAMESUFFIX=-db3 |
32 |
.elif ${WITH_BDB_VER} == 4 |
33 |
LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4 |
34 |
DBVERSION= db4 |
35 |
DBHEADER= db4 |
36 |
.elif ${WITH_BDB_VER} == 41 |
37 |
LIB_DEPENDS= db41.1:${PORTSDIR}/databases/db41 |
38 |
DBVERSION= db41 |
39 |
DBHEADER= db41 |
40 |
.elif ${WITH_BDB_VER} == 42 |
41 |
LIB_DEPENDS= db-4.2.2:${PORTSDIR}/databases/db42 |
42 |
DBVERSION= db-4.2 |
43 |
DBHEADER= db42 |
27 |
.else |
44 |
.else |
28 |
LIB_DEPENDS= db41.1:${PORTSDIR}/databases/db41 |
45 |
BROKEN= "WITH_BDB_VER must be 3, 4, 41 or 42" |
29 |
DBVERSION= db41 |
46 |
.endif |
30 |
.endif |
47 |
.endif |
31 |
|
48 |
|
32 |
DIST_SUBDIR= python |
49 |
DIST_SUBDIR= python |
Lines 42-48
Link Here
|
42 |
|
59 |
|
43 |
post-patch: |
60 |
post-patch: |
44 |
${REINPLACE_CMD} -e \ |
61 |
${REINPLACE_CMD} -e \ |
45 |
's,^\(#include.*\)\(db\.h.*\)$$,\1${DBVERSION}/\2,' \ |
62 |
's,^\(#include.*\)\(db\.h.*\)$$,\1${DBHEADER}/\2,' \ |
46 |
${WRKSRC}/_bsddb.c |
63 |
${WRKSRC}/_bsddb.c |
47 |
|
64 |
|
48 |
.include <bsd.port.mk> |
65 |
.include <bsd.port.mk> |