Index: Makefile =================================================================== --- Makefile (revision 469266) +++ Makefile (working copy) @@ -18,17 +18,19 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -USES= fortran +OPTIONS_DEFINE= PROFILE SHARED STATIC +OPTIONS_DEFINE_amd64= FLANG +OPTIONS_DEFAULT= SHARED STATIC +PROFILE_DESC= Build profiling libraries +SHARED_DESC= Build shared libraries and PIC archives +STATIC_DESC= Build (non-PIC) archives +FLANG_DESC= Use experimental flang instead of default Fortran compiler +FLANG_USES= fortran:flang +FLANG_USES_OFF= fortran -OPTIONS_DEFINE= PROFILE SHARED STATIC -OPTIONS_DEFAULT= SHARED STATIC -PROFILE_DESC= Build profiling libraries -SHARED_DESC= Build shared libraries and PIC archives -STATIC_DESC= Build (non-PIC) archives +MAKE_ENV= BLASLIB="${BLASLIB}" +PLIST_SUB= SVERSION="${SVERSION}" -MAKE_ENV= BLASLIB="${BLASLIB}" -PLIST_SUB= SVERSION="${SVERSION}" - WRKSRC= ${WRKDIR}/lapack-${PORTVERSION} WRKSRC_PROFILE= ${WRKSRC}_PROFILE WRKSRC_SHARED= ${WRKSRC}_SHARED @@ -36,6 +38,11 @@ .include +.if ${PORT_OPTIONS:MFLANG} +EXTRA_PATCHES+= ${PATCHDIR}/flang-patch-make.inc.example +.endif + + .if defined(BLAS_SLAVEPORT) ALL_TARGET= blaslib BLASLIB= ../../libblas.a Index: files/flang-patch-make.inc.example =================================================================== --- files/flang-patch-make.inc.example (nonexistent) +++ files/flang-patch-make.inc.example (working copy) @@ -0,0 +1,17 @@ +--- make.inc.example.orig 2018-05-05 11:59:27.891022000 -0700 ++++ make.inc.example 2018-05-05 11:59:38.966638000 -0700 +@@ -22,11 +22,11 @@ + # Timer for the SECOND and DSECND routines + # + # Default : SECOND and DSECND will use a call to the EXTERNAL FUNCTION ETIME +-#TIMER = EXT_ETIME ++TIMER = EXT_ETIME + # For RS6K : SECOND and DSECND will use a call to the EXTERNAL FUNCTION ETIME_ + # TIMER = EXT_ETIME_ + # For gfortran compiler: SECOND and DSECND will use a call to the INTERNAL FUNCTION ETIME +-TIMER = INT_ETIME ++#TIMER = INT_ETIME + # If your Fortran compiler does not provide etime (like Nag Fortran Compiler, etc...) + # SECOND and DSECND will use a call to the INTERNAL FUNCTION CPU_TIME + # TIMER = INT_CPU_TIME + Property changes on: files/flang-patch-make.inc.example ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property