summaryrefslogtreecommitdiff
path: root/math/blas/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-07 07:14:24 +0000
committerjlam <jlam>2008-03-07 07:14:24 +0000
commit2b88daf8e8cb022912140235dacd60d6e6d7f4e2 (patch)
treeb143e6c93f99c74948d05a90f011706c5e1ea725 /math/blas/Makefile
parentfcd820dd9974d6aa09cf927957c5bff4f554561d (diff)
downloadpkgsrc-2b88daf8e8cb022912140235dacd60d6e6d7f4e2.tar.gz
Update math/blas to version 1.1. Changes from version 1.0 include:
- The addition of several new routines for complex number operations. - Minor changes in the function implementations to use the new operations. + Support user-destdir installation. + Move Makefile for building the BLAS library from patch-aa into files/Makefile.blas. It's simpler to edit this file than to create new patches.
Diffstat (limited to 'math/blas/Makefile')
-rw-r--r--math/blas/Makefile20
1 files changed, 14 insertions, 6 deletions
diff --git a/math/blas/Makefile b/math/blas/Makefile
index d1cedc2f21a..9de386e52b3 100644
--- a/math/blas/Makefile
+++ b/math/blas/Makefile
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.23 2007/12/02 12:14:15 wiz Exp $
+# $NetBSD: Makefile,v 1.24 2008/03/07 07:14:24 jlam Exp $
#
DISTNAME= blas
-PKGNAME= blas-1.0
-PKGREVISION= 3
+PKGNAME= blas-1.1
CATEGORIES= math
MASTER_SITES= ftp://ftp.netlib.org/blas/
EXTRACT_SUFX= .tgz
@@ -13,11 +12,20 @@ HOMEPAGE= http://www.netlib.org/blas/
COMMENT= Basic Linear Algebra Subprograms (Fortran)
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
-WRKSRC= ${WRKDIR}
+DIST_SUBDIR= ${PKGNAME_NOREV}
+WRKSRC= ${WRKDIR}/BLAS
USE_LANGUAGES= c fortran
-USE_LIBTOOL= YES
+USE_LIBTOOL= yes
-INSTALLATION_DIRS= lib
+# 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"