From f7453d1f981a1ed4030d214e48c7c23cd8beb080 Mon Sep 17 00:00:00 2001 From: maho Date: Sat, 14 Mar 2015 07:00:38 +0000 Subject: Uses blaslapack.mk (*), and update to 2.5.4. Submitted by: thierry@ (*) --- math/lapack++/Makefile | 52 ++++++++++++++++++++----------------------------- math/lapack++/distinfo | 4 ++-- math/lapack++/pkg-plist | 8 ++++---- 3 files changed, 27 insertions(+), 37 deletions(-) (limited to 'math') diff --git a/math/lapack++/Makefile b/math/lapack++/Makefile index 29b0b00a42ea..8790dc8b245f 100644 --- a/math/lapack++/Makefile +++ b/math/lapack++/Makefile @@ -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 - -.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 +REFERENCE_DESC= Blas / Lapack +REFERENCE_USES= blaslapack:netlib -.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 +OBLAS_DESC= Openblas +OBLAS_USES= blaslapack:openblas 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 +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 + +.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 + 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 +.include diff --git a/math/lapack++/distinfo b/math/lapack++/distinfo index 480e1b21e048..06afd7128f05 100644 --- a/math/lapack++/distinfo +++ b/math/lapack++/distinfo @@ -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 diff --git a/math/lapack++/pkg-plist b/math/lapack++/pkg-plist index 3d1d6bea25b0..a68f26155648 100644 --- a/math/lapack++/pkg-plist +++ b/math/lapack++/pkg-plist @@ -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 -- cgit