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

PortSystem          1.0
PortGroup           cmake 1.1
PortGroup           github 1.0
PortGroup           qt5 1.0
PortGroup           app 1.0

github.setup        OpenHantek OpenHantek6022 3.3.2.2
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
checksums           rmd160  9fdca2f18de576ee3991bf9fa83e04d4e3d82510 \
                    sha256  99a6cfa07406afc4130948488ede4c4806db045fdd589e90a94508d38cef65cd \
                    size    16322920
revision            0

name                openhantek
platforms           darwin macosx
categories          science
license             GPL-3
maintainers         {ra1nb0w @ra1nb0w} openmaintainer

description         DSO software for Hantek USB digital signal oscilloscopes
long_description    OpenHantek is a free software for Hantek and compatible \
    (Voltcraft/Darkwire/Protek/Acetech) USB digital signal oscilloscopes

depends_lib-append \
    path:lib/pkgconfig/libusb-1.0.pc:libusb \
    port:fftw-3

qt5.depends_component \
    qttools

compiler.cxx_standard \
    2011

configure.args-append \
    -DBUILD_MACOSX_BUNDLE=NO

app.create yes
app.name OpenHantek
app.executable OpenHantek
app.icon openhantek/res/images/openhantek.icns
app.retina yes

test.run yes
test.cmd ${cmake.build_dir}/openhantek/OpenHantek -v
