Makefile 757 B

123456789101112131415161718192021222324252627282930313233
  1. # $OpenBSD: Makefile,v 1.5 2015/12/20 09:34:16 jasper Exp $
  2. COMMENT= Python as a hardware description and verification language
  3. MODPY_EGG_VERSION=0.9.0
  4. DISTNAME= myhdl-${MODPY_EGG_VERSION}
  5. CATEGORIES= lang
  6. HOMEPAGE= http://www.myhdl.org/
  7. # LGPLv2.1
  8. PERMIT_PACKAGE_CDROM= Yes
  9. MODULES = lang/python
  10. MODPY_PI = Yes
  11. MODPY_SETUPTOOLS = Yes
  12. TEST_DEPENDS = devel/py-test
  13. pre-configure:
  14. ${SUBST_CMD} ${WRKSRC}/myhdl/test/core/test_Cosimulation.py
  15. post-install:
  16. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/myhdl/
  17. cd ${WRKSRC}/example/ && umask 022 && pax -rw . \
  18. ${PREFIX}/share/examples/myhdl/
  19. do-test: fake
  20. cd ${WRKSRC}/myhdl/test/core && \
  21. env PYTHONPATH="${WRKINST}${MODPY_LIBDIR}/site-packages/" \
  22. ${MAKE_PROGRAM}
  23. .include <bsd.port.mk>