source: trunk/dports/science/ocaml-mpi/Portfile

Last change on this file was 137992, checked in by mww@…, 2 years ago

inc. revision to rebuild library dependents of ocaml (ocaml update to version 4.02.2)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 137992 2015-06-24 16:17:51Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                ocaml-mpi
6version             1.01
7revision            7
8categories          science devel ml
9maintainers         mww
10license             LGPL-2
11description         Caml bindings for a large subset of MPI functions
12long_description    ${description}
13homepage            http://cristal.inria.fr/~xleroy/software.html
14platforms           darwin
15
16master_sites        http://caml.inria.fr/distrib/bazar-ocaml \
17                    https://forge.ocamlcore.org/frs/download.php/329/
18distname            ocamlmpi-${version}
19
20checksums           md5     31e86ecb812832eb9480e2a4c6981608 \
21                    sha1    4f836f02f7e8852ba72d4293aea43cf7a3438b0f \
22                    rmd160  c0a08090073c54e130cd2712c7d1cfbeb8d17793
23
24depends_lib         port:ocaml port:ocaml-findlib path:bin/mpicc-mp:mpich-default
25
26patchfiles          Makefile.diff
27
28post-patch {
29    file copy ${filespath}/META ${worksrcpath}
30}
31
32use_configure       no
33use_parallel_build  no
34
35if {[file exists ${prefix}/lib/mpich-mp-devel]} then {
36   build.env           MPIINCDIR=${prefix}/include MPILIBDIR=${prefix}/lib/mpich-mp-devel
37} else {
38   build.env           MPIINCDIR=${prefix}/include MPILIBDIR=${prefix}/lib/mpich-mp
39}
40
41build.target        all
42
43set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
44destroot.env        OCAMLFIND_INSTFLAGS="-destdir $ocamlfind_destdir -ldconf ignore" OCAMLFIND_STUBLIBS=${ocamlfind_destdir}/stublibs
45destroot.target     ocamlfind-install
46
47pre-destroot {
48    file mkdir $ocamlfind_destdir
49}
50
51livecheck.type      regex
52livecheck.url       http://forge.ocamlcore.org/frs/?group_id=135
53livecheck.regex     "ocamlmpi-(.*?).tar.gz"
Note: See TracBrowser for help on using the repository browser.