Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # $OpenBSD: Makefile,v 1.28 2017/04/10 11:46:23 sthen Exp $
  2. BROKEN-sparc64 = ICE in scipy/optimize/minpack/qrsolv.f:189
  3. BROKEN-hppa = ICE in scipy/special/specfun/specfun.f:5151
  4. BROKEN-alpha = ICE in scipy/optimize/minpack/lmstr.f:462
  5. COMMENT= maths, science and engineering modules for Python
  6. MODPY_EGG_VERSION= 0.16.1
  7. DISTNAME= scipy-${MODPY_EGG_VERSION}
  8. PKGNAME= py-${DISTNAME}
  9. CATEGORIES= math devel
  10. REVISION= 0
  11. MAINTAINER= Daniel Dickman <daniel@openbsd.org>
  12. # BSD
  13. PERMIT_PACKAGE_CDROM= Yes
  14. WANTLIB += ${MODFORTRAN_WANTLIB} ${MODPY_WANTLIB}
  15. WANTLIB += blas lapack m pthread ${LIBCXX} util
  16. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scipy/}
  17. HOMEPAGE= http://numeric.scipy.org/
  18. MODULES= lang/python fortran
  19. FLAVORS= python3
  20. FLAVOR?=
  21. MODFORTRAN_COMPILER = g77
  22. MODPY_SETUPTOOLS= Yes
  23. MODPY_SETUP= setupegg.py
  24. BUILD_DEPENDS= ${RUN_DEPENDS} \
  25. ${MODFORTRAN_BUILD_DEPENDS}
  26. LIB_DEPENDS= ${MODFORTRAN_LIB_DEPENDS}
  27. RUN_DEPENDS= math/py-numpy${MODPY_FLAVOR}>=1.6.0 \
  28. devel/swig
  29. TEST_DEPENDS= devel/py-nose${MODPY_FLAVOR}
  30. MAKE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/amd -I${LOCALBASE}/include"
  31. MAKE_ENV+= LDFLAGS="-shared -L${LOCALBASE}/lib -pthread -lutil"
  32. # scipy.weave is only packaged under python2
  33. .if ${FLAVOR:Mpython3}
  34. MODPY_COMMENT3 = "@comment "
  35. .else
  36. MODPY_COMMENT3 =
  37. .endif
  38. SUBST_VARS += MODPY_COMMENT3
  39. # fix perms
  40. post-extract:
  41. find ${WRKSRC} -type d | xargs chmod 755
  42. find ${WRKSRC} -type f | xargs chmod 644
  43. do-test: fake
  44. ${MAKE_ENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} -c \
  45. 'import scipy ; scipy.test("full")'
  46. .include <bsd.port.mk>