1998-08-09 23:54:16 +00:00
|
|
|
# New ports collection makefile for: SuperLU
|
1999-12-23 19:30:26 +00:00
|
|
|
# Date created: 31 Oct 97
|
|
|
|
# Whom: Pedro Giffuni <giffunip@asme.org>
|
1998-08-09 23:54:16 +00:00
|
|
|
#
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1998-08-09 23:54:16 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 07:20:58 +00:00
|
|
|
PORTNAME= superlu
|
2003-06-10 23:47:18 +00:00
|
|
|
PORTVERSION= 2.0.20030603
|
1998-08-09 23:54:16 +00:00
|
|
|
CATEGORIES= math
|
2003-06-30 19:30:25 +00:00
|
|
|
MASTER_SITES= http://crd.lbl.gov/~xiaoye/SuperLU/ \
|
|
|
|
http://crd.lbl.gov/~xiaoye/
|
2002-10-12 20:09:18 +00:00
|
|
|
DISTNAME= ${PORTNAME}_2.0
|
2003-06-10 23:47:18 +00:00
|
|
|
.ifndef NOPORTDOCS
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} superlu_ug.ps.gz SLU_general.ps.gz simax95.ps.gz
|
|
|
|
.endif
|
|
|
|
DIST_SUBDIR= superlu
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1998-08-09 23:54:16 +00:00
|
|
|
|
2003-06-10 23:47:18 +00:00
|
|
|
MAINTAINER= maho@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= A library of routines for performing sparse factorization
|
1998-08-09 23:54:16 +00:00
|
|
|
|
2003-06-10 23:47:18 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libf77blas.a:${PORTSDIR}/math/atlas
|
1998-08-09 23:54:16 +00:00
|
|
|
|
2003-06-10 23:47:18 +00:00
|
|
|
USE_REINPLACE= yes
|
1998-08-09 23:54:16 +00:00
|
|
|
WRKSRC= ${WRKDIR}/SuperLU
|
|
|
|
ALL_TARGET= superlulib
|
2003-06-10 23:47:18 +00:00
|
|
|
|
|
|
|
BLAS_LIBS= ${LOCALBASE}/lib/libf77blas.a ${LOCALBASE}/lib/libatlas.a
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's+%%BLAS_LIBS%%+${BLAS_LIBS}+' \
|
|
|
|
${WRKSRC}/make.inc
|
2003-06-10 23:51:35 +00:00
|
|
|
@${REINPLACE_CMD} -e 's+%%CC%%+${CC}+' \
|
|
|
|
${WRKSRC}/make.inc
|
|
|
|
@${REINPLACE_CMD} -e 's+%%FC%%+${FC}+' \
|
|
|
|
${WRKSRC}/make.inc
|
|
|
|
@${REINPLACE_CMD} -e 's+%%CFLAGS%%+${CFLAGS}+' \
|
|
|
|
${WRKSRC}/make.inc
|
|
|
|
@${REINPLACE_CMD} -e 's+%%FFLAGS%%+${FFLAGS}+' \
|
|
|
|
${WRKSRC}/make.inc
|
1998-08-09 23:54:16 +00:00
|
|
|
|
1999-12-23 19:30:26 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libsuperlu.* ${PREFIX}/lib
|
2003-06-10 23:47:18 +00:00
|
|
|
@${MKDIR} ${PREFIX}/include/superlu
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/SRC/*.h ${PREFIX}/include/superlu
|
1998-08-09 23:54:16 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-06-10 23:47:18 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/SLU_general.ps.gz ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/simax95.ps.gz ${DOCSDIR}
|
2003-06-11 00:27:14 +00:00
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/superlu_ug.ps.gz ${DOCSDIR}
|
1998-08-09 23:54:16 +00:00
|
|
|
.endif
|
1999-12-23 19:30:26 +00:00
|
|
|
|
1998-08-09 23:54:16 +00:00
|
|
|
.include <bsd.port.mk>
|