openbsd-ports/math/blas/Makefile

50 lines
1.2 KiB
Makefile
Raw Normal View History

2013-03-11 07:20:26 -04:00
# $OpenBSD: Makefile,v 1.22 2013/03/11 11:23:54 espie Exp $
COMMENT= Basic Linear Algebra Subprograms
VERSION= 1.0
DISTNAME= blas
2010-07-18 06:30:41 -04:00
PKGNAME= ${DISTNAME}-${VERSION}
REVISION= 6
SHARED_LIBS= blas 2.0
2005-12-24 09:45:38 -05:00
CATEGORIES= math
DISTFILES= blas.tgz manpages.tgz:0
HOMEPAGE= http://www.netlib.org/blas/
# freely available
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= http://spacehopper.org/mirrors/blas-20110419/ \
ftp://ftp.netlib.org/blas/ \
ftp://netlib.bell-labs.com/netlib/blas/ \
http://www.netlib.no/netlib/blas/
MASTER_SITES0= ${MASTER_SITES:S/blas/lapack/}
EXTRACT_SUFX= .tgz
DIST_SUBDIR= ${DISTNAME}-${VERSION}
WRKDIST= ${WRKDIR}/BLAS
2010-05-26 12:15:27 -04:00
MODULES= fortran
MODFORTRAN_COMPILER = g77
2010-05-26 12:15:27 -04:00
BUILD_DEPENDS= ${MODFORTRAN_BUILD_DEPENDS}
MAKE_FILE= ${FILESDIR}/Makefile
MAKE_ENV= SHLIB_MAJOR=${LIBblas_VERSION:R} \
SHLIB_MINOR=${LIBblas_VERSION:E} \
FC=${FC}
FAKE_FLAGS= LIBDIR=${LOCALBASE}/lib DEBUGLIBS=no
2010-10-18 16:52:05 -04:00
USE_GROFF = Yes
MANSRC= ${WRKDIR}/manpages/blas/man/manl
post-build:
@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
post-install:
2007-09-05 11:32:19 -04:00
${INSTALL_MAN} ${MANSRC}/*.3f ${PREFIX}/man/man3f
.include <bsd.port.mk>