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

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

description         RSP TCP Server for SDRPlay devices.
long_description    {*}${description} This is a fork of the original \
    rsp_tcp by F4FHH Nicolas with extensions to support all current \
    RSP devices. Use the extended mode to access the full bit rate \
    of the RSP and all of the RSP specific controls. By default the \
    server supports the RTL TCP protocol.

github.setup        SDRplay RSPTCPServer 0.1-beta v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
checksums           rmd160  b21b417f636808d801e6b1f8fde926b0328e54e3 \
                    sha256  be6f925627b25b5737353beee65ed9ed256fe25bb70a71130215ebe5a4a8fcc7 \
                    size    37983
revision            0

depends_lib-append \
    port:SDRplay

# PR opened upstream 30 days ago without any answer
# so I put here the patch until upstream
patch.pre_args-replace  -p0 -p1
patchfiles-append \
    patch-version.diff
