# -*- 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
# $Id: Portfile 107409 2013-06-27 14:57:22Z michaelld@macports.org $

PortSystem          1.0
PortGroup           cmake 1.0
PortGroup           github 1.0

github.setup        mossmann hackrf ed805dc3
version             20130626
maintainers         michaelld openmaintainer

description         ${name} is a project to build a low cost software radio (SDR) platform.

categories          science comms
license             GPL-3
platforms           darwin macosx

long_description    ${description}

checksums           rmd160  0c8a9b24504bc8b0421f2111e8afdc1e348a1e1e \
                    sha256  4c459a05b6eaaa2251738ebc5a9c999c040a5bc89bf377a6f7facc4ce634ecde

depends_build-append port:pkgconfig
depends_lib-append   port:libusb

# Many compilers do not recognize "-std=gnu90", so remove it.
# Temporary patch.

patchfiles-append patch-no-gnu90.diff

# do VPATH build

set vpath           ${workpath}/build
pre-configure       { file mkdir ${vpath} }
configure.dir       ${vpath}
build.dir           ${vpath}

# set last configure argument to the reletive path
# to the top-level cmake source

configure.post_args ../${worksrcdir}/host

# be verbose when building, for debugging purposes

build.post_args VERBOSE=1
