aboutsummaryrefslogtreecommitdiff
path: root/databases/py-bsddb3
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2004-10-15 15:05:24 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2004-10-15 15:05:24 +0000
commit43e43c11386c566c3d9cb9e5a2a57497a3ea0278 (patch)
treee9af94d8831211f0e6553fcc91099ce4af2eaf3f /databases/py-bsddb3
parent120fe8f24607f1c2ce11ed52f1c0b2052e933719 (diff)
downloadports-43e43c11386c566c3d9cb9e5a2a57497a3ea0278.tar.gz
ports-43e43c11386c566c3d9cb9e5a2a57497a3ea0278.zip
Fix build
PR: 72133 Submitted by: ume Reviewed by: thierry
Notes
Notes: svn path=/head/; revision=119505
Diffstat (limited to 'databases/py-bsddb3')
-rw-r--r--databases/py-bsddb3/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/databases/py-bsddb3/Makefile b/databases/py-bsddb3/Makefile
index a81cff7eb34b..91e6f797423d 100644
--- a/databases/py-bsddb3/Makefile
+++ b/databases/py-bsddb3/Makefile
@@ -15,8 +15,6 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= perky@FreeBSD.org
COMMENT= Python extension module for BerkeleyDB 3 and 4
-BROKEN= Does not build
-
.if defined(WITH_DB3)
WITH_BDB_VER?= 3
.elif defined(WITH_DB4)
@@ -43,18 +41,19 @@ LIB_DEPENDS= db-4.2.2:${PORTSDIR}/databases/db42
DBVERSION= db-4.2
DBHEADER= db42
.else
-BROKEN= "WITH_BDB_VER must be 3, 4, 41 or 42"
+IGNORE= "WITH_BDB_VER must be 3, 4, 41 or 42"
.endif
.endif
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_REINPLACE= yes
+PYDISTUTILS_CONFIGUREARGS=--libs="-l${DBVERSION}" --berkeley-db=${LOCALBASE}
PYDISTUTILS_BUILDARGS= --libs="-l${DBVERSION}" --berkeley-db=${LOCALBASE}
PYDISTUTILS_INSTALLARGS=-c -O1 --prefix=${PREFIX} --berkeley-db=${LOCALBASE}
post-patch:
${REINPLACE_CMD} 's,%%DBVERSION%%,${DBVERSION},g' ${WRKSRC}/setup.py
- ${REINPLACE_CMD} 's,<db\.h>,<${DBVERSION}/db.h>,' ${WRKSRC}/extsrc/_bsddb.c
+ ${REINPLACE_CMD} 's,<db\.h>,<${DBHEADER}/db.h>,' ${WRKSRC}/extsrc/_bsddb.c
.include <bsd.port.mk>