summaryrefslogtreecommitdiffstats
path: root/math/lapack
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2000-09-22 11:40:06 +0000
committertg <tg@FreeBSD.org>2000-09-22 11:40:06 +0000
commit1ddc86ed186c18bb9c6385ec3e69609fb486764b (patch)
tree54f418df6b28cf000e4e94674a7bcef2c9c6f503 /math/lapack
parentc5007b1604051ec2469e6d064e2e1a390e82219f (diff)
downloadFreeBSD-ports-1ddc86ed186c18bb9c6385ec3e69609fb486764b.zip
FreeBSD-ports-1ddc86ed186c18bb9c6385ec3e69609fb486764b.tar.gz
Add LDADD=g2c (f2c for -stale) to the makefiles.
Reviewed by: Paul Magwene <paul.magwene@yale.edu> Approved by: jmz
Diffstat (limited to 'math/lapack')
-rw-r--r--math/lapack/Makefile2
-rw-r--r--math/lapack/scripts/configure20
2 files changed, 19 insertions, 3 deletions
diff --git a/math/lapack/Makefile b/math/lapack/Makefile
index 9b996e9..4dbf79f 100644
--- a/math/lapack/Makefile
+++ b/math/lapack/Makefile
@@ -206,6 +206,8 @@ MANL= cbdsqr.l cgbbrd.l cgbcon.l cgbequ.l cgbmv.l cgbrfs.l cgbsv.l cgbsvx.l \
.include <bsd.port.pre.mk>
+CONFIGURE_ENV+= OSVERSION=${OSVERSION}
+
pre-fetch:
@${ECHO} "You can override FC and FFLAGS on the command line."
.if !defined(ENABLE_TESTING) || ${ENABLE_TESTING} != "YES"
diff --git a/math/lapack/scripts/configure b/math/lapack/scripts/configure
index af2b847..c11a546 100644
--- a/math/lapack/scripts/configure
+++ b/math/lapack/scripts/configure
@@ -1,12 +1,22 @@
+if [ ${OSVERSION} -lt 400012 ]; then
+ LIBG2C=f2c
+else
+ LIBG2C=g2c
+fi
+
cd $WRKSRC/BLAS/SRC || exit 1
mv Makefile Makefile.old
-cat >Makefile <<'END'
+cat >Makefile <<END
LIB= blas
SHLIB_MAJOR= 2
SHLIB_MINOR= 0
+LDADD= -l${LIBG2C}
+
+END
+cat >>Makefile <<'END'
SBLAS1= isamax.f sasum.f saxpy.f scopy.f sdot.f snrm2.f \
srot.f srotg.f sscal.f sswap.f
CBLAS1 = scasum.f scnrm2.f icamax.f caxpy.f ccopy.f \
@@ -49,11 +59,15 @@ END
cd $WRKSRC/SRC || exit 1
mv Makefile Makefile.old
-cat >Makefile <<'END'
+cat >Makefile <<END
LIB= lapack
SHLIB_MAJOR= 3
SHLIB_MINOR= 0
-
+
+LDADD= -l${LIBG2C}
+
+END
+cat >>Makefile <<'END'
ALLAUX = ilaenv.f ieeeck.f lsame.f lsamen.f xerbla.f etime_.c
SCLAUX = \
OpenPOWER on IntegriCloud