diff options
author | Rainer Hurling <rhurlin@FreeBSD.org> | 2020-10-31 16:00:18 +0000 |
---|---|---|
committer | Rainer Hurling <rhurlin@FreeBSD.org> | 2020-10-31 16:00:18 +0000 |
commit | 1c5dc9d9b5243cf81e031b050b99995aea49a4d3 (patch) | |
tree | ca878c1d2498bd77dc58fb30db9cbee627654ee0 /science | |
parent | e4cddaff021616ae4ebf117c597dfa8bfe5cbc27 (diff) | |
download | freebsd-ports-1c5dc9d9b5243cf81e031b050b99995aea49a4d3.zip |
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
Diffstat (limited to 'science')
-rw-r--r-- | science/mpb/Makefile | 61 | ||||
-rw-r--r-- | science/mpb/distinfo | 5 | ||||
-rw-r--r-- | science/mpb/pkg-descr | 2 | ||||
-rw-r--r-- | science/mpb/pkg-plist | 15 |
4 files changed, 48 insertions, 35 deletions
diff --git a/science/mpb/Makefile b/science/mpb/Makefile index ea9a392b9980..1fc37ac896c9 100644 --- a/science/mpb/Makefile +++ b/science/mpb/Makefile @@ -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@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 +MAKE_JOBS_UNSAFE= yes + +OPTIONS_DEFINE= ATLAS NLOPT OPENMP +OPTIONS_DEFAULT= NLOPT + +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) + +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 -.include <bsd.port.options.mk> - -.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 - -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 +post-install: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/examples && \ + ${COPYTREE_SHARE} "*.ctl *.scm" ${STAGEDIR}${EXAMPLESDIR}) .include <bsd.port.mk> diff --git a/science/mpb/distinfo b/science/mpb/distinfo index a42100fb7a43..f64ee3c25203 100644 --- a/science/mpb/distinfo +++ b/science/mpb/distinfo @@ -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 diff --git a/science/mpb/pkg-descr b/science/mpb/pkg-descr index ef08c2cefc87..55f502002c16 100644 --- a/science/mpb/pkg-descr +++ b/science/mpb/pkg-descr @@ -11,4 +11,4 @@ to many other problems in optics, such as waveguides and resonator systems. (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/ diff --git a/science/mpb/pkg-plist b/science/mpb/pkg-plist index 15f34c927b43..e878bec9ee8a 100644 --- a/science/mpb/pkg-plist +++ b/science/mpb/pkg-plist @@ -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 |