openbsd-ports/math/py-scipy/Makefile

50 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.10 2010/10/23 15:09:57 steven Exp $
COMMENT= maths, science and engineering modules for Python
MODPY_EGG_VERSION= 0.7.0
DISTNAME= scipy-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
REVISION = 5
CATEGORIES= math devel
MAINTAINER= Eric Faurot <eric@openbsd.org>
# 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 ${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 \
::devel/swig
REGRESS_DEPENDS= ::devel/py-nose
MAKE_ENV+= LDSHARED="${CC} -shared -fPIC"
MAKE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/amd -I${LOCALBASE}/include"
do-regress: fake
${MAKE_ENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} -c \
'import scipy ; scipy.test("full")'
.include <bsd.port.mk>