svn commit: r553775 - head/science/mpb

Rainer Hurling rhurlin at FreeBSD.org
Sat Oct 31 16:00:20 UTC 2020


Author: rhurlin
Date: Sat Oct 31 16:00:18 2020
New Revision: 553775
URL: https://svnweb.freebsd.org/changeset/ports/553775

Log:
  science/mpb: Update to 1.11.1
  
  Changelog: https://github.com/NanoComp/mpb/blob/master/NEWS.md
  
  - Update from version 1.5 to 1.11.1
  - Change MASTER_SITES to Github releases
  - Remove MAKE_JOBS_UNSAFE
  - Change dependency math/fftw to math/fftw3
  - Change dependency math/blas to math/openblas
  - Add devel/boehm-gc-threaded to LIB_DEPENDS
  - Add USES=readline
  - Use GCC compiler because of Fortran code
  - Reorder Makefile
  - Add option for OpenMP
  - Remove post-patch target
  - Add post-install target to install examples
  - Change URL in pkg-descr
  - Update pkg-plist
  
  Approved by:	tcberner (mentor)
  Differential Revision:	https://reviews.freebsd.org/D27031

Modified:
  head/science/mpb/Makefile
  head/science/mpb/distinfo
  head/science/mpb/pkg-descr
  head/science/mpb/pkg-plist

Modified: head/science/mpb/Makefile
==============================================================================
--- head/science/mpb/Makefile	Sat Oct 31 15:59:08 2020	(r553774)
+++ head/science/mpb/Makefile	Sat Oct 31 16:00:18 2020	(r553775)
@@ -2,10 +2,9 @@
 # $FreeBSD$
 
 PORTNAME=	mpb
-PORTVERSION=	1.5
-PORTREVISION=	15
+DISTVERSION=	1.11.1
 CATEGORIES=	science
-MASTER_SITES=	http://ab-initio.mit.edu/mpb/
+MASTER_SITES=	https://github.com/NanoComp/mpb/releases/download/v${DISTVERSION}/
 
 MAINTAINER=	rhurlin at FreeBSD.org
 COMMENT=	MIT Photonic-Bands
@@ -13,41 +12,39 @@ COMMENT=	MIT Photonic-Bands
 LICENSE=	GPLv2
 
 BUILD_DEPENDS=	bash:shells/bash
-LIB_DEPENDS=	libfftw.so:math/fftw \
-		libhdf5.so:science/hdf5 \
-		libctl.so:science/libctl \
-		libguile-2.2.so:lang/guile2
+LIB_DEPENDS=	libctl.so:science/libctl \
+		libfftw3.so:math/fftw3 \
+		libgc-threaded.so:devel/boehm-gc-threaded \
+		libguile-2.2.so:lang/guile2 \
+		libhdf5.so:science/hdf5
 
-OPTIONS_DEFINE=	ATLAS NLOPT
-ATLAS_DESC=	Use math/atlas instead of math/lapack
-NLOPT_DESC=	Use math/nlopt (check also in science/libctl)
-
-USES=		fortran libtool pkgconfig
+USES=		fortran libtool pkgconfig readline
 GNU_CONFIGURE=	yes
-MAKE_JOBS_UNSAFE=	yes
-
+USE_GCC=	yes
+# Do not use --with-mpi, because it is not guaranted
+# that science/hdf5 also built with option PARALLEL
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-NLOPT_LIB_DEPENDS=	libnlopt.so:math/nlopt
+MAKE_JOBS_UNSAFE=	yes
 
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=		ATLAS NLOPT OPENMP
+OPTIONS_DEFAULT=	NLOPT
 
-.if ${PORT_OPTIONS:MATLAS}
-LIB_DEPENDS+=	libatlas.so:math/atlas
-CONFIGURE_ARGS+=	--with-lapack=-lalapack
-.else
-LIB_DEPENDS+=	libblas.so:math/blas \
-		liblapack.so:math/lapack
-CONFIGURE_ARGS+=	--with-lapack=-llapack
-.endif
+ATLAS_DESC=	Use math/atlas instead of math/openblas
+NLOPT_DESC=	Use math/nlopt (enable also in science/libctl)
+OPENMP_DESC=	Use OpenMP (enable also in math/fftw3)
 
-post-patch:
-	@${REINPLACE_CMD} -e 's|-lhdf5 |-lhdf5 -lpthread |g' \
-		${WRKSRC}/configure
-	@${REINPLACE_CMD} \
-		-e '/INSTALL/s/$$(prefix)/$$(DESTDIR)$$(prefix)/' \
-		-e '/INSTALL/s/$$(mandir)/$$(DESTDIR)$$(mandir)/' \
-		${WRKSRC}/mpb/Makefile.in ${WRKSRC}/utils/Makefile.in
+ATLAS_LIB_DEPENDS=	libatlas.so:math/atlas
+ATLAS_USES_OFF=		blaslapack:openblas
+ATLAS_CONFIGURE_ON=	--with-lapack=-lalapack
+ATLAS_CONFIGURE_OFF=	--with-blas=openblas --with-lapack=-lopenblas
+NLOPT_LIB_DEPENDS=	libnlopt.so:math/nlopt
+OPENMP_CONFIGURE_ON=	--with-openmp
+
+post-install:
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	(cd ${WRKSRC}/examples && \
+	${COPYTREE_SHARE} "*.ctl *.scm" ${STAGEDIR}${EXAMPLESDIR})
 
 .include <bsd.port.mk>

Modified: head/science/mpb/distinfo
==============================================================================
--- head/science/mpb/distinfo	Sat Oct 31 15:59:08 2020	(r553774)
+++ head/science/mpb/distinfo	Sat Oct 31 16:00:18 2020	(r553775)
@@ -1,2 +1,3 @@
-SHA256 (mpb-1.5.tar.gz) = 3deafe79185eb9eb8a8fe97d9fe51624221f51c1cf4baff4b4a7242c51130bd7
-SIZE (mpb-1.5.tar.gz) = 1056327
+TIMESTAMP = 1603732678
+SHA256 (mpb-1.11.1.tar.gz) = dc55b081c56079727dac92d309f8e4ea84ca6eea9122ec24b7955f8c258608e1
+SIZE (mpb-1.11.1.tar.gz) = 636154

Modified: head/science/mpb/pkg-descr
==============================================================================
--- head/science/mpb/pkg-descr	Sat Oct 31 15:59:08 2020	(r553774)
+++ head/science/mpb/pkg-descr	Sat Oct 31 16:00:18 2020	(r553775)
@@ -11,4 +11,4 @@ to many other problems in optics, such as waveguides a
 (For example, it can solve for the modes of waveguides with arbitrary cross-
 sections.)
 
-WWW: http://ab-initio.mit.edu/mpb/
+WWW: https://mpb.readthedocs.io/en/latest/

Modified: head/science/mpb/pkg-plist
==============================================================================
--- head/science/mpb/pkg-plist	Sat Oct 31 15:59:08 2020	(r553774)
+++ head/science/mpb/pkg-plist	Sat Oct 31 16:00:18 2020	(r553775)
@@ -6,8 +6,23 @@ include/mpb/eigensolver.h
 include/mpb/matrices.h
 include/mpb/maxwell.h
 include/mpb/scalar.h
+include/mpb/verbosity.h
 lib/libmpb.a
 man/man1/mpb-data.1.gz
 man/man1/mpb-split.1.gz
 man/man1/mpb.1.gz
+%%EXAMPLESDIR%%/bragg-sine.ctl
+%%EXAMPLESDIR%%/bragg.ctl
+%%EXAMPLESDIR%%/check.ctl
+%%EXAMPLESDIR%%/diamond.ctl
+%%EXAMPLESDIR%%/dos.scm
+%%EXAMPLESDIR%%/hole-slab.ctl
+%%EXAMPLESDIR%%/honey-rods.ctl
+%%EXAMPLESDIR%%/line-defect.ctl
+%%EXAMPLESDIR%%/sq-rods.ctl
+%%EXAMPLESDIR%%/strip.ctl
+%%EXAMPLESDIR%%/tri-holes.ctl
+%%EXAMPLESDIR%%/tri-rods.ctl
+%%EXAMPLESDIR%%/tutorial.ctl
+%%EXAMPLESDIR%%/wavevector.scm
 %%DATADIR%%/mpb.scm


More information about the svn-ports-head mailing list