From ab9a8ce678d0b4ff0c01607f05ce621722a0072a Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 27 Jun 2015 07:08:13 +0000 Subject: Pass -freal-loops if the compiler is clang or gcc. This does not fix the build, but it gets further now. --- biology/mopac/Makefile | 7 ++++++- biology/mopac/files/Makefile | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'biology/mopac') diff --git a/biology/mopac/Makefile b/biology/mopac/Makefile index 4281972e968..bfc83e8aed6 100644 --- a/biology/mopac/Makefile +++ b/biology/mopac/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2012/09/11 20:32:13 asau Exp $ +# $NetBSD: Makefile,v 1.8 2015/06/27 07:08:13 dholland Exp $ # DISTNAME= mopac7 @@ -25,6 +25,11 @@ PKG_FC= f2c-f77 INSTALLATION_DIRS= bin share/mopac7/sample +.include "../../mk/compiler.mk" +.if !empty(PKGSRC_COMPILER:Mclang) || !empty(PKGSRC_COMPILER:Mgcc) +ALL_ENV+= PKGSRC_FFLAGS=-freal-loops +.endif + pre-build: cp ${WRKSRC}/esp.rof ${WRKSRC}/esp.f rm -f ${WRKSRC}/Makefile diff --git a/biology/mopac/files/Makefile b/biology/mopac/files/Makefile index e82b550a7d9..5833f384647 100644 --- a/biology/mopac/files/Makefile +++ b/biology/mopac/files/Makefile @@ -8,7 +8,7 @@ # make clean Clean up disk to minimum config # #F77 = -FFLAGS = -O2 -w +FFLAGS = -O2 -w $(PKGSRC_FFLAGS) HDRS = SIZES SRCS := $(shell ls *.f) CSRCS := $(shell ls *.c) -- cgit v1.2.3