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

set git_tag         e04b0b6
github.setup        labjack exodriver ${git_tag}
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball

version             2.5.1
revision            1
license             MIT
categories          science
maintainers         nomaintainer
description         The Exodriver is a thin interface (think exoskeleton) to LabJack devices
long_description    {*}${description}. The library can open, close, read from, and write \
                    to a LabJack U3, U6, UE9, and U12.
homepage            https://labjack.com/support/linux-and-mac-os-x-drivers

checksums           rmd160  2d5b5b7c0204d6f779c26c88188b6f3f1eff3ead \
                    sha256  1133287818af9c42dec109da4770aee6935828da480f2b131bb7c1c68c846845 \
                    size    96715

worksrcdir          labjack-exodriver-${git_tag}/liblabjackusb

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

patchfiles          patch-Makefile.diff

use_configure       no
use_parallel_build  no

variant universal   {}

build.args-append   CC="${configure.cc} [get_canonical_archflags cc]" \
                    CXX="${configure.cxx} [get_canonical_archflags cxx]" \
                    CPP=${configure.cpp} \
                    PREFIX=${prefix}

destroot.args-append \
                    PREFIX=${prefix}

livecheck.type      none
