use fortran module
make sure we pick the amd includes (appear to affect gcc3 also)
This commit is contained in:
parent
1ae7e4a6f6
commit
18fe3c3a29
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.4 2010/03/01 12:06:02 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.5 2010/05/23 15:51:45 espie Exp $
|
||||
|
||||
COMMENT= maths, science and engineering modules for Python
|
||||
|
||||
MODPY_EGG_VERSION= 0.7.0
|
||||
DISTNAME= scipy-${MODPY_EGG_VERSION}
|
||||
PKGNAME= py-${DISTNAME}p1
|
||||
PKGNAME= py-${DISTNAME}p2
|
||||
CATEGORIES= math devel
|
||||
|
||||
MAINTAINER= Eric Faurot <eric@openbsd.org>
|
||||
@ -15,26 +15,29 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB= amd blas g2c lapack m
|
||||
WANTLIB= amd blas lapack m ${MODFORTRAN_WANTLIB}
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scipy/}
|
||||
HOMEPAGE= http://numeric.scipy.org/
|
||||
|
||||
MODULES= lang/python
|
||||
MODULES= lang/python fortran
|
||||
MODFORTRAN_WANTG77= Yes
|
||||
MODPY_SETUPTOOLS= Yes
|
||||
MODPY_SETUP= setupegg.py
|
||||
MODPY_BADEGGS= scipy
|
||||
|
||||
BUILD_DEPENDS= ::math/py-numpy \
|
||||
::devel/swig
|
||||
::devel/swig \
|
||||
${MODFORTRAN_BUILD_DEPENDS}
|
||||
LIB_DEPENDS= umfpack::math/umfpack \
|
||||
arpack::math/arpack
|
||||
arpack::math/arpack \
|
||||
${MODFORTRAN_LIB_DEPENDS}
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
REGRESS_DEPENDS= ::devel/py-nose
|
||||
|
||||
MAKE_ENV+= LDSHARED="${CC} -shared -fPIC"
|
||||
MAKE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/amd"
|
||||
MAKE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/amd -I${LOCALBASE}/include"
|
||||
|
||||
do-regress: fake
|
||||
${MAKE_ENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} -c \
|
||||
|
Loading…
Reference in New Issue
Block a user