aboutsummaryrefslogtreecommitdiff
path: root/math/blas
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2010-09-19 22:23:22 +0000
committerMaho Nakata <maho@FreeBSD.org>2010-09-19 22:23:22 +0000
commit6e6899e26e894e0ede977ba2e587bf3e9ce84ee2 (patch)
treedd2bdbac40fc53f567c43e9a5fa094b0096321c2 /math/blas
parent14655aadea5b28fb4007d80fbef5cb9412049fef (diff)
downloadports-6e6899e26e894e0ede977ba2e587bf3e9ce84ee2.tar.gz
ports-6e6899e26e894e0ede977ba2e587bf3e9ce84ee2.zip
Notes
Diffstat (limited to 'math/blas')
-rw-r--r--math/blas/Makefile20
1 files changed, 17 insertions, 3 deletions
diff --git a/math/blas/Makefile b/math/blas/Makefile
index 135967987392..0c77a2a3e457 100644
--- a/math/blas/Makefile
+++ b/math/blas/Makefile
@@ -7,7 +7,7 @@
PORTNAME= blas
PORTVERSION= 1.0
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= math
MASTER_SITES= http://www.netlib.org/blas/ \
http://www.mirrorservice.org/sites/netlib.bell-labs.com/netlib/blas/ \
@@ -29,14 +29,28 @@ 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}"
+ SHLIB_MAJOR="${SHLIB_MAJOR}" SRCCONF="${SRCCONF}"
.for _u in AR NM RANLIB
MAKE_ENV+= ${_u}="${LOCALBASE}/bin/${_u:L}"
.endfor
-.if !(defined(NOPROFILE) || defined(NO_PROFILE) || defined(WITHOUT_PROFILE))
+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+= WITHOUT_PROFILE=
.endif
post-patch: