2014-08-02 06:48:59 +08:00
|
|
|
##############################################################################
|
2016-05-12 12:22:25 +08:00
|
|
|
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
2014-08-02 06:48:59 +08:00
|
|
|
# Produced at the Lawrence Livermore National Laboratory.
|
|
|
|
#
|
|
|
|
# This file is part of Spack.
|
2016-05-12 12:22:25 +08:00
|
|
|
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
2014-08-02 06:48:59 +08:00
|
|
|
# LLNL-CODE-647188
|
|
|
|
#
|
2015-12-09 17:24:15 +08:00
|
|
|
# For details, see https://github.com/llnl/spack
|
2014-08-02 06:48:59 +08:00
|
|
|
# Please also see the LICENSE file for our notice and the LGPL.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
2016-05-12 12:22:25 +08:00
|
|
|
# it under the terms of the GNU Lesser General Public License (as
|
|
|
|
# published by the Free Software Foundation) version 2.1, February 1999.
|
2014-08-02 06:48:59 +08:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful, but
|
|
|
|
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
2016-05-12 12:22:25 +08:00
|
|
|
# conditions of the GNU Lesser General Public License for more details.
|
2014-08-02 06:48:59 +08:00
|
|
|
#
|
2016-05-12 12:22:25 +08:00
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2014-08-02 06:48:59 +08:00
|
|
|
##############################################################################
|
|
|
|
from spack import *
|
|
|
|
|
2016-08-04 10:32:15 +08:00
|
|
|
|
2014-08-02 06:48:59 +08:00
|
|
|
class Libmonitor(Package):
|
2014-08-04 03:57:09 +08:00
|
|
|
"""Libmonitor is a library for process and thread control."""
|
2016-08-04 10:08:48 +08:00
|
|
|
homepage = "https://github.com/HPCToolkit/libmonitor"
|
|
|
|
version('20130218', git='https://github.com/HPCToolkit/libmonitor.git', commit='4f2311e')
|
2015-07-21 23:20:05 +08:00
|
|
|
variant('krellpatch', default=False, description="build with openspeedshop based patch.")
|
|
|
|
|
|
|
|
patch('libmonitorkrell-0000.patch', when='@20130218+krellpatch')
|
|
|
|
patch('libmonitorkrell-0001.patch', when='@20130218+krellpatch')
|
|
|
|
patch('libmonitorkrell-0002.patch', when='@20130218+krellpatch')
|
|
|
|
|
2014-08-02 06:48:59 +08:00
|
|
|
def install(self, spec, prefix):
|
|
|
|
configure("--prefix=" + prefix)
|
|
|
|
make()
|
|
|
|
make("install")
|