37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.34 2013/09/01 12:14:07 obache Exp $
|
|
|
|
DISTNAME= ScientificPython-2.8
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/Python//}
|
|
PKGREVISION= 1
|
|
CATEGORIES= math python
|
|
MASTER_SITES= http://sourcesup.cru.fr/frs/download.php/2309/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://dirac.cnrs-orleans.fr/ScientificPython/
|
|
COMMENT= Python modules for scientific computing
|
|
|
|
CONFLICTS+= py-Scientific-[0-9]*
|
|
|
|
PYDISTUTILSPKG= yes
|
|
|
|
MAKE_ENV+= NETCDF_PREFIX=${BUILDLINK_PREFIX.netcdf}
|
|
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
|
|
PLIST_SUBST+= OSVER=${OS_VERSION:C/^(.).*/\1/}
|
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
post-build:
|
|
${RUN} cd ${WRKSRC}/Src/MPI && ${SETENV} CFLAGS=${CFLAGS:Q} \
|
|
LDFLAGS="${LDFLAGS} ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" ${PYTHONBIN} compile.py
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Src/MPI/mpipython \
|
|
${DESTDIR}${PREFIX}/bin/mpipython${PYVERSSUFFIX}
|
|
|
|
.include "../../devel/netcdf/buildlink3.mk"
|
|
.include "../../lang/python/extension.mk"
|
|
.include "../../math/py-numpy/buildlink3.mk"
|
|
.include "../../parallel/mpi-ch/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|