Line 0
Link Here
|
|
|
1 |
# Created by: Anton Shterenlikht |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= OpenCoarrays |
5 |
PORTVERSION= 1.8.4 |
6 |
CATEGORIES= lang |
7 |
|
8 |
MAINTAINER= mexas@bris.ac.uk |
9 |
COMMENT= Transport layer for coarray Fortran compilers |
10 |
|
11 |
LICENSE= BSD3CLAUSE |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
|
14 |
BUILD_DEPENDS= bash:shells/bash |
15 |
|
16 |
USE_GITHUB= yes |
17 |
GH_ACCOUNT= sourceryinstitute |
18 |
GH_PROJECT= OpenCoarrays |
19 |
|
20 |
USES_GCC= 6+ |
21 |
|
22 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
23 |
|
24 |
BLD_DIR= ${WRKSRC}/build |
25 |
|
26 |
PLIST_FILES= bin/caf bin/cafrun lib/libcaf_mpi.a |
27 |
|
28 |
.include <bsd.port.options.mk> |
29 |
|
30 |
do-build: |
31 |
${MKDIR} ${BLD_DIR} |
32 |
cd ${BLD_DIR} && CC=gcc6 FC=gfortran6 cmake .. && make |
33 |
# PR submitted to OC to fix these 2 errors |
34 |
# https://github.com/sourceryinstitute/OpenCoarrays/issues/338 |
35 |
${SED} -i '' -e 's|bin/|usr/bin/env |' ${BLD_DIR}/bin_staging/caf \ |
36 |
${BLD_DIR}/bin_staging/cafrun |
37 |
${SED} -i '' -e 's|local\/usr\/bin\/env |local\/bin\/|' \ |
38 |
${BLD_DIR}/bin_staging/cafrun |
39 |
|
40 |
check regression-test test: build |
41 |
cd ${BLD_DIR} && ctest |
42 |
|
43 |
do-install: |
44 |
${INSTALL_SCRIPT} ${BLD_DIR}/bin_staging/caf \ |
45 |
${BLD_DIR}/bin_staging/cafrun ${STAGEDIR}${PREFIX}/bin |
46 |
${INSTALL_DATA} ${BLD_DIR}/src/mpi/libcaf_mpi.a ${STAGEDIR}${PREFIX}/lib |
47 |
|
48 |
post-install: |
49 |
|
50 |
.include <bsd.port.mk> |