diff options
author | Maho Nakata <maho@FreeBSD.org> | 2015-03-14 07:00:38 +0000 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2015-03-14 07:00:38 +0000 |
commit | 9f96e2003afbd47ba599bbf8eb63de63631e5fc5 (patch) | |
tree | 2cc677587b9dcabd8105f55c7ef8a9d1625445c2 /math/lapack++/Makefile | |
parent | a76762b82726ddf83b6a70a53e18fbab16eef44c (diff) | |
download | ports-9f96e2003afbd47ba599bbf8eb63de63631e5fc5.tar.gz ports-9f96e2003afbd47ba599bbf8eb63de63631e5fc5.zip |
Notes
Diffstat (limited to 'math/lapack++/Makefile')
-rw-r--r-- | math/lapack++/Makefile | 52 |
1 files changed, 21 insertions, 31 deletions
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 <bsd.port.pre.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 +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 <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 + 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> |