aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2007-01-16 11:12:02 +0800
committermaho <maho@FreeBSD.org>2007-01-16 11:12:02 +0800
commit1eb4efa65dc2b816c8cb11d44357d7da12f767ab (patch)
tree11be46bfb815c74a09bfd581bdd4591d5661a1cb
parent0b8994d29e11464331b8776156c3a2cd0425d032 (diff)
downloadfreebsd-ports-gnome-1eb4efa65dc2b816c8cb11d44357d7da12f767ab.tar.gz
freebsd-ports-gnome-1eb4efa65dc2b816c8cb11d44357d7da12f767ab.tar.zst
freebsd-ports-gnome-1eb4efa65dc2b816c8cb11d44357d7da12f767ab.zip
* Build fix [1]
* atlas/blas are detected correctly. Submitted by: kris via pointy hat [1].
-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."