# -*- 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
PortGroup               cmake 1.1
PortGroup               github 1.0

github.setup            castvoid xserve-frontpanel 58c5f8977b8e7f4ebffa1853b089a5c4b04fee07
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from     tarball
checksums               rmd160  02fc695d8bb5ab5bae729ecc2bd74a1aff5cfde6 \
                        sha256  443ab659bdc2d8932b5d8d16e6cbadb5473a1d122d2d9451410167b8f8cb7ceb \
                        size    7628

version                 0.1-20181212
revision                0
categories              sysutils
platforms               darwin
maintainers             {ryandesign @ryandesign}
supported_archs         x86_64

# https://github.com/castvoid/xserve-frontpanel/commit/c83c193988960bf3431d213a79ee04089140ba69
license                 MIT

description             a new daemon to run the Xserve front-panel CPU LEDs

long_description        ${name} provides a new open-source implementation of \
                        hwmond, the daemon Apple used to include in Mac OS X \
                        to show CPU activity using the rows of LEDs on the \
                        front panel of the Xserve but which stopped working \
                        after Lion.

depends_lib-append      path:lib/pkgconfig/libusb-1.0.pc:libusb

patchfiles              FindLibUSB.cmake.patch

startupitem.create      yes
startupitem.executable  ${prefix}/bin/hwmond

destroot {
    copy ${build.dir}/hwmond ${destroot}${prefix}/bin/
}