aboutsummaryrefslogtreecommitdiffstats
path: root/math/blas/Makefile
blob: ae585e0808970120db3f70384655357d3f3168f4 (plain) (blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# New ports collection makefile for:    blas
# Date created:         27 October 1994
# Whom:                 ljo
#
# $FreeBSD$
#

PORTNAME=   blas
PORTVERSION=    1.0
PORTREVISION=   6
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/ \
        http://netlib.sandia.gov/blas/ \
        http://www.netlib.no/netlib/blas/
DISTNAME=   ${PORTNAME}
EXTRACT_SUFX=   .tgz

MAINTAINER= maho@FreeBSD.org
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.${SHLIB_MAJOR}

LDFLAGS+=   ${FFLAGS}
LDADD ?=    -lgfortran -lm
SRCCONF=    ${NONEXISTENT}
MAKE_ENV+=  LDADD="${LDADD}" LDFLAGS="${LDFLAGS}" \
        SHLIB_MAJOR="${SHLIB_MAJOR}" SRCCONF="${SRCCONF}"
.for _u in AR NM RANLIB
MAKE_ENV+=  ${_u}="${LOCALBASE}/bin/${_u:L}"
.endfor

OPTIONS=    PROFILE "Build and install a profiling library" Off

.include <bsd.port.options.mk>

.if defined(WITH_PROFILE)
.if defined(NOPROFILE) || defined(NO_PROFILE) || defined(WITHOUT_PROFILE)
IGNORE =    you have defined WITH_PROFILE, but have also defined\
WITHOUT_PROFILE, NOPROFILE, or NO_PROFILE
.elif !exists(/usr/lib/libc_p.a)
IGNORE  =   you have chosen WITH_PROFILE, but have not installed the\
base system profiling libraries
.endif
PLIST_FILES+=   lib/libblas_p.a
.else
MAKE_ENV+=  NO_PROFILE=
.endif

post-patch:
    @${CP} ${FILESDIR}/makefile.lib ${WRKSRC}/Makefile

.include <bsd.port.mk>