summaryrefslogtreecommitdiff
path: root/math/blas/Makefile
blob: c46a4914a4fa7ea17987ce1dd2d10e46000d0b71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $NetBSD: Makefile,v 1.29 2010/07/30 10:36:27 asau Exp $
#

DISTNAME=	blas
PKGNAME=	blas-1.1
PKGREVISION=	2
CATEGORIES=	math
MASTER_SITES=	${MASTER_SITE_NETLIB:=blas/}
EXTRACT_SUFX=	.tgz

MAINTAINER=	adam@NetBSD.org
HOMEPAGE=	http://www.netlib.org/blas/
COMMENT=	Basic Linear Algebra Subprograms (Fortran)

PKG_INSTALLATION_TYPES=	overwrite pkgviews
PKG_DESTDIR_SUPPORT=	user-destdir

DIST_SUBDIR=		${PKGNAME_NOREV}
WRKSRC=			${WRKDIR}/BLAS
USE_LANGUAGES=		c fortran77
USE_LIBTOOL=		yes

# Pass along the major and minor of the version number as the major and
# minor of the shared library to be built.
#
MAKE_ENV+=	SHLIB_MAJOR=${PKGNAME_NOREV:S/${PKGBASE}-//:C/[.].*$//}
MAKE_ENV+=	SHLIB_MINOR=${PKGNAME_NOREV:S/${PKGBASE}-//:C/^.*[.]//}

post-extract:
	cp -f ${FILESDIR}/Makefile.blas ${WRKSRC}/Makefile

.include "../../mk/bsd.pkg.mk"