pkgsrc/math/py-scipy/Makefile
rillig c18ce611ff mk: make BROKEN a list of lines, like PKG_FAIL_REASON
Packages defined the variable BROKEN inconsistently. Some added quotes,
like they are required in PKG_FAIL_REASON, some omitted them.

Now all packages behave the same, and pkglint will flag future mistakes.
2019-11-04 17:47:29 +00:00

69 lines
2.1 KiB
Makefile

# $NetBSD: Makefile,v 1.40 2019/11/04 17:47:30 rillig Exp $
DISTNAME= scipy-1.3.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_PYPI:=s/scipy/}
MAINTAINER= markd@NetBSD.org
HOMEPAGE= https://www.scipy.org/
COMMENT= Scientific Algorithms Library for Python
LICENSE= modified-bsd
USE_LANGUAGES+= c c++ fortran
MAKE_ENV+= ATLAS=None
# XXX Avoid picking up other compilers when installed
.include "../../mk/compiler.mk"
.if defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "g95"
PYSETUPBUILDARGS+= --fcompiler=g95
.elif defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "gfortran"
PYSETUPBUILDARGS+= --fcompiler=gnu95
LDFLAGS.Darwin+= -undefined dynamic_lookup
.else
BROKEN= "Requires fortran 95"
.endif
CPPFLAGS+= -D__STDC_FORMAT_MACROS
FFLAGS+= -fPIC
LDFLAGS.Darwin+= -headerpad_max_install_names
PYTHON_VERSIONS_INCOMPATIBLE= 27
REPLACE_PYTHON+= scipy/sparse/linalg/isolve/tests/test_gcrotmk.py
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
.PHONY: fix-darwin-install-name
post-install: fix-darwin-install-name
fix-darwin-install-name:
${FIND} ${DESTDIR}${PREFIX} -name "*.so" | \
while read lib; do \
libname=`basename $${lib}`; \
libdir=`dirname $${lib} | sed -e 's,${DESTDIR},,'`; \
install_name_tool -id $${libdir}/$${libname} $${lib}; \
done
.endif
TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
# self test failures for 1.1.0 reported at
# https://github.com/scipy/scipy/issues/9196
# needs 'make install' first!
do-test:
cd ${WRKDIR} && \
${PYTHONBIN} -c "import scipy; scipy.test('full')"
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../devel/py-cython/buildlink3.mk"
.include "../../math/blas/buildlink3.mk"
.include "../../math/fftw/buildlink3.mk"
.include "../../math/lapack/buildlink3.mk"
BUILDLINK_API_DEPENDS.py-numpy+= ${PYPKGPREFIX}-numpy>=1.8.2
.include "../../math/py-numpy/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"