1 | # $Id: Portfile 30184 2007-10-22 19:32:09Z mww@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name pvm |
---|
6 | version 3.4.5 |
---|
7 | revision 1 |
---|
8 | categories science parallel net |
---|
9 | platforms darwin |
---|
10 | maintainers mww |
---|
11 | description pvm permits a network of computers to act as a cluster |
---|
12 | long_description PVM (Parallel Virtual Machine) is a software package that \ |
---|
13 | permits a heterogeneous collection of Unix and/or Windows \ |
---|
14 | computers hooked together by a network to be used as a single \ |
---|
15 | large parallel computer. Thus large computational problems can \ |
---|
16 | be solved more cost effectively by using the aggregate power \ |
---|
17 | and memory of many computers. |
---|
18 | |
---|
19 | homepage http://www.csm.ornl.gov/pvm/ |
---|
20 | master_sites http://www.netlib.org/pvm3/ \ |
---|
21 | ftp://ftp.netlib.org/pvm3/ \ |
---|
22 | ftp://ftp.chg.ru/pub/prog/parallel/pvm3/ |
---|
23 | distfiles ${name}${version}.tgz |
---|
24 | checksums md5 086e6d707b40adba04bddba8e5b6b17d |
---|
25 | patchfiles patch-console-cons.c patch-src-global.h patch-src-lpvmgen.c \ |
---|
26 | patch-src-pvmcruft.c patch-src-pvmd.c patch-tracer-trcutil.c |
---|
27 | |
---|
28 | set pvm_root ${prefix}/lib/pvm |
---|
29 | set pvm_droot ${destroot}${pvm_root} |
---|
30 | set pvm_arch DARWIN |
---|
31 | |
---|
32 | worksrcdir pvm3 |
---|
33 | |
---|
34 | use_configure no |
---|
35 | |
---|
36 | build.env PVM_ROOT=${worksrcpath} |
---|
37 | |
---|
38 | platform darwin 8 { |
---|
39 | pre-patch { |
---|
40 | file copy -force ${filespath}/DARWIN8.def ${worksrcpath}/conf/DARWIN.def |
---|
41 | } |
---|
42 | build.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 |
---|
43 | } |
---|
44 | |
---|
45 | platform darwin 9 { |
---|
46 | pre-patch { |
---|
47 | file copy -force ${filespath}/DARWIN9.def ${worksrcpath}/conf/DARWIN.def |
---|
48 | } |
---|
49 | build.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 |
---|
50 | } |
---|
51 | |
---|
52 | destroot { |
---|
53 | xinstall -m 755 -d ${pvm_droot}/lib/${pvm_arch}/ ${pvm_droot}/conf |
---|
54 | file copy ${worksrcpath}/bin ${pvm_droot} |
---|
55 | xinstall -m 755 -W ${worksrcpath}/lib/${pvm_arch}/ pvm pvmd3 pvmgs \ |
---|
56 | ${pvm_droot}/lib/${pvm_arch}/ |
---|
57 | xinstall -m 755 -W ${worksrcpath}/lib pvm pvmd pvmgetarch aimk \ |
---|
58 | ${pvm_droot}/lib |
---|
59 | system "cd ${destroot}${prefix}/bin && ln -sf ${pvm_root}/lib/pvm && \ |
---|
60 | ln -sf ${pvm_root}/lib/pvmd && ln -sf ${pvm_root}/lib/aimk" |
---|
61 | xinstall -m 644 -W ${worksrcpath}/lib/${pvm_arch}/ libfpvm3.a libgpvm3.a \ |
---|
62 | libpvm3.a libpvmtrc.a ${destroot}${prefix}/lib |
---|
63 | xinstall -m 644 ${worksrcpath}/conf/${pvm_arch}.def ${pvm_droot}/conf |
---|
64 | xinstall -m 644 -W ${worksrcpath}/include fpvm3.h fpvm3_watcom.h pvm3.h \ |
---|
65 | pvmproto.h pvmtev.h ${destroot}${prefix}/include |
---|
66 | file delete ${destroot}${prefix}/share/man/man1 \ |
---|
67 | ${destroot}${prefix}/share/man/man3 |
---|
68 | file copy ${worksrcpath}/man/man1 ${destroot}${prefix}/share/man/man1 |
---|
69 | file copy ${worksrcpath}/man/man3 ${destroot}${prefix}/share/man/man3 |
---|
70 | } |
---|