# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                hyperic-sigar
version             1.6.2
revision            1
categories          sysutils
maintainers         hotmail.com:nefar openmaintainer
description         Hardware/OS information gathering tool
long_description    SIGAR (System Information Gatherer and Reporter) is a \
                    cross-platform, cross-language library and command-line \
                    tool for accessing operating system and hardware level \
                    information in Java, Perl and .NET.
homepage            http://sigar.sourceforge.net/

platforms           darwin

master_sites        sourceforge:sigar
checksums           md5     bc20535650a7529e72c4b5c7a76c9f04 \
                    sha1    1f377f0a635f0ee9b8d987aa0ec28f2e75436ed0 \
                    rmd160  5c7526fe2753f40c67dfa1958bb7460a69f76ad2

use_configure       no

build {}

destroot {
  xinstall -m 755 ${worksrcpath}/sigar-bin/lib/libsigar-universal-macosx.dylib ${destroot}${prefix}/lib
  xinstall -m 755 {*}[glob -directory ${worksrcpath}/sigar-bin/include/ "*.h"] ${destroot}${prefix}/include
}

livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}