aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2014-04-13 07:35:44 +0800
committerdanilo <danilo@FreeBSD.org>2014-04-13 07:35:44 +0800
commitca1ea46e39dc17ffbbd81744085e5686c80d2ccd (patch)
tree2e4ec3688cdece9da8fe4fdd70e5457ab72486ab /math
parent85e74dc717570c8b954ed759b8a66d00a5cd6fff (diff)
downloadfreebsd-ports-graphics-ca1ea46e39dc17ffbbd81744085e5686c80d2ccd.tar.gz
freebsd-ports-graphics-ca1ea46e39dc17ffbbd81744085e5686c80d2ccd.tar.zst
freebsd-ports-graphics-ca1ea46e39dc17ffbbd81744085e5686c80d2ccd.zip
- Support staging
- Convert LIB_DEPENDS to new syntax - Remove extra tabs Approved by: portmgr (blanket)
Diffstat (limited to 'math')
-rw-r--r--math/parmgridgen/Makefile34
1 files changed, 16 insertions, 18 deletions
diff --git a/math/parmgridgen/Makefile b/math/parmgridgen/Makefile
index 2b7c48eea3b..20b71dfca18 100644
--- a/math/parmgridgen/Makefile
+++ b/math/parmgridgen/Makefile
@@ -15,29 +15,27 @@ COMMENT= Library for obtaining a sequence of successive coarse grids
ALL_TARGET= parallel
-LIB_DEPENDS+= mpi.1:${PORTSDIR}/net/openmpi
+LIB_DEPENDS+= libmpi.so:${PORTSDIR}/net/openmpi
USES= gmake
MAKE_JOBS_UNSAFE= yes
-NO_STAGE= yes
post-patch:
- @${REINPLACE_CMD} 's|make|$$(MAKE)|g' ${WRKSRC}/Makefile
+ @${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
+. 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
+ ${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>