# -*- 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
# $Id: Portfile 116965 2014-02-11 12:54:43Z michaelld@macports.org $

PortSystem          1.0
PortGroup           cmake 1.0

name                rtl-sdr
categories          science comms
platforms           darwin
license             GPL-2
maintainers         michaelld openmaintainer
description         ${name} allows using devices with a RTL2832U chipset as software defined radio (SDR)
long_description    ${description}
homepage            http://sdr.osmocom.org/trac/wiki/rtl-sdr

fetch.type          git
git.url             git://git.osmocom.org/rtl-sdr.git
git.branch          6ee557360645da158e3065111349c318894b497b
version             20140210

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

# remove top-level include path, such that internal headers are used
# instead of any already-installed ones.

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

# remove top-level library path, such that internal libraries are used
# instead of any already-installed ones.

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

livecheck.url       http://cgit.osmocom.org/cgit/rtl-sdr/log/
livecheck.version   ${git.branch}
livecheck.regex     id=(\[a-f0-9\]+).>HEAD<
