openbsd-ports/databases/py-bsddb3/Makefile

36 lines
662 B
Makefile

# $OpenBSD: Makefile,v 1.2 2017/01/03 19:17:24 landry Exp $
COMMENT= Python bindings for Oracle Berkeley DB
MODPY_EGG_VERSION= 6.0.1
DISTNAME= bsddb3-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
REVISION= 0
CATEGORIES= databases devel
HOMEPAGE= https://www.jcea.es/programacion/pybsddb.htm
# BSD
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += db pthread ${MODPY_WANTLIB}
MODULES= lang/python
MODPY_PI= Yes
MODPY_SETUP_ARGS= --berkeley-db-incdir=${LOCALBASE}/include/db4
MODPY_SETUPTOOLS= Yes
SUBST_VARS= MODPY_LIB_SUFFIX
LIB_DEPENDS= databases/db/v4
FLAVORS= python3
FLAVOR ?=
do-test:
cd ${WRKSRC} && ${MODPY_BIN} test.py
.include <bsd.port.mk>