Makefile 662 B

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