1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

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)
This commit is contained in:
Brendan Fabeny 2010-08-30 07:26:27 +00:00
parent d0ff27c8aa
commit 622b77a492
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=260182
2 changed files with 20 additions and 15 deletions

View File

@ -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>

View File

@ -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 \