5d458ce4fe
gh-2973 Fix `1` is printed during numpy.test() gh-2983 BUG: gh-2969: Backport memory leak fix 80b3a34. gh-3007 Backport gh-3006 gh-2984 Backport fix complex polynomial fit gh-2982 BUG: Make nansum work with booleans. gh-2985 Backport large sort fixes gh-3039 Backport object take gh-3105 Backport nditer fix op axes initialization gh-3108 BUG: npy-pkg-config ini files were missing after Bento build. gh-3124 BUG: PyArray_LexSort allocates too much temporary memory. gh-3131 BUG: Exported f2py_size symbol prevents linking multiple f2py modules. gh-3117 Backport gh-2992 gh-3135 DOC: Add mention of PyArray_SetBaseObject stealing a reference gh-3134 DOC: Fix typo in fft docs (the indexing variable is 'm', not 'n'). gh-3136 Backport 3128
79 lines
2.6 KiB
Makefile
79 lines
2.6 KiB
Makefile
# $NetBSD: Makefile,v 1.25 2013/05/20 05:59:58 adam Exp $
|
|
|
|
DISTNAME= numpy-1.7.1
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= math python
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=numpy/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://numpy.scipy.org/
|
|
COMMENT= Array processing for numbers, strings, records, and objects
|
|
LICENSE= modified-bsd
|
|
|
|
USE_LANGUAGES= c fortran
|
|
PYTHON_VERSIONS_INCLUDE_3X= yes
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
|
|
MAKE_ENV+= ATLAS=None
|
|
|
|
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/testing/*.py
|
|
|
|
SUBST_CLASSES+= numpy
|
|
SUBST_STAGE.numpy= post-patch
|
|
SUBST_FILES.numpy= numpy/f2py/setup.py numpy/f2py/setupscons.py
|
|
SUBST_SED.numpy= -e 's:/usr/bin/env %s:${PYTHONBIN}:'
|
|
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"
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
# to avoid '-bundle can't be used with -dynamiclib' error
|
|
BUILDLINK_TRANSFORM+= rm:-bundle
|
|
LDFLAGS+= -lpython
|
|
.endif
|
|
|
|
# needs devel/py-nose
|
|
#do-test:
|
|
# ${PYTHONBIN} -c "import numpy; numpy.test()"
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/distutils.mk"
|
|
.include "../../math/blas/buildlink3.mk"
|
|
.include "../../math/lapack/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|