View | Details | Raw Unified | Return to bug 217283 | Differences between
and this patch

Collapse All | Expand All

(-)lang/OpenCoarrays/Makefile (+50 lines)
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>
(-)lang/OpenCoarrays/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1487389722
2
SHA256 (sourceryinstitute-OpenCoarrays-1.8.4_GH0.tar.gz) = c40b504a65ea2933a3b68979c4e08dc9522f22b7a8d560d734d1a8bc6bcc1ee7
3
SIZE (sourceryinstitute-OpenCoarrays-1.8.4_GH0.tar.gz) = 243759
(-)lang/OpenCoarrays/files/patch-src_mpi_mpi__caf.c (+10 lines)
Line 0 Link Here
1
--- src/mpi/mpi_caf.c.orig	2017-02-18 03:15:31 UTC
2
+++ src/mpi/mpi_caf.c
3
@@ -37,7 +37,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
4
 #include <stdlib.h>
5
 #include <string.h>        /* For memcpy.  */
6
 #include <stdarg.h>        /* For variadic arguments.  */
7
-#include <alloca.h>
8
 #include <unistd.h>
9
 #include <mpi.h>
10
 #include <pthread.h>
(-)lang/OpenCoarrays/pkg-descr (+8 lines)
Line 0 Link Here
1
OpenCoarrays is an open-source software project
2
that supports the coarray Fortran (CAF) parallel
3
programming features of the Fortran 2008 standard
4
and several features proposed for Fortran 2015.
5
6
WWW: https://github.com/sourceryinstitute/OpenCoarrays
7
8
WWW: http://www.opencoarrays.org/

Return to bug 217283