Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Oct 2018 01:11:47 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r481863 - head/math/primme
Message-ID:  <201810120111.w9C1Blnb055744@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Fri Oct 12 01:11:47 2018
New Revision: 481863
URL: https://svnweb.freebsd.org/changeset/ports/481863

Log:
  math/primme: Update to the latest revision; Add LinAlg options
  
  Port changes:
  * Remove do-install: it is now implemented by the project
  * Add options to choose the LAPACK-compatible interface for liner algebra

Modified:
  head/math/primme/Makefile
  head/math/primme/distinfo

Modified: head/math/primme/Makefile
==============================================================================
--- head/math/primme/Makefile	Fri Oct 12 00:16:44 2018	(r481862)
+++ head/math/primme/Makefile	Fri Oct 12 01:11:47 2018	(r481863)
@@ -2,7 +2,7 @@
 
 PORTNAME=	primme
 DISTVERSIONPREFIX=	v
-DISTVERSION=	2.1.20181010 # git describe doesn't identify the tag properly
+DISTVERSION=	2.1.20181011 # git describe doesn't identify the tag properly
 CATEGORIES=	math
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -11,13 +11,11 @@ COMMENT=	Iterative eigensolver for symmetric and hermi
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING.txt
 
-LIB_DEPENDS=	libblas.so:math/blas \
-		liblapack.so:math/lapack
 TEST_DEPENDS=	gfortran${GCC_DEFAULT}:lang/gcc${GCC_DEFAULT}
 
 USES=		gmake localbase:ldflags
 USE_GITHUB=	yes
-GH_TAGNAME=	d089bec
+GH_TAGNAME=	6a0fa27
 MAKEFILE=	makefile
 ALL_TARGET=	solib
 USE_LDCONFIG=	yes
@@ -25,8 +23,21 @@ USE_LDCONFIG=	yes
 BINARY_ALIAS=	make=${GMAKE}
 
 CFLAGS+=	-fPIC
-LDFLAGS+=	${LOCALBASE}/lib/liblapack.so ${LOCALBASE}/lib/libblas.so
+LDFLAGS+=	${LAPACKLIB} -lm
 
+OPTIONS_RADIO=	LINALG
+OPTIONS_RADIO_LINALG=	ATLAS GOTOBLAS NETLIB OPENBLAS
+OPTIONS_DEFAULT=	OPENBLAS
+
+LINALG_DESC=		Choose which linear algebra interface (LAPACK) implementation to use:
+
+GOTOBLAS_DESC=		Goto blas implementation
+ATLAS_USES=		blaslapack:atlas
+GOTOBLAS_USES=		blaslapack:gotoblas
+NETLIB_USES=		blaslapack:netlib
+NETLIB_LDFLAGS=		-lblas # XXX why this isn't covered by blaslapack:netlib?
+OPENBLAS_USES=		blaslapack:openblas
+
 TEST_ENV=	${MAKE_ENV} F77=gfortran${GCC_DEFAULT} FLDR=gfortran${GCC_DEFAULT} \
 		LDFLAGS="-lm -Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT} ${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so" \
 		USE_MPI=no USE_PETSC=no PETSC_DIR=${LOCALBASE}
@@ -38,10 +49,8 @@ PLIST_FILES=	include/primme.h \
 		include/primme_f77.h \
 		include/primme_svds.h \
 		include/primme_svds_f77.h \
-		lib/libprimme.so
-
-do-install:
-	cd ${WRKSRC} && ${COPYTREE_SHARE} include ${STAGEDIR}${PREFIX}
-	${INSTALL_LIB} ${WRKSRC}/lib/lib${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib
+		lib/libprimme.so \
+		lib/libprimme.so.2 \
+		lib/libprimme.so.2.1
 
 .include <bsd.port.mk>

Modified: head/math/primme/distinfo
==============================================================================
--- head/math/primme/distinfo	Fri Oct 12 00:16:44 2018	(r481862)
+++ head/math/primme/distinfo	Fri Oct 12 01:11:47 2018	(r481863)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1539198535
-SHA256 (primme-primme-v2.1.20181010-d089bec_GH0.tar.gz) = 90f9df43e5507b8f0dd40cd27ac50ebc06e0442f3e2939eca0e8a6fc0d43eef5
-SIZE (primme-primme-v2.1.20181010-d089bec_GH0.tar.gz) = 5510842
+TIMESTAMP = 1539306461
+SHA256 (primme-primme-v2.1.20181011-6a0fa27_GH0.tar.gz) = 8f662a7c41d5bfb7910ccb9bbcb7f06f1191fc7c7a9d41fb695e9b13438bcb79
+SIZE (primme-primme-v2.1.20181011-6a0fa27_GH0.tar.gz) = 5511173



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810120111.w9C1Blnb055744>