diff --git a/biology/psi88/Makefile b/biology/psi88/Makefile index c0853aae6941..606673d13b20 100644 --- a/biology/psi88/Makefile +++ b/biology/psi88/Makefile @@ -11,7 +11,6 @@ WWW= http://zarbi.chem.yale.edu/products/psi88/index.shtml USES= fortran tar:Z MAKE_ARGS= BIN=${STAGEDIR}${PREFIX}/bin -FFLAGS+= -std=legacy PLIST_FILES= bin/PSI1 bin/PSICON bin/PSI2CT bin/PSI2HP bin/PSI2PS bin/PSI2 \ bin/PREPLOT bin/preplot bin/rpsi1 bin/rpsi2 bin/rpsicon @@ -20,6 +19,12 @@ PORTEXAMPLES= * OPTIONS_DEFINE= DOCS EXAMPLES +.include + +.if ${FORTRAN_DEFAULT} == gfortran +FFLAGS+= -std=legacy +.endif + post-patch: @${REINPLACE_CMD} -e 's/f77/$${FC}/' -e 's/LFLAGS/LDFLAGS/' \ ${WRKSRC}/src/makefile @@ -42,4 +47,4 @@ post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} -.include +.include