2011-09-16 06:31:20 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.34 2011/09/16 10:31:22 espie Exp $
|
2006-06-25 20:45:37 -04:00
|
|
|
|
2009-01-19 02:11:42 -05:00
|
|
|
COMMENT= fast array and numeric programming library for Python
|
2006-06-25 20:45:37 -04:00
|
|
|
|
2011-05-27 06:06:12 -04:00
|
|
|
MODPY_EGG_VERSION= 1.6.0
|
2009-01-19 02:11:42 -05:00
|
|
|
DISTNAME= numpy-${MODPY_EGG_VERSION}
|
2010-07-18 06:50:11 -04:00
|
|
|
PKGNAME= py-${DISTNAME}
|
2011-09-16 06:31:20 -04:00
|
|
|
REVISION = 2
|
2009-01-19 02:11:42 -05:00
|
|
|
CATEGORIES= math devel
|
2006-06-25 20:45:37 -04:00
|
|
|
|
2009-09-28 11:15:37 -04:00
|
|
|
HOMEPAGE= http://numpy.scipy.org/
|
2009-01-19 02:11:42 -05:00
|
|
|
|
|
|
|
MAINTAINER= Damien Miller <djm@openbsd.org>
|
2006-06-25 20:45:37 -04:00
|
|
|
|
|
|
|
# BSD
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2010-01-17 14:45:47 -05:00
|
|
|
|
2011-07-06 05:31:46 -04:00
|
|
|
WANTLIB= blas m lapack ${MODFORTRAN_WANTLIB} ${MODPY_WANTLIB}
|
2006-06-25 20:45:37 -04:00
|
|
|
|
2009-01-19 02:11:42 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=numpy/}
|
2006-06-25 20:45:37 -04:00
|
|
|
|
2010-05-23 06:25:55 -04:00
|
|
|
MODULES= lang/python \
|
|
|
|
fortran
|
|
|
|
|
2009-01-19 02:11:42 -05:00
|
|
|
MODPY_SETUPTOOLS= Yes
|
2009-01-22 14:23:10 -05:00
|
|
|
MODPY_SETUP= setupegg.py
|
2006-06-25 20:45:37 -04:00
|
|
|
|
2010-11-19 02:23:05 -05:00
|
|
|
REGRESS_DEPENDS= devel/py-nose
|
2009-01-27 16:12:02 -05:00
|
|
|
|
2010-10-23 11:09:57 -04:00
|
|
|
MODFORTRAN_COMPILER = g77
|
2010-05-23 06:25:55 -04:00
|
|
|
|
|
|
|
BUILD_DEPENDS = ${MODFORTRAN_BUILD_DEPENDS}
|
2010-11-22 04:30:38 -05:00
|
|
|
LIB_DEPENDS= math/lapack \
|
2010-05-23 06:25:55 -04:00
|
|
|
${MODFORTRAN_LIB_DEPENDS}
|
2009-02-16 05:10:09 -05:00
|
|
|
|
2010-01-17 14:45:47 -05:00
|
|
|
# XXX Segmentation fault on powerpc when building py-scipy:
|
|
|
|
# remove '-funroll-loops'
|
|
|
|
.if ${MACHINE_ARCH} == "powerpc"
|
|
|
|
PATCH_LIST= patch-* powerpc-patch-numpy_distutils_fcompiler_gnu_py
|
|
|
|
.endif
|
2009-02-16 05:10:09 -05:00
|
|
|
|
2010-02-27 12:53:06 -05:00
|
|
|
MODPY_BADEGGS = numpy
|
|
|
|
|
2007-08-07 01:25:58 -04:00
|
|
|
pre-build:
|
|
|
|
cp -f ${WRKSRC}/numpy/distutils/site.cfg ${WRKSRC}/site.cfg
|
|
|
|
|
2006-06-25 20:45:37 -04:00
|
|
|
do-regress: fake
|
|
|
|
${MAKE_ENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} -c \
|
2009-10-14 14:44:04 -04:00
|
|
|
'import numpy ; numpy.test()'
|
2006-06-25 20:45:37 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|