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

Collapse All | Expand All

(-)Makefile (-8 / +19 lines)
Lines 18-34 Link Here
18
LICENSE=	BSD3CLAUSE
18
LICENSE=	BSD3CLAUSE
19
LICENSE_FILE=	${WRKSRC}/LICENSE
19
LICENSE_FILE=	${WRKSRC}/LICENSE
20
20
21
USES=		fortran
21
OPTIONS_DEFINE=         PROFILE SHARED STATIC FLANG
22
22
23
OPTIONS_DEFINE=	PROFILE SHARED STATIC
23
NO_FLANG_ARCHS=         i386 aarch64 armv6 armv7
24
OPTIONS_DEFAULT=	SHARED STATIC
24
.for arch in ${NO_FLANG_ARCHS}
25
PROFILE_DESC=	Build profiling libraries
25
    OPTIONS_EXCLUDE_${arch}=FLANG
26
SHARED_DESC=	Build shared libraries and PIC archives
26
.endfor
27
STATIC_DESC=	Build (non-PIC) archives
28
27
29
MAKE_ENV=	BLASLIB="${BLASLIB}"
28
OPTIONS_DEFAULT=        SHARED STATIC
30
PLIST_SUB=	SVERSION="${SVERSION}"
29
PROFILE_DESC=           Build profiling libraries
30
SHARED_DESC=            Build shared libraries and PIC archives
31
STATIC_DESC=            Build (non-PIC) archives
32
FLANG_DESC=             Use experimental flang instead of default Fortran compiler
33
FLANG_USES=             fortran:flang
34
FLANG_USES_OFF=         fortran
31
35
36
MAKE_ENV=               BLASLIB="${BLASLIB}"
37
PLIST_SUB=              SVERSION="${SVERSION}"
38
32
WRKSRC=			${WRKDIR}/lapack-${PORTVERSION}
39
WRKSRC=			${WRKDIR}/lapack-${PORTVERSION}
33
WRKSRC_PROFILE=		${WRKSRC}_PROFILE
40
WRKSRC_PROFILE=		${WRKSRC}_PROFILE
34
WRKSRC_SHARED=		${WRKSRC}_SHARED
41
WRKSRC_SHARED=		${WRKSRC}_SHARED
Lines 36-41 Link Here
36
43
37
.include <bsd.port.options.mk>
44
.include <bsd.port.options.mk>
38
45
46
.if ${PORT_OPTIONS:MFLANG}
47
EXTRA_PATCHES+=         ${PATCHDIR}/flang-patch-make.inc.example
48
.endif
49
39
.if defined(BLAS_SLAVEPORT)
50
.if defined(BLAS_SLAVEPORT)
40
ALL_TARGET=		blaslib
51
ALL_TARGET=		blaslib
41
BLASLIB=		../../libblas.a
52
BLASLIB=		../../libblas.a
(-)files/flang-patch-make.inc.example (+17 lines)
Line 0 Link Here
1
--- make.inc.example.orig       2018-05-05 11:59:27.891022000 -0700
2
+++ make.inc.example    2018-05-05 11:59:38.966638000 -0700
3
@@ -22,11 +22,11 @@
4
 # Timer for the SECOND and DSECND routines
5
 #
6
 # Default : SECOND and DSECND will use a call to the EXTERNAL FUNCTION ETIME
7
-#TIMER    = EXT_ETIME
8
+TIMER    = EXT_ETIME
9
 # For RS6K : SECOND and DSECND will use a call to the EXTERNAL FUNCTION ETIME_
10
 # TIMER    = EXT_ETIME_
11
 # For gfortran compiler: SECOND and DSECND will use a call to the INTERNAL FUNCTION ETIME
12
-TIMER    = INT_ETIME
13
+#TIMER    = INT_ETIME
14
 # If your Fortran compiler does not provide etime (like Nag Fortran Compiler, etc...)
15
 # SECOND and DSECND will use a call to the INTERNAL FUNCTION CPU_TIME
16
 # TIMER    = INT_CPU_TIME
17

Return to bug 228007