summaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2004-08-16 11:03:07 +0000
committermaho <maho@FreeBSD.org>2004-08-16 11:03:07 +0000
commit42a2a83b721ecf6f182125a19d1893bef4a94430 (patch)
treec241d5351b85ab7bef46e924aab2d53b201bc620 /science
parent69381d34c3ab5281abb3ed4eb8179c7148076648 (diff)
downloadFreeBSD-ports-42a2a83b721ecf6f182125a19d1893bef4a94430.zip
FreeBSD-ports-42a2a83b721ecf6f182125a19d1893bef4a94430.tar.gz
Add intel C/C++ compiler support
Diffstat (limited to 'science')
-rw-r--r--science/mpqc/Makefile26
1 files changed, 22 insertions, 4 deletions
diff --git a/science/mpqc/Makefile b/science/mpqc/Makefile
index 869e7dd..f1ada80 100644
--- a/science/mpqc/Makefile
+++ b/science/mpqc/Makefile
@@ -18,21 +18,39 @@ DISTFILES+= mpqc-man-${PORTVERSION}.tar.gz mpqc-html-${PORTVERSION}.tar.gz
MAINTAINER= maho@FreeBSD.org
COMMENT= The massively parallel quantum computing library and program
+.if defined(USE_ICC)
+BUILD_DEPENDS+= ${LOCALBASE}/intel_cc_80/bin/icc:${PORTSDIR}/lang/icc
+.endif
+
LIB_DEPENDS= atlas:${PORTSDIR}/math/atlas
USE_BISON= yes
GNU_CONFIGURE= yes
USE_AUTOCONF_VER=259
+.if defined(USE_ICC)
+CC= ${LOCALBASE}/intel_cc_80/bin/icc
+CXX= ${LOCALBASE}/intel_cc_80/bin/icpc
+CFLAGS= -O3 -tpp7 -xMKW -Vaxlib
+CXXFLAGS= -O3 -tpp7 -xMKW -Vaxlib
+.endif
+BLAS= -lf77blas -latlas
+LAPACK= -lalapack -lcblas
+
CONFIGURE_ARGS= --with-cc=${CC} \
--with-cxx=${CXX} \
--with-f77=${FC} \
--with-libdirs=-L${LOCALBASE}/lib \
- --with-blas="-lf77blas -latlas" \
- --with-lapack="-lalapack -lcblas" \
+ --with-blas="${BLAS}" \
+ --with-lapack="${LAPACK}" \
--with-coptflags="${CFLAGS}" \
--with-cxxoptflags="${CXXFLAGS}" \
- --with-f77optflags="${FFLAGS}"
+ --with-f77optflags="${FFLAGS}" \
+ --with-include="-I${WRKDIR}"
+.if defined(USE_ICC)
+CONFIGURE_ARGS+=--with-libs="-lsvml"
+.endif
+
USE_PERL5= yes
USE_GMAKE= yes
ALL_TARGET= # empty
@@ -53,7 +71,7 @@ CXXFLAGS+= -mfancy-math-387
pre-configure:
@${ECHO} "You can optimize by setting WITH_OPTIMIZED_FLAGS=yes."
-
+ @${CP} ${FILESDIR}/FlexLexer.h ${WRKDIR}
do-install:
@cd ${WRKSRC} ; ${GMAKE} install
@cd ${WRKSRC} ; ${GMAKE} install_devel
OpenPOWER on IntegriCloud