summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/mrnet/package.py
blob: b52233be4ae459cd7c0e24e49151f57d4e711ce3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from spack import *

class Mrnet(Package):
    """The MRNet Multi-Cast Reduction Network."""
    homepage = "http://paradyn.org/mrnet"
    url      = "ftp://ftp.cs.wisc.edu/paradyn/mrnet/mrnet_5.0.1.tar.gz"
    list_url = "http://ftp.cs.wisc.edu/paradyn/mrnet"

    version('5.0.1-2', git='https://github.com/dyninst/mrnet.git', commit='20b1eacfc6d680d9f6472146d2dfaa0f900cc2e9')
    version('5.0.1', '17f65738cf1b9f9b95647ff85f69ecdd')
    version('4.1.0', '5a248298b395b329e2371bf25366115c')
    version('4.0.0', 'd00301c078cba57ef68613be32ceea2f')

    # Add a patch that brings mrnet-5.0.1 up to date with the current development tree
    # The development tree contains fixes needed for the krell based tools
    variant('krellpatch', default=False, description="Build MRNet with krell openspeedshop based patch.")
    patch('krell-5.0.1.patch', when='@5.0.1+krellpatch')

    variant('lwthreads', default=False, description="Also build the MRNet LW threadsafe libraries")
    parallel = False

    depends_on("boost")

    def install(self, spec, prefix):
        # Build the MRNet LW thread safe libraries when the krelloptions variant is present
        if '+lwthreads' in spec:
           configure("--prefix=%s" %prefix, "--enable-shared", "--enable-ltwt-threadsafe")
        else:
           configure("--prefix=%s" %prefix, "--enable-shared")

        make()
        make("install")