Makefile 932 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # $OpenBSD: Makefile,v 1.4 2017/05/16 14:57:28 shadchin Exp $
  2. BROKEN-powerpc = bottleneck/src/move.c:568: internal compiler error: in extract_insn, at recog.c:2077
  3. COMMENT = fast NumPy array functions written in C
  4. MODPY_EGG_VERSION = 1.2.1
  5. DISTNAME = Bottleneck-${MODPY_EGG_VERSION}
  6. PKGNAME = py-${DISTNAME:L}
  7. CATEGORIES = math
  8. MAINTAINER = Alexandr Shadchin <shadchin@openbsd.org>
  9. # BSD
  10. PERMIT_PACKAGE_CDROM = Yes
  11. WANTLIB += ${MODPY_WANTLIB} pthread
  12. MODULES = lang/python
  13. RUN_DEPENDS = math/py-numpy${MODPY_FLAVOR}
  14. BUILD_DEPENDS = ${RUN_DEPENDS}
  15. TEST_DEPENDS = ${RUN_DEPENDS} \
  16. devel/py-nose${MODPY_FLAVOR}
  17. MODPY_PI = Yes
  18. MODPY_SETUPTOOLS = Yes
  19. FLAVORS = python3
  20. FLAVOR ?=
  21. # one test fail:
  22. # numpy 1.9.2 - median() don't check if array contains any nan's
  23. pre-test:
  24. @${MODPY_CMD} build_ext --inplace
  25. do-test:
  26. cd ${WRKSRC} && ${MODPY_BIN} -c "import bottleneck; bottleneck.test()"
  27. .include <bsd.port.mk>