diff options
author | Maho Nakata <maho@FreeBSD.org> | 2004-08-16 08:55:50 +0000 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2004-08-16 08:55:50 +0000 |
commit | 11eeff60e169158106380c0bae4c53e0cd5a8954 (patch) | |
tree | 3298bb6de3ae4a5bece194b83d6226ca0a767140 /math/sdpa | |
parent | 9b29201b2c43f2d6e0ac1e5c43075c36aee51040 (diff) | |
download | ports-11eeff60e169158106380c0bae4c53e0cd5a8954.tar.gz ports-11eeff60e169158106380c0bae4c53e0cd5a8954.zip |
Notes
Diffstat (limited to 'math/sdpa')
-rw-r--r-- | math/sdpa/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/math/sdpa/Makefile b/math/sdpa/Makefile index d4cdabe6ab2a..4ddceae7fb8f 100644 --- a/math/sdpa/Makefile +++ b/math/sdpa/Makefile @@ -22,6 +22,9 @@ EXTRACT_ONLY= ${PORTNAME}.${PORTVERSION}.src.tar.gz MAINTAINER= maho@FreeBSD.org COMMENT= SDPA(SemiDefinite Programming Algorithm) Very efficent SDP Solver +.if defined(USE_ICC) +BUILD_DEPENDS= ${LOCALBASE}/intel_cc_80/bin/icc:${PORTSDIR}/lang/icc +.endif LIB_DEPENDS= atlas:${PORTSDIR}/math/atlas RESTRICTED= "unsure distribution condition" @@ -32,16 +35,24 @@ USE_REINPLACE= yes WRKSRC= ${WRKDIR}/${PORTNAME} LAPACK= -lalapack CBLAS= -lcblas -lf77blas -latlas -lg2c +#USE_ICC= yes .if defined(WITH_OPTIMIZED_FLAGS) CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -Wno-multichar .if (${MACHINE_ARCH} == "i386") -CFLAGS+=-mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3 -CXXFLAGS+=-mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3 +CFLAGS+= -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3 +CXXFLAGS+= -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3 .endif # i386 .endif +.if defined(USE_ICC) +CC= ${LOCALBASE}/intel_cc_80/bin/icc +CXX= ${LOCALBASE}/intel_cc_80/bin/icpc +CFLAGS= -O3 -tpp7 -xiMKW -Vaxlib +CXXFLAGS= -O3 -tpp7 -xiMKW -Vaxlib +.endif + pre-build: ${CP} ${FILESDIR}/Makefile ${WRKDIR} @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \ |