pkgsrc/math/py-numpy/Makefile
adam f4cb9c82c7 Changes 1.8.0:
* New, no 2to3, Python 2 and Python 3 are supported by a common code base.
* New, gufuncs for linear algebra, enabling operations on stacked arrays.
* New, inplace fancy indexing for ufuncs with the ``.at`` method.
* New, ``partition`` function, partial sorting via selection for fast median.
* New, ``nanmean``, ``nanvar``, and ``nanstd`` functions skipping NaNs.
* New, ``full`` and ``full_like`` functions to create value initialized arrays.
* New, ``PyUFunc_RegisterLoopForDescr``, better ufunc support for user dtypes.
* Numerous performance improvements in many areas.
* Support for Python versions 2.4 and 2.5 has been dropped.
* Support for SCons has been removed.
2014-02-28 09:43:10 +00:00

76 lines
2.6 KiB
Makefile

# $NetBSD: Makefile,v 1.27 2014/02/28 09:43:10 adam Exp $
DISTNAME= numpy-1.8.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=numpy/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.numpy.org/
COMMENT= Array processing for numbers, strings, records, and objects
LICENSE= modified-bsd
USE_LANGUAGES= c fortran
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
MAKE_ENV+= ATLAS=None
REPLACE_PYTHON+= *.py
REPLACE_PYTHON+= numpy/*.py
REPLACE_PYTHON+= numpy/compat/*.py
REPLACE_PYTHON+= numpy/core/*.py
REPLACE_PYTHON+= numpy/distutils/*.py
REPLACE_PYTHON+= numpy/distutils/tests/*.py
REPLACE_PYTHON+= numpy/distutils/tests/f2py_ext/*.py
REPLACE_PYTHON+= numpy/distutils/tests/f2py_f90_ext/*.py
REPLACE_PYTHON+= numpy/distutils/tests/gen_ext/*.py
REPLACE_PYTHON+= numpy/distutils/tests/pyrex_ext/*.py
REPLACE_PYTHON+= numpy/distutils/tests/swig_ext/*.py
REPLACE_PYTHON+= numpy/f2py/*.py
REPLACE_PYTHON+= numpy/f2py/docs/usersguide/*.py
REPLACE_PYTHON+= numpy/fft/tests/*.py
REPLACE_PYTHON+= numpy/ma/*.py
REPLACE_PYTHON+= numpy/matrixlib/*.py
REPLACE_PYTHON+= numpy/random/mtrand/*.py
REPLACE_PYTHON+= numpy/testing/*.py
SUBST_CLASSES+= numpy
SUBST_STAGE.numpy= post-patch
SUBST_FILES.numpy= numpy/f2py/setup.py
SUBST_SED.numpy= -e 's:%(os.path.basename(sys.executable))::'
# XXX Avoid picking up other compilers when installed
.include "../../mk/compiler.mk"
.if defined(PKGSRC_FORTRAN) && !empty(PKGSRC_FORTRAN:Mg95)
PYSETUPBUILDARGS+= --fcompiler=g95
.elif defined(PKGSRC_FORTRAN) && !empty(PKGSRC_FORTRAN:Mgfortran)
PYSETUPBUILDARGS+= --fcompiler=gnu95
.elif !empty(PKGSRC_COMPILER:Mgcc)
PYSETUPBUILDARGS+= --fcompiler=gnu
.endif
# This package bypasses the wrappers and calls the compilers directly when
# linking, so ensure that we pass through requisite options.
LDFLAGS+= ${_COMPILER_ABI_FLAG.${ABI}}
# This package also does its own linking of dependent packages, so we need
# to ensure that linker is called with the correct arguments.
SUBST_CLASSES+= linkabi
SUBST_STAGE.linkabi= post-patch
SUBST_FILES.linkabi= numpy/distutils/fcompiler/gnu.py
SUBST_SED.linkabi= -e 's,@COMPILER_ABI_FLAG@,${_COMPILER_ABI_FLAG.${ABI}},'
.include "../../mk/bsd.prefs.mk"
# needs devel/py-nose
#do-test:
# ${PYTHONBIN} -c "import numpy; numpy.test()"
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.if ${OPSYS} != "Darwin"
# blas and lapack are not needed; numpy will use Accelerate.framework
.include "../../math/blas/buildlink3.mk"
.include "../../math/lapack/buildlink3.mk"
.endif
.include "../../mk/bsd.pkg.mk"