Uses blaslapack.mk (*), and update to 2.5.4.

Submitted by:	thierry@ (*)
This commit is contained in:
Maho Nakata 2015-03-14 07:00:38 +00:00
parent a76762b827
commit 9f96e2003a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=381252
3 changed files with 28 additions and 38 deletions

View File

@ -2,15 +2,13 @@
# $FreeBSD$
PORTNAME= lapack++
PORTVERSION= 2.5.3
PORTREVISION= 8
PORTVERSION= 2.5.4
CATEGORIES= math
MASTER_SITES= SF/lapackpp/lapackpp/${PORTVERSION} \
MASTER_SITES= SF/lapackpp \
http://math.nist.gov/lapack++/:doc
DISTNAME= lapackpp-${PORTVERSION}
DIST_SUBDIR= lapackpp
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= maho@FreeBSD.org
COMMENT= Linear Algebra PACKage in C++, a wrapper for LAPACK
@ -18,39 +16,31 @@ COMMENT= Linear Algebra PACKage in C++, a wrapper for LAPACK
USES= fortran gmake pathfix libtool
OPTIONS_DEFINE= DOCS
OPTIONS_RADIO= BLAS
OPTIONS_RADIO_BLAS= REFERENCE OBLAS
OPTIONS_DEFAULT= REFERENCE
.include <bsd.port.pre.mk>
REFERENCE_DESC= Blas / Lapack
REFERENCE_USES= blaslapack:netlib
OBLAS_DESC= Openblas
OBLAS_USES= blaslapack:openblas
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
BLAS_LIB= -L${LOCALBASE}/lib ${BLASLIB}
LAPACK_LIB= -L${LOCALBASE}/lib ${LAPACKLIB}
#lapack++ forces to use atlas when detected, so we should disable here.
CONFIGURE_ARGS+= --with-blas="${BLAS_LIB}" --with-lapack="${LAPACK_LIB}" --disable-atlas --enable-static
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} lapack++.ps.gz:doc lapackpp1_1.ps.gz:doc \
lapackppman1_1.ps.gz:doc lapack++_install.ps.gz:doc
.endif
.if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS)
WITH_ATLAS= yes
.endif
.if defined(WITH_ATLAS)
LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas
.else
LIB_DEPENDS+= libblas.so:${PORTSDIR}/math/blas
LIB_DEPENDS+= liblapack.so:${PORTSDIR}/math/lapack
.endif
GNU_CONFIGURE= yes
.if defined(WITH_ATLAS)
BLAS_LIB= -L${LOCALBASE}/lib -lf77blas
LAPACK_LIB= -L${LOCALBASE}/lib -lalapack -lcblas
.else
BLAS_LIB= -L${LOCALBASE}/lib -lblas
LAPACK_LIB= -L${LOCALBASE}/lib -llapack
.endif
#BLAS_LIB= -L${LOCALBASE}/lib -lptf77blas
#LAPACK_LIB= -L${LOCALBASE}/lib -lalapack -lptcblas
#lapack++ forces to use atlas when detected, so we should disable here.
CONFIGURE_ARGS+= --with-blas="${BLAS_LIB}" --with-lapack="${LAPACK_LIB}" --disable-atlas --enable-static
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/lapack++.ps.gz ${STAGEDIR}${DOCSDIR}
@ -58,4 +48,4 @@ post-install:
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/lapackpp1_1.ps.gz ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/lapackppman1_1.ps.gz ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
SHA256 (lapackpp/lapackpp-2.5.3.tar.gz) = 7ef4cb4b4768bb6227f5f95b33d3ff93f6ddcd4fbf8a661917bb538b1554daeb
SIZE (lapackpp/lapackpp-2.5.3.tar.gz) = 571923
SHA256 (lapackpp/lapackpp-2.5.4.tar.gz) = 776c4b2b09412479e1559bcec08a71cfbb162dfbe3f6fbd4da52cef3039cddbc
SIZE (lapackpp/lapackpp-2.5.4.tar.gz) = 635178
SHA256 (lapackpp/lapack++.ps.gz) = 97ee0b6301c076722a4fe8f97f25a815b8cd4ea84d34152fea2ce32f32441abf
SIZE (lapackpp/lapack++.ps.gz) = 71184
SHA256 (lapackpp/lapackpp1_1.ps.gz) = 956865d88d258ab91a4671b30dd860647a8df62be0aa5645279d5aae511d4549

View File

@ -66,7 +66,7 @@ lib/liblapackpp.so.14
lib/liblapackpp.so.14.2.0
libdata/pkgconfig/lapackpp.pc
share/aclocal/acx_lapackpp.m4
%%PORTDOCS%%share/doc/lapack++/lapack++.ps.gz
%%PORTDOCS%%share/doc/lapack++/lapack++_install.ps.gz
%%PORTDOCS%%share/doc/lapack++/lapackpp1_1.ps.gz
%%PORTDOCS%%share/doc/lapack++/lapackppman1_1.ps.gz
%%PORTDOCS%%%%DOCSDIR%%/lapack++.ps.gz
%%PORTDOCS%%%%DOCSDIR%%/lapack++_install.ps.gz
%%PORTDOCS%%%%DOCSDIR%%/lapackpp1_1.ps.gz
%%PORTDOCS%%%%DOCSDIR%%/lapackppman1_1.ps.gz