50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.36 2013/03/11 11:23:56 espie Exp $
|
|
|
|
COMMENT= fast array and numeric programming library for Python
|
|
|
|
MODPY_EGG_VERSION= 1.6.0
|
|
DISTNAME= numpy-${MODPY_EGG_VERSION}
|
|
PKGNAME= py-${DISTNAME}
|
|
REVISION = 3
|
|
CATEGORIES= math devel
|
|
|
|
HOMEPAGE= http://numpy.scipy.org/
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB= blas m lapack ${MODFORTRAN_WANTLIB} ${MODPY_WANTLIB}
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=numpy/}
|
|
|
|
MODULES= lang/python \
|
|
fortran
|
|
|
|
MODPY_SETUPTOOLS= Yes
|
|
MODPY_SETUP= setupegg.py
|
|
|
|
TEST_DEPENDS= devel/py-nose
|
|
|
|
MODFORTRAN_COMPILER = g77
|
|
|
|
BUILD_DEPENDS = ${MODFORTRAN_BUILD_DEPENDS}
|
|
LIB_DEPENDS= math/lapack \
|
|
${MODFORTRAN_LIB_DEPENDS}
|
|
|
|
# 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
|
|
|
|
MODPY_BADEGGS = numpy
|
|
|
|
pre-build:
|
|
cp -f ${WRKSRC}/numpy/distutils/site.cfg ${WRKSRC}/site.cfg
|
|
|
|
do-test: fake
|
|
${MAKE_ENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} -c \
|
|
'import numpy ; numpy.test()'
|
|
|
|
.include <bsd.port.mk>
|