Makefile 1006 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $OpenBSD: Makefile,v 1.27 2016/03/20 16:12:22 naddy Exp $
  2. COMMENT= Python tools for computational molecular biology
  3. MODPY_EGG_VERSION= 1.66
  4. DISTNAME= biopython-${MODPY_EGG_VERSION}
  5. CATEGORIES= biology
  6. REVISION= 1
  7. HOMEPAGE= http://www.biopython.org/
  8. MAINTAINER= Will Maier <willmaier@ml1.net>
  9. # BSD-like
  10. PERMIT_PACKAGE_CDROM= Yes
  11. MASTER_SITES= ${HOMEPAGE}DIST/
  12. MODULES= lang/python
  13. WANTLIB+= ${MODPY_WANTLIB} pthread
  14. BUILD_DEPENDS= devel/swig \
  15. math/py-numpy
  16. RUN_DEPENDS= math/py-numpy \
  17. print/py-reportlab
  18. TEST_DEPENDS= ${RUN_DEPENDS}
  19. CFLAGS+= -fPIC
  20. post-install:
  21. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-biopython/
  22. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-biopython/
  23. ${INSTALL_DATA} ${WRKSRC}/Doc/*.pdf ${PREFIX}/share/doc/py-biopython/
  24. cd ${WRKSRC}/Doc/examples; tar cf - * | \
  25. tar xf - -C ${PREFIX}/share/examples/py-biopython
  26. do-test: fake
  27. @cd ${WRKSRC}/Tests && \
  28. PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
  29. ${MODPY_BIN} ./run_tests.py
  30. .include <bsd.port.mk>