summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--biology/mopac/Makefile7
-rw-r--r--biology/mopac/files/Makefile2
2 files changed, 7 insertions, 2 deletions
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)