From a76f7129801a38fda53ba85d3841e098b5e5407f Mon Sep 17 00:00:00 2001 From: rene Date: Sun, 4 Jan 2015 13:55:52 +0000 Subject: Resurrect science/mpb, pass maintainership to PR submitter. - update to 1.5 - change to lang/guile2 - fix up USES and post-patch - add optional dependency on math/nlopt - install header files PR: 196179 Submitted by: Rainer Hurling --- MOVED | 1 - science/Makefile | 1 + science/mpb/Makefile | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++ science/mpb/distinfo | 2 ++ science/mpb/pkg-descr | 14 ++++++++++++++ science/mpb/pkg-plist | 13 +++++++++++++ 6 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 science/mpb/Makefile create mode 100644 science/mpb/distinfo create mode 100644 science/mpb/pkg-descr create mode 100644 science/mpb/pkg-plist diff --git a/MOVED b/MOVED index 8c5c508..1a0f98e 100644 --- a/MOVED +++ b/MOVED @@ -7344,7 +7344,6 @@ x11-toolkits/fpc-gnome1||2014-12-25|Depends on imlib graphics/fpc-imlib||2014-12-25|Depends on imlib graphics/imlib||2014-12-25|Does not handle modern graphics libraries games/secretmaryochronicles-music||2014-12-27|Has expired: Depends on expiring games/secretmaryochronicles -science/mpb||2014-12-27|Has expired: Broken for more than 6 months x11-fm/pbi-thumbnailer||2014-12-27|Has expired: Broken for more than 6 months games/secretmaryochronicles||2014-12-27|Has expired: does not run, cegui 0.8 support still in development multimedia/ffmpeg24|multimedia/ffmpeg25|2014-12-27|ffmpeg upstream now points to 2.5.x series diff --git a/science/Makefile b/science/Makefile index 8c91109..a6b3ea4 100644 --- a/science/Makefile +++ b/science/Makefile @@ -85,6 +85,7 @@ SUBDIR += metaf2xml SUBDIR += minc2 SUBDIR += mol2ps + SUBDIR += mpb SUBDIR += mpqc SUBDIR += mpqc-mpich SUBDIR += ncs diff --git a/science/mpb/Makefile b/science/mpb/Makefile new file mode 100644 index 0000000..3227610 --- /dev/null +++ b/science/mpb/Makefile @@ -0,0 +1,52 @@ +# Created by: ijliao +# $FreeBSD$ + +PORTNAME= mpb +PORTVERSION= 1.5 +CATEGORIES= science +MASTER_SITES= http://ab-initio.mit.edu/mpb/ + +MAINTAINER= rhurlin@gwdg.de +COMMENT= MIT Photonic-Bands + +LICENSE= GPLv2 + +BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash +LIB_DEPENDS= libfftw.so:${PORTSDIR}/math/fftw \ + libhdf5.so:${PORTSDIR}/science/hdf5 \ + libctl.so:${PORTSDIR}/science/libctl \ + libguile-2.0.so:${PORTSDIR}/lang/guile2 + +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 +GNU_CONFIGURE= yes +MAKE_JOBS_UNSAFE= yes + +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +.include + +.if ${PORT_OPTIONS:MATLAS} +LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas +CONFIGURE_ARGS+= --with-lapack=-lalapack +.else +LIB_DEPENDS+= libblas.so:${PORTSDIR}/math/blas \ + liblapack.so:${PORTSDIR}/math/lapack +CONFIGURE_ARGS+= --with-lapack=-llapack +.endif + +NLOPT_LIB_DEPENDS= libnlopt.so:${PORTSDIR}/math/nlopt + +post-patch: + @${REINPLACE_CMD} -e 's|-lhdf5 |-lhdf5 ${PTHREAD_LIBS} |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 + +.include diff --git a/science/mpb/distinfo b/science/mpb/distinfo new file mode 100644 index 0000000..a42100f --- /dev/null +++ b/science/mpb/distinfo @@ -0,0 +1,2 @@ +SHA256 (mpb-1.5.tar.gz) = 3deafe79185eb9eb8a8fe97d9fe51624221f51c1cf4baff4b4a7242c51130bd7 +SIZE (mpb-1.5.tar.gz) = 1056327 diff --git a/science/mpb/pkg-descr b/science/mpb/pkg-descr new file mode 100644 index 0000000..ef08c2c --- /dev/null +++ b/science/mpb/pkg-descr @@ -0,0 +1,14 @@ +The MIT Photonic-Bands (MPB) package is a free program for computing the band +structures (dispersion relations) and electromagnetic modes of periodic +dielectric structures, on both serial and parallel computers. It was developed +by Steven G. Johnson at MIT in the Joannopoulos Ab Initio Physics group. + +This program computes definite-frequency eigenstates of Maxwell's equations in +periodic dielectric structures for arbitrary wavevectors, using fully-vectorial +and three-dimensional methods. It is especially designed for the study of +photonic crystals (a.k.a. photonic band-gap materials), but is also applicable +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/ diff --git a/science/mpb/pkg-plist b/science/mpb/pkg-plist new file mode 100644 index 0000000..15f34c9 --- /dev/null +++ b/science/mpb/pkg-plist @@ -0,0 +1,13 @@ +bin/mpb +bin/mpb-data +bin/mpb-split +include/mpb.h +include/mpb/eigensolver.h +include/mpb/matrices.h +include/mpb/maxwell.h +include/mpb/scalar.h +lib/libmpb.a +man/man1/mpb-data.1.gz +man/man1/mpb-split.1.gz +man/man1/mpb.1.gz +%%DATADIR%%/mpb.scm -- cgit v1.1