aboutsummaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2004-08-16 09:33:14 +0000
committerMaho Nakata <maho@FreeBSD.org>2004-08-16 09:33:14 +0000
commit72032bbfdaa9ad8e84fc0a859c27fa2e769a80ca (patch)
tree88cf005364b7ccee09c7985955664233179afaa7 /science
parent2ac4e4e49de37f3855696aed57844684aa5954c0 (diff)
downloadports-72032bbfdaa9ad8e84fc0a859c27fa2e769a80ca.tar.gz
ports-72032bbfdaa9ad8e84fc0a859c27fa2e769a80ca.zip
Notes
Diffstat (limited to 'science')
-rw-r--r--science/2dhf/Makefile20
-rw-r--r--science/2dhf/files/patch-Makefile4
2 files changed, 21 insertions, 3 deletions
diff --git a/science/2dhf/Makefile b/science/2dhf/Makefile
index ea08cf5cedb6..c4bfd66511ec 100644
--- a/science/2dhf/Makefile
+++ b/science/2dhf/Makefile
@@ -17,6 +17,10 @@ MAINTAINER= maho@FreeBSD.org
COMMENT= A Numerical Hartree-Fock Program for Diatomic Molecules
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash2
+.if defined(USE_INTEL)
+BUILD_DEPENDS+= ${LOCALBASE}/intel_fc_80/bin/ifort:${PORTSDIR}/lang/ifc
+BUILD_DEPENDS+= ${LOCALBASE}/intel_cc_80/bin/icc:${PORTSDIR}/lang/icc
+.endif
LIB_DEPENDS= lapack:${PORTSDIR}/math/lapack \
atlas:${PORTSDIR}/math/atlas
@@ -27,6 +31,18 @@ FFLAGS+= -mfancy-math-387
.endif # i386
.endif
+BLAS= -lf77blas -latlas
+.if defined(USE_INTEL)
+FC= ${LOCALBASE}/intel_fc_80/bin/ifort
+CC= ${LOCALBASE}/intel_cc_80/bin/icc
+FFLAGS= -O3 -tpp7 -xiMKW -Vaxlib
+FFLAGS_ADD= -w -132
+CFLAGS= -O3 -tpp7 -xiMKW -Vaxlib
+BLAS+= -lg2c -lm
+.else
+FFLAGS_ADD= -w -ffixed-line-length-none
+.endif
+
pre-everything::
@${ECHO_CMD} "You can optimize by setting WITH_OPTIMIZED_FLAGS=yes."
@@ -41,9 +57,11 @@ do-extract:
post-patch:
@${REINPLACE_CMD} -e 's,%%FC%%,${FC},g ; \
s,%%FFLAGS%%,${FFLAGS},g ; \
+ s,%%FFLAGS_ADD%%,${FFLAGS_ADD},g ; \
s,%%CC%%,${CC},g ; \
s,%%CFLAGS%%,${CFLAGS},g ; \
- s,%%LOCALBASE%%,${LOCALBASE},g' \
+ s,%%LOCALBASE%%,${LOCALBASE},g ;\
+ s,%%BLAS%%,${BLAS},g' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
${WRKSRC}/bin/xhf
diff --git a/science/2dhf/files/patch-Makefile b/science/2dhf/files/patch-Makefile
index 127e1a4c04d9..9b5a382ba630 100644
--- a/science/2dhf/files/patch-Makefile
+++ b/science/2dhf/files/patch-Makefile
@@ -24,8 +24,8 @@
+# -fstrength-reduce -funroll-loops
+# FFLAGS = -O1 -malign-double
+# FFLAGS = -g -C
-+ FFLAGS_ADD = -w -ffixed-line-length-none
-+ FLIB = -L%%LOCALBASE%%/lib -lf77blas -latlas
++ FFLAGS_ADD = %%FFLAGS_ADD%%
++ FLIB = -L%%LOCALBASE%%/lib %%BLAS%%
+ BLAS = yes
+
+ CC = %%CC%%