# -*- 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 name hackrf maintainers {michaelld @michaelld} openmaintainer description ${name} is a project to build a low cost software radio (SDR) platform. categories science comms license GPL-3 long_description {*}${description} subport hackrf-devel {} if {${subport} eq ${name}} { # release github.setup greatscottgadgets hackrf 2021.03.1 v github.tarball_from releases use_xz yes checksums rmd160 d8c454803cad3ae966192dc3668eceac534d60ab \ sha256 a43e5080c11efdfe69ddebcc35a02b018e30e820de0e0ebdc7948cf7b0cd93a3 \ size 13661964 revision 0 # bump the epoch because I moved the version from 20170219 to 2017.02.1 epoch 1 conflicts hackrf-devel } else { # devel github.setup greatscottgadgets hackrf d94295edcf2b3bda84f2c1e2a442f695a41e24b3 version 20211108-[string range ${github.version} 0 7] github.tarball_from archive checksums rmd160 619b8a4ea1275bc9dd129512a6e02b592b07c3ec \ sha256 2e0158b07ec2f8a520749723378e42ab0b65bcc37cb99e94d537b42c89e8832f \ size 11718520 revision 0 conflicts hackrf # Handle stealth update; remove with next version update dist_subdir ${name}/${version}_1 } depends_build-append port:pkgconfig depends_lib-append path:lib/pkgconfig/libusb-1.0.pc:libusb \ port:fftw-3-single # Many compilers do not recognize "-std=gnu90", so remove it. # Temporary patch. patchfiles-append patch-no-gnu90.diff # set last configure argument to the reletive path # to the top-level cmake source configure.post_args ../${worksrcdir}/host # remove top-level library and includes paths, such that internal # libraries and headers are used instead of any already-installed ones. configure.ldflags-delete -L${prefix}/lib configure.cppflags-delete -I${prefix}/include # HackRF cmake doesn't understand build type "MacPorts"; # use release unless +debug is set if {[variant_isset debug]} { cmake.build_type Debug } else { cmake.build_type Release }