aboutsummaryrefslogtreecommitdiff
path: root/math/parmgridgen/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/parmgridgen/Makefile')
-rw-r--r--math/parmgridgen/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/math/parmgridgen/Makefile b/math/parmgridgen/Makefile
new file mode 100644
index 000000000000..3adc79559425
--- /dev/null
+++ b/math/parmgridgen/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: math/parmgirdgen
+# Date created: 22 Nov 2010
+# Whom: Stas Timokhin <devel@stasyan.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= parmgridgen
+PORTVERSION= 1.0
+CATEGORIES= math science
+MASTER_SITES= http://www.mgnet.org/mgnet/Codes/parmgridgen/
+DISTNAME= ParMGridGen-${PORTVERSION}
+
+MAINTAINER= devel@stasyan.com
+COMMENT= Library for obtaining a sequence of successive coarse grids
+
+ALL_TARGET= parallel
+
+LIB_DEPENDS+= mpi.0:${PORTSDIR}/net/openmpi
+USE_GMAKE= yes
+
+post-patch:
+#respect CFLAGS
+. for f in IMlib Lib Programs
+ @${REINPLACE_CMD} 's|CFLAGS =|CFLAGS+=|g' ${WRKSRC}/MGridGen/${f}/Makefile
+. endfor
+. for f in IMParMetis-2.0 ParLib Programs
+ @${REINPLACE_CMD} 's|CFLAGS =|CFLAGS+=|g' ${WRKSRC}/ParMGridGen/${f}/Makefile
+. endfor
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/mgridgen ${PREFIX}/bin/mgridgen
+ ${INSTALL_PROGRAM} ${WRKSRC}/parmgridgen ${PREFIX}/bin/parmgridgen
+ ${INSTALL_PROGRAM} ${WRKSRC}/libmgrid.a ${PREFIX}/lib/libmgrid.a
+ ${INSTALL_PROGRAM} ${WRKSRC}/libparmgrid.a ${PREFIX}/lib/libparmgrid.a
+ ${INSTALL_DATA} ${WRKSRC}/mgridgen.h ${PREFIX}/include/mgridgen.h
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
+.endif
+
+.include <bsd.port.mk>