summaryrefslogtreecommitdiff
path: root/math/lapack/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/lapack/Makefile')
-rw-r--r--math/lapack/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/math/lapack/Makefile b/math/lapack/Makefile
index d210764c723..e010fea4bc4 100644
--- a/math/lapack/Makefile
+++ b/math/lapack/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.30 2010/01/30 16:28:00 heinz Exp $
+# $NetBSD: Makefile,v 1.31 2010/03/17 21:47:11 dmcmahill Exp $
DISTNAME= lapack-lite-3.1.1
PKGNAME= lapack-3.1.1
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_NETLIB:=lapack/}
EXTRACT_SUFX= .tgz
@@ -21,6 +21,19 @@ BUILD_TARGET= lapacklib
INSTALLATION_DIRS= lib
+FFLAGS+= -ffloat-store
+
+# With f2c-20090411nb4, libf2c-20090201nb3, we need EXT_ETIME but gcc44-4.4.1nb3
+# needs INT_ETIME. Rather than trying to enumerate all possible fortran compilers,
+# just do a test for it.
+do-configure:
+ @${ECHO_N} "Checking if your fortran compiler has etime() as an intrinsic... "
+ @cd ${WRKDIR} && ${FC} -o etime_test ${FILESDIR}/etime_test.f >${WRKDIR}/etime_test.log 2>&1; \
+ if test $$? -eq 0 ; then \
+ ${ECHO} "TIMER=INT_ETIME" >> ${WRKSRC}/make.inc ; echo "YES" ; else \
+ ${ECHO} "TIMER=EXT_ETIME" >> ${WRKSRC}/make.inc ; echo "NO" ; fi
+ @${ECHO} "See ${WRKDIR}/etime_test.log for details on the test"
+
do-install:
${LIBTOOL} --mode=install ${INSTALL_DATA} ${WRKSRC}/liblapack.la \
${DESTDIR}${PREFIX}/lib