2013-03-11 07:20:26 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.22 2013/03/11 11:23:54 espie Exp $
|
2005-12-03 16:56:25 -05:00
|
|
|
|
2007-09-15 14:44:36 -04:00
|
|
|
COMMENT= Basic Linear Algebra Subprograms
|
2005-12-03 16:56:25 -05:00
|
|
|
|
2006-11-03 03:29:00 -05:00
|
|
|
VERSION= 1.0
|
2005-12-03 16:56:25 -05:00
|
|
|
DISTNAME= blas
|
2010-07-18 06:30:41 -04:00
|
|
|
PKGNAME= ${DISTNAME}-${VERSION}
|
2012-09-01 08:02:26 -04:00
|
|
|
REVISION= 6
|
2010-08-19 17:23:29 -04:00
|
|
|
SHARED_LIBS= blas 2.0
|
2005-12-24 09:45:38 -05:00
|
|
|
|
2005-12-03 16:56:25 -05:00
|
|
|
CATEGORIES= math
|
2006-04-01 14:02:23 -05:00
|
|
|
DISTFILES= blas.tgz manpages.tgz:0
|
2005-12-03 16:56:25 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.netlib.org/blas/
|
|
|
|
|
|
|
|
# freely available
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2011-05-13 10:52:27 -04:00
|
|
|
MASTER_SITES= http://spacehopper.org/mirrors/blas-20110419/ \
|
|
|
|
ftp://ftp.netlib.org/blas/ \
|
2005-12-03 16:56:25 -05:00
|
|
|
ftp://netlib.bell-labs.com/netlib/blas/ \
|
|
|
|
http://www.netlib.no/netlib/blas/
|
2006-04-01 14:02:23 -05:00
|
|
|
MASTER_SITES0= ${MASTER_SITES:S/blas/lapack/}
|
2005-12-03 16:56:25 -05:00
|
|
|
EXTRACT_SUFX= .tgz
|
2006-11-03 03:29:00 -05:00
|
|
|
DIST_SUBDIR= ${DISTNAME}-${VERSION}
|
2010-08-19 17:23:29 -04:00
|
|
|
WRKDIST= ${WRKDIR}/BLAS
|
2005-12-03 16:56:25 -05:00
|
|
|
|
2010-05-26 12:15:27 -04:00
|
|
|
MODULES= fortran
|
2010-10-23 11:09:57 -04:00
|
|
|
MODFORTRAN_COMPILER = g77
|
2010-05-26 12:15:27 -04:00
|
|
|
BUILD_DEPENDS= ${MODFORTRAN_BUILD_DEPENDS}
|
|
|
|
|
2005-12-03 16:56:25 -05:00
|
|
|
MAKE_FILE= ${FILESDIR}/Makefile
|
2006-04-01 14:02:23 -05:00
|
|
|
MAKE_ENV= SHLIB_MAJOR=${LIBblas_VERSION:R} \
|
2010-06-12 14:00:13 -04:00
|
|
|
SHLIB_MINOR=${LIBblas_VERSION:E} \
|
|
|
|
FC=${FC}
|
2005-12-03 16:56:25 -05:00
|
|
|
FAKE_FLAGS= LIBDIR=${LOCALBASE}/lib DEBUGLIBS=no
|
2010-10-18 16:52:05 -04:00
|
|
|
USE_GROFF = Yes
|
2005-12-03 16:56:25 -05:00
|
|
|
|
2011-05-01 09:43:04 -04:00
|
|
|
MANSRC= ${WRKDIR}/manpages/blas/man/manl
|
2006-04-01 14:02:23 -05:00
|
|
|
|
2006-10-03 02:00:03 -04:00
|
|
|
post-build:
|
2006-04-01 14:02:23 -05:00
|
|
|
@rm -f ${MANSRC}/{lsame,xerbla}.l
|
2007-09-05 11:32:19 -04:00
|
|
|
@perl -pi -e 's/(\.TH\s+\w+)\s+l(.*)/\1 3f\2/' ${MANSRC}/*.l
|
|
|
|
@cd ${MANSRC} && for m in *.l; do mv $$m $${m%\.l}.3f; done
|
2006-04-01 14:02:23 -05:00
|
|
|
|
|
|
|
post-install:
|
2007-09-05 11:32:19 -04:00
|
|
|
${INSTALL_MAN} ${MANSRC}/*.3f ${PREFIX}/man/man3f
|
2006-04-01 14:02:23 -05:00
|
|
|
|
2005-12-03 16:56:25 -05:00
|
|
|
.include <bsd.port.mk>
|