Ticket #13446: Portfile

File Portfile, 2.5 KB (added by tomaz.solc@…, 16 years ago)
Line 
1# $Id: Portfile 30184 2007-10-22 19:32:09Z mww@macports.org $
2
3PortSystem 1.0
4
5name                    pvm
6version                 3.4.5
7revision                1
8categories              science parallel net
9platforms               darwin
10maintainers             mww
11description             pvm permits a network of computers to act as a cluster
12long_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
19homepage                http://www.csm.ornl.gov/pvm/
20master_sites    http://www.netlib.org/pvm3/ \
21                                ftp://ftp.netlib.org/pvm3/ \
22                                ftp://ftp.chg.ru/pub/prog/parallel/pvm3/
23distfiles               ${name}${version}.tgz
24checksums               md5 086e6d707b40adba04bddba8e5b6b17d
25patchfiles              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
28set pvm_root    ${prefix}/lib/pvm
29set pvm_droot   ${destroot}${pvm_root}
30set pvm_arch    DARWIN
31
32worksrcdir              pvm3
33
34use_configure   no
35
36build.env               PVM_ROOT=${worksrcpath}
37
38platform 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
45platform 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
52destroot        {
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}