# -*- 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
# $Id: Portfile 126817 2014-10-15 20:21:51Z mf2k@macports.org $

PortSystem          1.0
PortGroup           github 1.0

set git_tag         e04b0b6
github.setup        labjack exodriver ${git_tag}

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    The Exodriver is a thin interface (think exoskeleton) to LabJack devices. \
                    The library can open, close, read from, and write to a LabJack U3, U6, UE9, and U12.
platforms           darwin
homepage            http://labjack.com/support/linux-and-mac-os-x-drivers

checksums           rmd160  2d5b5b7c0204d6f779c26c88188b6f3f1eff3ead \
                    sha256  1133287818af9c42dec109da4770aee6935828da480f2b131bb7c1c68c846845

worksrcdir          labjack-exodriver-${git_tag}/liblabjackusb

depends_lib         port: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
