summaryrefslogtreecommitdiffstats
path: root/math/parmgridgen/Makefile
blob: 46427441065bb054dc9a283521d222a2b92def60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Created by: Stas Timokhin <devel@stasyan.com>
# $FreeBSD$

PORTNAME=	parmgridgen
PORTVERSION=	1.0
PORTREVISION=	10
CATEGORIES=	math science
MASTER_SITES=	http://www.mgnet.org/mgnet/Codes/parmgridgen/ \
		http://www-users.cs.umn.edu/~moulitsa/download/ \
		http://www.stasyan.com/devel/distfiles/
DISTNAME=	ParMGridGen-${PORTVERSION}

MAINTAINER=	devel@stasyan.com
COMMENT=	Library for obtaining a sequence of successive coarse grids

ALL_TARGET=	parallel

LIB_DEPENDS+=	libmpi.so:net/openmpi
USES=		gmake
MAKE_JOBS_UNSAFE=	yes

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} 's|make|$$(MAKE)|g' ${WRKSRC}/Makefile
#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 ${STAGEDIR}${PREFIX}/bin/mgridgen
	${INSTALL_PROGRAM} ${WRKSRC}/parmgridgen ${STAGEDIR}${PREFIX}/bin/parmgridgen
	${INSTALL_PROGRAM} ${WRKSRC}/libmgrid.a ${STAGEDIR}${PREFIX}/lib/libmgrid.a
	${INSTALL_PROGRAM} ${WRKSRC}/libparmgrid.a ${STAGEDIR}${PREFIX}/lib/libparmgrid.a
	${INSTALL_DATA} ${WRKSRC}/mgridgen.h ${STAGEDIR}${PREFIX}/include/mgridgen.h
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/README

.include <bsd.port.mk>
OpenPOWER on IntegriCloud