diff options
author | Brendan Fabeny <bf@FreeBSD.org> | 2010-08-30 07:26:27 +0000 |
---|---|---|
committer | Brendan Fabeny <bf@FreeBSD.org> | 2010-08-30 07:26:27 +0000 |
commit | 622b77a49217b2c32e0ca1a1fcf9c27e1a6e2c8b (patch) | |
tree | cf5e92f12d3721d0ad0808b05ad3ea3421f0bcf5 /math | |
parent | d0ff27c8aa979c01be038187012cb6fbdc4ad093 (diff) | |
download | ports-622b77a49217b2c32e0ca1a1fcf9c27e1a6e2c8b.tar.gz ports-622b77a49217b2c32e0ca1a1fcf9c27e1a6e2c8b.zip |
Notes
Diffstat (limited to 'math')
-rw-r--r-- | math/blas/Makefile | 26 | ||||
-rw-r--r-- | math/blas/files/makefile.lib | 9 |
2 files changed, 20 insertions, 15 deletions
diff --git a/math/blas/Makefile b/math/blas/Makefile index 86d58ff4b142..135967987392 100644 --- a/math/blas/Makefile +++ b/math/blas/Makefile @@ -7,11 +7,13 @@ PORTNAME= blas PORTVERSION= 1.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= math MASTER_SITES= http://www.netlib.org/blas/ \ + http://www.mirrorservice.org/sites/netlib.bell-labs.com/netlib/blas/ \ ftp://ftp.mirrorservice.org/sites/netlib.bell-labs.com/netlib/blas/ \ - ftp://netlib.bell-labs.com/netlib/blas/ + http://netlib.sandia.gov/blas/ \ + http://www.netlib.no/netlib/blas/ DISTNAME= ${PORTNAME} EXTRACT_SUFX= .tgz @@ -21,11 +23,23 @@ COMMENT= Basic Linear Algebra, level 1, 2, and 3 USE_LDCONFIG= yes USE_FORTRAN= yes WRKSRC= ${WRKDIR}/BLAS +SHLIB_MAJOR= 2 -PLIST_FILES= lib/libblas.a lib/libblas.so lib/libblas.so.2 +PLIST_FILES= lib/libblas.a lib/libblas.so lib/libblas.so.${SHLIB_MAJOR} -do-configure: - @${INSTALL_DATA} ${FILESDIR}/makefile.lib ${WRKSRC}/Makefile - @${REINPLACE_CMD} -e 's+@FFLAGS@+${FFLAGS}+g' ${WRKSRC}/Makefile +LDFLAGS+= ${FFLAGS} +LDADD ?= -lgfortran -lm +MAKE_ENV+= LDADD="${LDADD}" LDFLAGS="${LDFLAGS}" \ + SHLIB_MAJOR="${SHLIB_MAJOR}" +.for _u in AR NM RANLIB +MAKE_ENV+= ${_u}="${LOCALBASE}/bin/${_u:L}" +.endfor + +.if !(defined(NOPROFILE) || defined(NO_PROFILE) || defined(WITHOUT_PROFILE)) +PLIST_FILES+= lib/libblas_p.a +.endif + +post-patch: + @${CP} ${FILESDIR}/makefile.lib ${WRKSRC}/Makefile .include <bsd.port.mk> diff --git a/math/blas/files/makefile.lib b/math/blas/files/makefile.lib index 847d8039ee0a..aa4cd504781e 100644 --- a/math/blas/files/makefile.lib +++ b/math/blas/files/makefile.lib @@ -1,18 +1,9 @@ # @(#)Makefile 5.7 (Berkeley) 6/27/91 -FFLAGS= @FFLAGS@ LIBDIR= ${PREFIX}/lib -.if (${OSVERSION} > 600007) -NO_PROFILE= no -.else -NOPROFILE= no -.endif - -SHLIB_MAJOR= 2 # BLAS sources LIB=blas -#NOPROFILE=1 SRCS = caxpy.f ccopy.f cdotc.f cdotu.f cgbmv.f cgemm.f cgemv.f \ cgerc.f cgeru.f chbmv.f chemm.f chemv.f cher.f cher2.f \ cher2k.f cherk.f chpmv.f chpr.f chpr2.f crotg.f cscal.f \ |