aboutsummaryrefslogtreecommitdiffstats
path: root/math/UFsparse/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/UFsparse/Makefile')
-rw-r--r--math/UFsparse/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/math/UFsparse/Makefile b/math/UFsparse/Makefile
new file mode 100644
index 00000000000..1779d0f2cf4
--- /dev/null
+++ b/math/UFsparse/Makefile
@@ -0,0 +1,55 @@
+# New ports collection makefile for: UFspace
+# Date created: 4 July 2006
+# Whom: Maho Nakata <maho@FreeBSD.org.b>
+#
+# $FreeBSD$
+#
+
+PORTNAME= UFsparse
+PORTVERSION= 2.0.0.b
+CATEGORIES= math
+MASTER_SITES= http://www.cise.ufl.edu/research/sparse/UFsparse/v2.0.0beta/
+DISTNAME= ${PORTNAME}
+
+MAINTAINER= maho@FreeBSD.org
+COMMENT= UFspace is a set of packages for sparse matrices calculation
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/libmetis.a:${PORTSDIR}/math/metis
+
+USE_GMAKE= yes
+ALL_TARGET=
+
+BLAS= -L${LOCALBASE}/lib -lf77blas -latlas -lg2c
+LAPACK= -L${LOCALBASE}/lib -lalapack -lcblas
+
+post-patch:
+ @${REINPLACE_CMD} -e 's,%%CC%%,${CC},g' \
+ -e 's,%%CFLAGS%%,${CFLAGS},g' \
+ -e 's,%%F77%%,${FC},g' \
+ -e 's,%%FFLAGS%%,${FFLAGS},g' \
+ -e 's,%%BLAS%%,${BLAS},g' \
+ -e 's,%%LAPACK%%,${LAPACK},g' \
+ ${WRKSRC}/UFconfig/UFconfig.mk
+do-install:
+ ${MKDIR} ${PREFIX}/include/ufsparse
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/UFconfig/UFconfig.h ${PREFIX}/include/ufsparse
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/UMFPACK/Include/*.h ${PREFIX}/include/ufsparse
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/AMD/Include/*.h ${PREFIX}/include/ufsparse
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/BTF/Include/*.h ${PREFIX}/include/ufsparse
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/CCOLAMD/*.h ${PREFIX}/include/ufsparse
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/CHOLMOD/Include/*.h ${PREFIX}/include/ufsparse
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/COLAMD/*.h ${PREFIX}/include/ufsparse
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/CXSparse/Source/*.h ${PREFIX}/include/ufsparse
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/KLU/Include/*.h ${PREFIX}/include/ufsparse
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/CAMD/Include/*.h ${PREFIX}/include/ufsparse
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/UMFPACK/Lib/libumfpack.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/AMD/Lib/libamd.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/CCOLAMD/libccolamd.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/CHOLMOD/Lib/libcholmod.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/COLAMD/libcolamd.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/KLU/Lib/libklu.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/BTF/Lib/libbtf.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/CAMD/Lib/libcamd.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKDIR}/UFsparse/CXSparse/Source/libcxsparse.a ${PREFIX}/lib
+
+.include <bsd.port.mk>