summaryrefslogtreecommitdiff
path: root/science/dft++
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2007-01-16 03:12:02 +0000
committerMaho Nakata <maho@FreeBSD.org>2007-01-16 03:12:02 +0000
commit710733fcae833bd69a145b4755c2c42e8dc2b629 (patch)
treebb61145cd2409f40cd24d28419aebf22b3b66fef /science/dft++
parent* Build fix [1]. (diff)
* Build fix [1]
* atlas/blas are detected correctly. Submitted by: kris via pointy hat [1].
Notes
Notes: svn path=/head/; revision=182478
Diffstat (limited to 'science/dft++')
-rw-r--r--science/dft++/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/science/dft++/Makefile b/science/dft++/Makefile
index fa43abed0095..a6a53725f434 100644
--- a/science/dft++/Makefile
+++ b/science/dft++/Makefile
@@ -25,8 +25,6 @@ LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-.include <bsd.port.pre.mk>
-
USE_GMAKE= yes
WANT_FORTRAN=yes #dummy but future use
BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
@@ -35,12 +33,14 @@ F77= gfortran42
FORTRANLIBS= -lgfortranbegin -lgfortran
GCCLIBDIR= -L`${CAT} ${WRKSRC}/LIBDIR` -L`${CAT} ${WRKSRC}/LIBDIR`/../../..
+.include <bsd.port.pre.mk>
+
.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
WITH_ATLAS= yes
.endif
.if defined(WITH_ATLAS)
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
-BLAS= -lf77blas -latlas
+BLAS= -lf77blas -latlas -lcblas
LAPACK= -lalapack
.else
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
@@ -60,7 +60,7 @@ OPTIMIZED_FLAGS+= -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boun
pre-patch:
${CP} ${WRKSRC}/makefile ${WRKSRC}/makefile-pw
${CP} ${WRKSRC}/makefile ${WRKSRC}/makefile-wl
- ${DIRNAME} `${FC} -print-libgcc-file-name` > ${WRKSRC}/LIBDIR
+ ${DIRNAME} `${LOCALBASE}/bin/${FC} -print-libgcc-file-name` > ${WRKSRC}/LIBDIR
pre-configure:
@${ECHO} "You can optimize by setting WITH_OPTIMIZED_FLAGS=yes."