diff options
author | Thomas Gellekum <tg@FreeBSD.org> | 2000-09-22 11:40:06 +0000 |
---|---|---|
committer | Thomas Gellekum <tg@FreeBSD.org> | 2000-09-22 11:40:06 +0000 |
commit | 564e16e4956f9aa85dc2b7ba9196e3f389fe135d (patch) | |
tree | 448b07da3060310ea53d0b8833548558547991f3 /math | |
parent | 54d149d0d91f23248afeea04deec64c90830a27b (diff) |
Notes
Diffstat (limited to 'math')
-rw-r--r-- | math/lapack/Makefile | 2 | ||||
-rw-r--r-- | math/lapack/scripts/configure | 20 |
2 files changed, 19 insertions, 3 deletions
diff --git a/math/lapack/Makefile b/math/lapack/Makefile index 9b996e9ebd1c..4dbf79f3660a 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 af2b847ae1e1..c11a54624c46 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 = \ |