2012-04-25 18:36:39 +02:00
|
|
|
# $NetBSD: Makefile,v 1.18 2012/04/25 16:36:39 hans Exp $
|
2008-12-19 23:04:36 +01:00
|
|
|
#
|
|
|
|
|
2012-04-17 19:24:41 +02:00
|
|
|
DISTNAME= numpy-1.6.1
|
2012-02-09 14:09:09 +01:00
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
2008-12-19 23:04:36 +01:00
|
|
|
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
|
2010-01-30 17:27:59 +01:00
|
|
|
LICENSE= modified-bsd
|
2008-12-19 23:04:36 +01:00
|
|
|
|
2008-12-19 23:09:55 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2012-04-17 19:24:41 +02:00
|
|
|
USE_LANGUAGES+= c fortran
|
2008-12-19 23:04:36 +01:00
|
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
|
|
|
|
MAKE_ENV+= ATLAS=None
|
|
|
|
|
2011-04-19 17:32:28 +02:00
|
|
|
REPLACE_PYTHON+= numpy/core/scons_support.py
|
|
|
|
REPLACE_PYTHON+= numpy/distutils/from_template.py
|
|
|
|
REPLACE_PYTHON+= numpy/distutils/system_info.py
|
|
|
|
REPLACE_PYTHON+= numpy/ma/bench.py
|
|
|
|
REPLACE_PYTHON+= numpy/distutils/conv_template.py
|
|
|
|
|
2011-04-19 15:14:28 +02:00
|
|
|
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))::'
|
2009-09-10 21:03:26 +02:00
|
|
|
|
2009-10-24 16:22:49 +02:00
|
|
|
# XXX Avoid picking up other compilers when installed
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
2009-12-04 22:23:22 +01:00
|
|
|
.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)
|
2009-10-24 16:22:49 +02:00
|
|
|
PYSETUPBUILDARGS+= --fcompiler=gnu
|
|
|
|
.endif
|
|
|
|
|
2012-04-25 18:36:39 +02:00
|
|
|
# According to http://projects.scipy.org/numpy/ticket/1101,
|
|
|
|
# LDFLAGS should either not be set or include -shared.
|
|
|
|
LDFLAGS+= -shared
|
|
|
|
|
2010-01-27 21:48:20 +01:00
|
|
|
# needs devel/py-nose
|
|
|
|
#do-test:
|
|
|
|
# ${PYTHONBIN} -c "import numpy; numpy.test()"
|
|
|
|
|
2009-09-10 21:03:26 +02:00
|
|
|
.include "../../lang/python/application.mk"
|
2012-02-09 14:09:09 +01:00
|
|
|
.include "../../lang/python/distutils.mk"
|
2008-12-19 23:04:36 +01:00
|
|
|
.include "../../math/blas/buildlink3.mk"
|
|
|
|
.include "../../math/lapack/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|