diff options
author | bf <bf@FreeBSD.org> | 2010-08-30 15:26:27 +0800 |
---|---|---|
committer | bf <bf@FreeBSD.org> | 2010-08-30 15:26:27 +0800 |
commit | a468bb4725a8daf23945aa88d58b7eee2d671b30 (patch) | |
tree | 38f9282fbf7ab982c2e09bc7d183dfcbecbca192 /math | |
parent | 10ad954826a370dc9414bb689eb4e91a68338b48 (diff) | |
download | freebsd-ports-gnome-a468bb4725a8daf23945aa88d58b7eee2d671b30.tar.gz freebsd-ports-gnome-a468bb4725a8daf23945aa88d58b7eee2d671b30.tar.zst freebsd-ports-gnome-a468bb4725a8daf23945aa88d58b7eee2d671b30.zip |
Respect LDFLAGS; add ELF DT_NEEDED tags to shared libraries;
use one toolchain consistently; build profiling libraries
PR: 117923
Approved by: maho (maintainer), makc (co-mentor)
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 \ |