# -*- 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 116624 2014-01-31 15:30:41Z michaelld@macports.org $

PortSystem          1.0

name                libosmo-dsp
maintainers         michaelld openmaintainer

description         A library with SDR DSP primitives
long_description    ${description}

categories          science comms
homepage            http://sdr.osmocom.org/
license             GPL-2+
platforms           darwin macosx

version             20130616
revision            1

fetch.type          git
git.url             git://git.osmocom.org/libosmo-dsp
git.branch          59e29c2043cc8bbc14fc7f483aadea2a7b7d0f56

depends_build-append port:pkgconfig
depends_lib-append	port:fftw-3-single \
                    port:doxygen

# <complex.h> -> "/usr/include/complex.h" to be compatible with C++
# legacy headers if these are used by a C++-based project

patchfiles-append   patch-complex.h.diff
patch.pre_args      -p1

use_autoreconf      yes
autoreconf.args     -vi

# 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

# build verbosely

build.post_args-append AM_DEFAULT_VERBOSITY=1
