2005-04-11 23:44:48 +02:00
|
|
|
# $NetBSD: Makefile,v 1.22 2005/04/11 21:46:31 tv Exp $
|
2001-01-30 03:01:43 +01:00
|
|
|
|
2004-01-19 00:57:50 +01:00
|
|
|
DISTNAME= ScientificPython-2.4.5
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/Python//}
|
2004-10-03 02:12:51 +02:00
|
|
|
PKGREVISION= 1
|
2004-07-22 11:15:59 +02:00
|
|
|
CATEGORIES= math python
|
2004-01-19 00:57:50 +01:00
|
|
|
MASTER_SITES= http://starship.python.net/crew/hinsen/ScientificPython/ \
|
|
|
|
http://dirac.cnrs-orleans.fr/programs/ScientificPython/
|
2001-01-30 03:01:43 +01:00
|
|
|
|
2003-07-17 23:41:05 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2001-01-30 03:01:43 +01:00
|
|
|
HOMEPAGE= http://starship.python.net/crew/hinsen/scientific.html
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= Python modules for scientific computing
|
2001-01-30 03:01:43 +01:00
|
|
|
|
2002-01-17 13:02:25 +01:00
|
|
|
CONFLICTS+= py-Scientific-*
|
|
|
|
|
2002-01-16 21:32:42 +01:00
|
|
|
BUILDLINK_DEPENDS.python20= python20>=2.0.1nb1
|
|
|
|
BUILDLINK_DEPENDS.python21= python21>=2.1.1nb1
|
2001-01-30 03:01:43 +01:00
|
|
|
|
2001-05-14 18:22:35 +02:00
|
|
|
PYDISTUTILSPKG= yes
|
|
|
|
PYBINMODULE= yes
|
2001-01-30 03:01:43 +01:00
|
|
|
|
2004-01-19 00:57:50 +01:00
|
|
|
MAKE_ENV+= NETCDF_PREFIX=${LOCALBASE}
|
|
|
|
|
2001-05-14 18:22:35 +02:00
|
|
|
EVAL_PREFIX+= NETCDFPREFIX=netcdf MPICHPREFIX=mpich
|
2002-01-17 13:02:25 +01:00
|
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
|
2004-04-24 23:01:28 +02:00
|
|
|
PLIST_SUBST+= OSVER=${OS_VERSION:C/^(.).*/\1/}
|
2001-01-30 03:01:43 +01:00
|
|
|
|
|
|
|
post-build:
|
2004-01-19 00:57:50 +01:00
|
|
|
@(cd ${WRKSRC}/Src/MPI && ${SETENV} CFLAGS="${CFLAGS}" \
|
|
|
|
LDFLAGS="${LDFLAGS}" ${PYTHONBIN} compile.py)
|
2001-01-30 03:01:43 +01:00
|
|
|
|
2001-05-14 18:22:35 +02:00
|
|
|
post-install:
|
2002-01-17 13:02:25 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Src/MPI/mpipython \
|
|
|
|
${PREFIX}/bin/mpipython${PYVERSSUFFIX}
|
2001-01-30 03:01:43 +01:00
|
|
|
|
2004-04-24 23:01:28 +02:00
|
|
|
.include "../../devel/netcdf/buildlink3.mk"
|
2002-09-22 01:46:45 +02:00
|
|
|
.include "../../lang/python/extension.mk"
|
2004-04-24 23:01:28 +02:00
|
|
|
.include "../../math/py-Numeric/buildlink3.mk"
|
|
|
|
.include "../../parallel/mpi-ch/buildlink3.mk"
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2001-01-30 03:01:43 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|