Import mpb-openmpi-1.4.2 as wip/mpb-openmpi.
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.
This commit is contained in:
parent
3c6eed56e0
commit
ef2a0277f4
|
@ -0,0 +1,3 @@
|
|||
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.
|
|
@ -0,0 +1,33 @@
|
|||
# $NetBSD: Makefile,v 1.1 2013/06/23 18:33:44 outpaddling Exp $
|
||||
#
|
||||
|
||||
DISTNAME= mpb-1.4.2
|
||||
PKGNAME= mpb-openmpi-1.4.2
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= http://ab-initio.mit.edu/mpb/
|
||||
|
||||
MAINTAINER= jwbacon@tds.net
|
||||
HOMEPAGE= http://ab-initio.mit.edu/mpb/
|
||||
COMMENT= MIT Photonic Bands
|
||||
LICENSE= gnu-gpl-v3
|
||||
|
||||
# Use HAS_CONFIGURE, not GNU_CONFIGURE, otherwise --prefix= will be overridden
|
||||
HAS_CONFIGURE= yes
|
||||
USE_LIBTOOL= yes
|
||||
USE_LANGUAGES= c fortran77
|
||||
|
||||
# --prefix=${DESTDIR}... can replace patches as long as HAS_CONFIGURE is used
|
||||
CONFIGURE_ARGS+=--with-libctl=${PREFIX}/share/libctl \
|
||||
--with-mpi \
|
||||
--prefix=${MPI_PREFIX:Q} \
|
||||
--mandir=${MPI_PREFIX:Q}/man
|
||||
|
||||
CFLAGS+= -DH5_USE_16_API=1
|
||||
|
||||
.include "../../math/blas/buildlink3.mk"
|
||||
.include "../../math/lapack/buildlink3.mk"
|
||||
.include "../../devel/hdf5/buildlink3.mk"
|
||||
.include "../../wip/fftw2-openmpi/buildlink3.mk"
|
||||
.include "../../devel/readline/buildlink3.mk"
|
||||
.include "../../devel/libctl/buildlink3.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
|
@ -0,0 +1,5 @@
|
|||
@comment $NetBSD: PLIST,v 1.1 2013/06/23 18:33:44 outpaddling Exp $
|
||||
openmpi/bin/mpb-mpi
|
||||
openmpi/man/man1/mpb.1
|
||||
openmpi/share/libctl/specs/mpb.scm
|
||||
@pkgdir openmpi/lib
|
|
@ -0,0 +1,20 @@
|
|||
# $NetBSD: buildlink3.mk,v 1.1 2013/06/23 18:33:44 outpaddling Exp $
|
||||
# XXX BUILDLINK_DEPMETHOD.mpb-openmpi?= build
|
||||
|
||||
BUILDLINK_TREE+= mpb-openmpi
|
||||
|
||||
.if !defined(MPB_BUILDLINK3_MK)
|
||||
MPB_BUILDLINK3_MK:=
|
||||
|
||||
BUILDLINK_API_DEPENDS.mpb-openmpi+= mpb-openmpi>=1.4.2
|
||||
BUILDLINK_PKGSRCDIR.mpb-openmpi?= ../../jb-wip/mpb-openmpi
|
||||
|
||||
.include "../../math/blas/buildlink3.mk"
|
||||
.include "../../math/lapack/buildlink3.mk"
|
||||
.include "../../devel/hdf5/buildlink3.mk"
|
||||
.include "../../math/fftw2/buildlink3.mk"
|
||||
.include "../../devel/readline/buildlink3.mk"
|
||||
.include "../../wip/libctl/buildlink3.mk"
|
||||
.endif # MPB_BUILDLINK3_MK
|
||||
|
||||
BUILDLINK_TREE+= -mpb-openmpi
|
|
@ -0,0 +1,10 @@
|
|||
$NetBSD: distinfo,v 1.1 2013/06/23 18:33:44 outpaddling Exp $
|
||||
|
||||
SHA1 (mpb-1.4.2.tar.gz) = 2d4052566cff6c6befd31183253a908654b534f8
|
||||
RMD160 (mpb-1.4.2.tar.gz) = 6440f0e19d4b5b8354c135034429ea2031c4301d
|
||||
Size (mpb-1.4.2.tar.gz) = 686488 bytes
|
||||
SHA1 (patch-mpb-ctl_Makefile.in) = 822a94fe7239664002daf45d0bee94b415af15c4
|
||||
SHA1 (patch-src_util_Makefile.in) = a2ed814bf1ad94d4192fa82fc1cdbcc926eb53b2
|
||||
SHA1 (patch-src_util_check.c) = 59fb816d555bf7baf718253bde3bca8516da6d69
|
||||
SHA1 (patch-src_util_check.h) = 278a7c27ec3d0e06c1d9611f99b1d4a5d4f3d2de
|
||||
SHA1 (patch-utils_Makefile.in) = bcdc8b28a2bf29c1e94b38a9b5dd7d93073a00a6
|
|
@ -0,0 +1,51 @@
|
|||
$NetBSD: patch-mpb-ctl_Makefile.in,v 1.1 2013/06/23 18:33:44 outpaddling Exp $
|
||||
|
||||
--- mpb-ctl/Makefile.in.orig 2002-09-14 22:20:55.000000000 +0000
|
||||
+++ mpb-ctl/Makefile.in
|
||||
@@ -66,7 +66,12 @@ LDFLAGS = $(MY_LDFLAGS) @LDFLAGS@
|
||||
##############################################################################
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
+INSTALL_DATA = @INSTALL_DATA@
|
||||
prefix = @prefix@
|
||||
+exec_prefix = @exec_prefix@
|
||||
+bindir = @bindir@
|
||||
mandir = @mandir@
|
||||
# c.f. AC_ARG_PROGRAM autoconf docs:
|
||||
transform=@program_transform_name@
|
||||
@@ -133,23 +138,23 @@ geom.c: $(LIBCTL_DIR)/utils/geom.c
|
||||
install: install-mpb @INSTALL_MPB_SPLIT@
|
||||
|
||||
install-mpb: $(PROGRAM_NAME)
|
||||
- $(INSTALL) -d $(prefix)/bin
|
||||
- $(INSTALL) -m 0755 -s .$(PROGRAM_NAME) $(prefix)/bin/`echo $(PROGRAM_NAME)|sed '$(transform)'`
|
||||
- $(INSTALL) -d $(prefix)/share/libctl/specs
|
||||
- $(INSTALL) -m 0644 $(SPECIFICATION_FILE) $(prefix)/share/libctl/specs
|
||||
- $(INSTALL) -d $(mandir)/man1
|
||||
- $(INSTALL) -m 0644 $(PROGRAM_NAME).1 $(mandir)/man1
|
||||
+ $(INSTALL) -d $(DESTDIR)$(prefix)/bin
|
||||
+ $(INSTALL_PROGRAM) .$(PROGRAM_NAME) $(DESTDIR)$(bindir)/`echo $(PROGRAM_NAME)|sed '$(transform)'`
|
||||
+ $(INSTALL) -d $(DESTDIR)$(prefix)/share/libctl/specs
|
||||
+ $(INSTALL_DATA) $(SPECIFICATION_FILE) $(DESTDIR)$(prefix)/share/libctl/specs
|
||||
+ $(INSTALL) -d $(DESTDIR)$(mandir)/man1
|
||||
+ $(INSTALL_DATA) $(PROGRAM_NAME).1 $(DESTDIR)$(mandir)/man1
|
||||
|
||||
mpb-split-tmp:
|
||||
rm -f mpb-split-tmp
|
||||
mpb_name=`echo mpb | sed '$(transform)'`; \
|
||||
- sed "s%\./mpb%"$(prefix)/bin/"$$mpb_name%g" mpb-split > mpb-split-tmp;
|
||||
+ sed "s%\./mpb%"$(bindir)/"$$mpb_name%g" mpb-split > mpb-split-tmp;
|
||||
|
||||
install-mpb-split: mpb-split-tmp
|
||||
mpb_name=`echo mpb | sed '$(transform)'`; \
|
||||
- $(INSTALL) -m 0755 mpb-split-tmp $(prefix)/bin/$${mpb_name}-split
|
||||
- $(INSTALL) -d $(mandir)/man1
|
||||
- $(INSTALL) -m 0644 mpb-split.1 $(mandir)/man1
|
||||
+ $(INSTALL_SCRIPT) mpb-split-tmp $(DESTDIR)$(bindir)/$${mpb_name}-split
|
||||
+ $(INSTALL) -d $(DESTDIR)$(mandir)/man1
|
||||
+ $(INSTALL_DATA) mpb-split.1 $(DESTDIR)$(mandir)/man1
|
||||
|
||||
clean:
|
||||
rm -f $(ALL_OBJECTS) ctl-io.c ctl-io.h main.c geom.c \
|
|
@ -0,0 +1,13 @@
|
|||
$NetBSD: patch-src_util_Makefile.in,v 1.1 2013/06/23 18:33:44 outpaddling Exp $
|
||||
|
||||
--- src/util/Makefile.in.orig 2002-09-14 22:20:55.000000000 +0000
|
||||
+++ src/util/Makefile.in
|
||||
@@ -15,7 +15,7 @@ AR = ar
|
||||
|
||||
all: libs
|
||||
|
||||
-OBJECTS = debug_malloc.o mpi_utils.o
|
||||
+OBJECTS = debug_malloc.o mpi_utils.o check.o
|
||||
LIBNAME = util.a
|
||||
|
||||
libs: $(LIBNAME)
|
|
@ -0,0 +1,20 @@
|
|||
$NetBSD: patch-src_util_check.c,v 1.1 2013/06/23 18:33:44 outpaddling Exp $
|
||||
|
||||
--- src/util/check.c.orig 2013-04-03 21:01:44.000000000 +0000
|
||||
+++ src/util/check.c
|
||||
@@ -0,0 +1,15 @@
|
||||
+#include <libguile.h>
|
||||
+
|
||||
+void
|
||||
+scm_mpb_error (const char *file, int line, const char *message)
|
||||
+{
|
||||
+ char buf[256];
|
||||
+ sprintf (buf, "%s, line %d", file, line);
|
||||
+ scm_error(
|
||||
+ scm_string_to_symbol (scm_makfrom0str("mpb-error")),
|
||||
+ buf,
|
||||
+ message,
|
||||
+ SCM_BOOL_F, /* no args */
|
||||
+ SCM_BOOL_F /* no rest */
|
||||
+ );
|
||||
+}
|
|
@ -0,0 +1,27 @@
|
|||
$NetBSD: patch-src_util_check.h,v 1.1 2013/06/23 18:33:44 outpaddling Exp $
|
||||
|
||||
--- src/util/check.h.orig 2013-04-03 21:02:05.000000000 +0000
|
||||
+++ src/util/check.h
|
||||
@@ -33,6 +33,7 @@ extern void check_breakpoint(void);
|
||||
#define CHECK_BREAKPOINT /* nothing */
|
||||
#endif
|
||||
|
||||
+#ifdef HAVE_MPI
|
||||
#define CHECK(condition, message) do { \
|
||||
if (!(condition)) { \
|
||||
CHECK_BREAKPOINT; \
|
||||
@@ -40,6 +41,14 @@ extern void check_breakpoint(void);
|
||||
message "\n", __LINE__); \
|
||||
} \
|
||||
} while (0)
|
||||
+#else
|
||||
+extern void scm_mpb_error (const char *file, int line, const char *message);
|
||||
+#define CHECK(condition, message) \
|
||||
+ if (!(condition)) { \
|
||||
+ CHECK_BREAKPOINT; \
|
||||
+ scm_mpb_error(__FILE__, __LINE__, message); \
|
||||
+ }
|
||||
+#endif
|
||||
|
||||
#endif /* not CHECK_DISABLE */
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
$NetBSD: patch-utils_Makefile.in,v 1.1 2013/06/23 18:33:44 outpaddling Exp $
|
||||
|
||||
--- utils/Makefile.in.orig 2002-09-14 22:20:55.000000000 +0000
|
||||
+++ utils/Makefile.in
|
||||
@@ -12,7 +12,12 @@ RANLIB = @RANLIB@
|
||||
@SET_MAKE@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
+INSTALL_DATA = @INSTALL_DATA@
|
||||
prefix = @prefix@
|
||||
+exec_prefix = @exec_prefix@
|
||||
+bindir = @bindir@
|
||||
mandir = @mandir@
|
||||
# c.f. AC_ARG_PROGRAM autoconf docs:
|
||||
transform=@program_transform_name@
|
||||
@@ -35,10 +40,10 @@ install: install-@BUILD_MPB_DATA@
|
||||
install-: # dummy target for when BUILD_MPB_DATA is ""
|
||||
|
||||
install-mpb-data: mpb-data
|
||||
- $(INSTALL) -d $(prefix)/bin
|
||||
- $(INSTALL) -m 0755 -s mpb-data $(prefix)/bin/`echo mpb-data|sed '$(transform)'`
|
||||
- $(INSTALL) -d $(mandir)/man1
|
||||
- $(INSTALL) -m 0644 mpb-data.1 $(mandir)/man1
|
||||
+ $(INSTALL) -d $(DESTDIR)$(bindir)
|
||||
+ $(INSTALL_PROGRAM) mpb-data $(DESTDIR)$(bindir)/`echo mpb-data|sed '$(transform)'`
|
||||
+ $(INSTALL) -d $(DESTDIR)$(mandir)/man1
|
||||
+ $(INSTALL_DATA) mpb-data.1 $(DESTDIR)$(mandir)/man1
|
||||
|
||||
clean:
|
||||
rm -f mpb-data mpb-data.o core
|
Loading…
Reference in New Issue