diff options
author | Tijl Coosemans <tijl@FreeBSD.org> | 2014-02-16 17:15:31 +0000 |
---|---|---|
committer | Tijl Coosemans <tijl@FreeBSD.org> | 2014-02-16 17:15:31 +0000 |
commit | 564a799c7173c288d4d3a9be78ac3d2db983d512 (patch) | |
tree | 49e521faa408bc4bd163bfb0febf91e262772c1c /benchmarks/himenobench | |
parent | af1790bfbbcd5831281907db9c04f3776b8d601c (diff) |
Notes
Diffstat (limited to 'benchmarks/himenobench')
-rw-r--r-- | benchmarks/himenobench/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/benchmarks/himenobench/Makefile b/benchmarks/himenobench/Makefile index b610c1782ced..8d02156243db 100644 --- a/benchmarks/himenobench/Makefile +++ b/benchmarks/himenobench/Makefile @@ -22,9 +22,10 @@ USE_LHA= yes BUILD_DEPENDS= ${LOCALBASE}/intel_cc_80/bin/icc:${PORTSDIR}/lang/icc .endif -USE_FORTRAN= yes .if defined(WITH_IFC) -USE_FORTRAN= ifort +USES+= fortran:ifort +.else +USES+= fortran .endif NO_STAGE= yes @@ -42,7 +43,7 @@ PLIST_SUB+= WITH_ICC="" .else PLIST_SUB+= WITH_ICC="@comment " .endif -.if ${USE_FORTRAN} == ifort +.if defined(WITH_IFC) FFLAGS_IFC+= -O3 -tpp7 -axN -Vaxlib -ipo IFC= ${LOCALBASE}/intel_fc_80/bin/ifort PLIST_SUB+= WITH_IFC="" @@ -50,14 +51,14 @@ PLIST_SUB+= WITH_IFC="" PLIST_SUB+= WITH_IFC="@comment " .endif -.if ${USE_FORTRAN} != yes +.if defined(WITH_IFC) PLIST_SUB+= WITH_GFORTRAN="@comment " .else PLIST_SUB+= WITH_GFORTRAN="" .endif do-build: -.if ${USE_FORTRAN} == yes +.if ! defined(WITH_IFC) cd ${WRKSRC} ; ${FC} ${FFLAGS} -o himenobmtxp himenobmtxp.f90 .endif # cd ${WRKSRC} ; ${FC} ${FFLAGS} -o himenobmtxp_xl himenobmtxp_xl.f #Too large @@ -87,7 +88,7 @@ do-build: .endif do-install: # ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_xl ${PREFIX}/bin #Too large -.if ${USE_FORTRAN} == yes +.if ! defined(WITH_IFC) @${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp ${PREFIX}/bin .endif @${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_l ${PREFIX}/bin |