# $OpenBSD: Makefile,v 1.16 2011/11/15 14:45:46 rpointel Exp $ 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 # BSD PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= 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 REGRESS_DEPENDS= devel/py-nose MAKE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/amd -I${LOCALBASE}/include" MAKE_ENV+= LDFLAGS="-shared -L${LOCALBASE}/lib -pthread -lutil" do-regress: fake ${MAKE_ENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} -c \ 'import scipy ; scipy.test("full")' .include