52 lines
1.6 KiB
Makefile
52 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.31 2016/08/23 22:45:05 wiz Exp $
|
|
|
|
DISTNAME= numpy-1.11.1
|
|
GITHUB_PROJECT= numpy
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= math python
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=numpy/}
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
|
|
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 */*.py */*/*.py */*/*/*.py */*/*/*/*.py
|
|
|
|
# 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}}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# TEST_DEPENDS
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
|
|
|
|
do-test:
|
|
${RUN} PYTHONPATH=${DESTDIR}${PREFIX}/${PYSITELIB} ${PYTHONBIN} -c "import numpy; numpy.test()"
|
|
|
|
.include "../../devel/py-cython/buildlink3.mk"
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/egg.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"
|