openbsd-ports/math/py-scipy/Makefile
2013-03-11 11:20:26 +00:00

49 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.19 2013/03/11 11:23:56 espie Exp $
BROKEN-sparc64 = ICE in scipy/optimize/minpack/qrsolv.f:189
BROKEN-hppa = ICE in scipy/special/specfun/specfun.f:5151
COMMENT= maths, science and engineering modules for Python
MODPY_EGG_VERSION= 0.10.0
DISTNAME= scipy-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
CATEGORIES= math devel
MAINTAINER= Eric Faurot <eric@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += amd arpack blas stdc++ lapack m umfpack util
WANTLIB += ${MODPY_WANTLIB} ${MODFORTRAN_WANTLIB}
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scipy/}
HOMEPAGE= http://numeric.scipy.org/
MODULES= lang/python fortran
MODFORTRAN_COMPILER = g77
MODPY_SETUPTOOLS= Yes
MODPY_SETUP= setupegg.py
MODPY_BADEGGS= scipy
BUILD_DEPENDS= ${RUN_DEPENDS} \
${MODFORTRAN_BUILD_DEPENDS}
LIB_DEPENDS= math/umfpack \
math/arpack \
math/amd \
${MODFORTRAN_LIB_DEPENDS}
RUN_DEPENDS= math/py-numpy>=1.6.0 \
devel/swig
TEST_DEPENDS= devel/py-nose
MAKE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/amd -I${LOCALBASE}/include"
MAKE_ENV+= LDFLAGS="-shared -L${LOCALBASE}/lib -pthread -lutil"
do-test: fake
${MAKE_ENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} -c \
'import scipy ; scipy.test("full")'
.include <bsd.port.mk>