2013-09-20 20:55:04 +00:00
|
|
|
# Created by: Thierry Thomas <thierry@pompo.net>
|
2004-11-15 22:16:27 +00:00
|
|
|
|
|
|
|
PORTNAME= blocksolve95
|
|
|
|
PORTVERSION= 3.0
|
2020-01-30 14:17:44 +00:00
|
|
|
PORTREVISION= 26
|
2004-11-15 22:16:27 +00:00
|
|
|
CATEGORIES= math parallel
|
2011-03-19 19:57:02 +00:00
|
|
|
MASTER_SITES= ftp://ftp.mcs.anl.gov/pub/BlockSolve95/ \
|
2011-03-24 01:09:51 +00:00
|
|
|
http://ftp.mcs.anl.gov/pub/BlockSolve95/
|
2004-11-15 22:16:27 +00:00
|
|
|
DISTNAME= BlockSolve95
|
|
|
|
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2014-07-23 17:30:45 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-07-29 11:17:02 +00:00
|
|
|
COMMENT= Software for the efficient solution of large, sparse linear systems
|
2004-11-15 22:16:27 +00:00
|
|
|
|
2014-08-23 13:52:17 +00:00
|
|
|
LICENSE= AS-IS
|
|
|
|
LICENSE_NAME= AS-IS
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
|
|
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
|
2016-04-01 14:16:16 +00:00
|
|
|
LIB_DEPENDS= libf2c.so:lang/f2c \
|
2018-09-22 17:40:41 +00:00
|
|
|
libmpich.so:net/mpich
|
2004-11-15 22:16:27 +00:00
|
|
|
|
2014-07-29 19:11:51 +00:00
|
|
|
USES= fortran gmake tar:Z
|
2015-01-07 22:38:36 +00:00
|
|
|
|
2018-09-10 13:15:47 +00:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
2015-01-07 22:38:36 +00:00
|
|
|
OPTIONS_RADIO= BLAS
|
|
|
|
OPTIONS_RADIO_BLAS= REFERENCE ATLAS
|
|
|
|
OPTIONS_DEFAULT= REFERENCE
|
|
|
|
|
|
|
|
REFERENCE_DESC= Blas / Lapack
|
|
|
|
REFERENCE_USES= blaslapack:netlib
|
|
|
|
|
|
|
|
ATLAS_DESC= ATLAS
|
|
|
|
ATLAS_USES= blaslapack:atlas
|
|
|
|
|
2004-11-15 22:16:27 +00:00
|
|
|
MAKEFILE= makefile
|
2014-06-25 05:35:31 +00:00
|
|
|
MAKE_ARGS= GMAKE=${MAKE_CMD} PETSC_ARCH=${PETSC_ARCH} BOPT=${BOPT} \
|
2015-01-05 21:35:33 +00:00
|
|
|
BLAS_LIB="${BLASLIB}" LAPACK_LIB="-L${LOCALBASE}/lib ${LAPACKLIB}"
|
2004-11-15 22:16:27 +00:00
|
|
|
|
2009-11-28 10:44:56 +00:00
|
|
|
MPIDIR= ${LOCALBASE}
|
2004-11-15 22:16:27 +00:00
|
|
|
PETSC_ARCH= freebsd
|
|
|
|
BOPT?= O
|
|
|
|
|
2007-01-10 12:49:00 +00:00
|
|
|
FFLAGS+= -O2
|
2004-11-15 22:16:27 +00:00
|
|
|
|
|
|
|
INCLUDES= BMmsg.h BSdepend.h BSlog.h BSmy_blas.h BSprivate.h BSsparse.h
|
|
|
|
PORTDOCS= manual.ps
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/lib${BOPT}/${PETSC_ARCH}/libBS95.a \
|
2014-08-23 13:52:17 +00:00
|
|
|
${STAGEDIR}${PREFIX}/lib
|
|
|
|
${INSTALL_DATA} ${INCLUDES:S|^|${WRKSRC}/include/|} ${STAGEDIR}${PREFIX}/include
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/man3/* ${STAGEDIR}${MANPREFIX}/man/man3
|
2018-12-27 12:49:20 +00:00
|
|
|
|
|
|
|
do-install-DOCS-on:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2014-08-23 13:52:17 +00:00
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/manual/|} ${STAGEDIR}${DOCSDIR}
|
2018-12-27 12:49:20 +00:00
|
|
|
|
|
|
|
do-install-EXAMPLES-on:
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2014-08-23 13:52:17 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
@${RM} ${STAGEDIR}${EXAMPLESDIR}/makefile.orig
|
2004-11-15 22:16:27 +00:00
|
|
|
|
|
|
|
.if defined(MAINTAINER_MODE)
|
2018-12-27 12:49:20 +00:00
|
|
|
do-test:
|
2006-07-23 08:37:53 +00:00
|
|
|
. if !exists(${HOME}/.mpd.conf)
|
|
|
|
@${ECHO_CMD} "MPD_SECRETWORD=change_on_install" > ${HOME}/.mpd.conf
|
|
|
|
${CHMOD} go-r ${HOME}/.mpd.conf
|
|
|
|
@${ECHO_MSG} "${HOME}/.mpd.conf has been generated - please change the secret word!"
|
|
|
|
. endif
|
2009-11-28 10:44:56 +00:00
|
|
|
${LOCALBASE}/bin/mpd &
|
2014-08-23 13:52:17 +00:00
|
|
|
(cd ${BUILD_WRKSRC}/examples && \
|
|
|
|
${SETENV} ${MAKE_ENV:C|HOME=|wHOME=|} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} bsrunexamples clean)
|
2009-11-28 10:44:56 +00:00
|
|
|
${LOCALBASE}/bin/mpdallexit
|
2004-11-15 22:16:27 +00:00
|
|
|
.endif
|
|
|
|
|
2015-01-07 22:38:36 +00:00
|
|
|
.include <bsd.port.mk>
|