summaryrefslogtreecommitdiff
path: root/biology
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2015-06-27 07:08:13 +0000
committerdholland <dholland@pkgsrc.org>2015-06-27 07:08:13 +0000
commitab9a8ce678d0b4ff0c01607f05ce621722a0072a (patch)
treec65a093c5bdec277a5ff96a485e4b28b8cc52bb4 /biology
parent9c4d52164d59ebd8cbdbbaca72056161810de8de (diff)
downloadpkgsrc-ab9a8ce678d0b4ff0c01607f05ce621722a0072a.tar.gz
Pass -freal-loops if the compiler is clang or gcc. This does not fix
the build, but it gets further now.
Diffstat (limited to 'biology')
-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)