# -*- 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
PortGroup           qt5 1.0
PortGroup           app 1.0

github.setup        miek inspectrum 98b998ff3830a129b67148d2b97bdc70c395c12a
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             20220326-[string range ${github.version} 0 7]
checksums           rmd160  a2dc95313a57318992b06549b75559e1768641ed \
                    sha256  409b66db27c53070b6d3882b7dd14e37d0210e374559d77f921130dfb551db47 \
                    size    110836
revision            0

categories          science comms
maintainers         {michaelld @michaelld} openmaintainer
description         Provides augmented functionality for GNU Radio: inspectrum realizes \
                    signal analysis abilities in typical block-structure
long_description    {*}${description}
license             GPL-3

depends_lib-append \
    port:fftw-3-single \
    port:liquid-dsp

compiler.cxx_standard  2011

# remove top-level library and header paths, such that internal ones
# are looked at before of any already-installed ones.

configure.ldflags-delete -L${prefix}/lib
configure.cppflags-delete -I${prefix}/include

# specify CMake settings for dependencies, just in case

configure.args-append \
    -DFFTW_INCLUDES=${prefix}/include \
    -DFFTW_LIBRARIES=${prefix}/lib/libfftw3f.dylib \
    -DLIQUID_INCLUDES=${prefix}/include \
    -DLIQUID_LIBRARIES=${prefix}/lib/libliquid.dylib

# app settings

app.create yes
app.name Inspectrum
app.executable ${name}
app.icon ${filespath}/inspectrum.icns
app.retina yes

# project moved from the lead branch being "master" to "main" ... have
# to use that for livecheck!

github.livecheck.branch main
