# -*- 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
# require C++11 for cppunit 1.14.0 as of April 13, 2017.
github.setup drmpeg gr-dvbs2 c2445b96298c8d3760b88264351d3d227d818354
checksums rmd160 39e38055e6629e7d46e140630f88e939741e4247 \
sha256 558683cb1653493675e0869866e64ffd8e4de25698c546acb54b57f246eeede4
maintainers {michaelld @michaelld} openmaintainer
description Implements DVB-S2 transmitter according to ETSI EN 302 307 V1.3.1 Second Generation Frameing in GNU Radio.
long_description ${description}
depends_build-append port:pkgconfig
depends_lib-append port:boost \
# allow gr-dvbs2 to work with both gnuradio and gnuradio-devel ...
depends_lib-append path:lib/libgnuradio-runtime.dylib:gnuradio
# ... but not with gnuradio-next
if {![catch {set installed [lindex [registry_active gnuradio-next] 0]}]} {
# gnuradio-next is installed; this version of gr-dvbs2 does not work with gnuradio-next
ui_msg "\nError: ${name} requires the gnuradio or gnuradio-devel port, and will not work with the gnuradio-next port. deactivate gnuradio-next, and then install or activate gnuradio or gnuradio-devel.\n"
return -code error "Invalid port dependency: gnuradio-next"
# do VPATH (out of source tree) build
# remove top-level library path, such that internal libraries are used
# instead of any already-installed ones.
configure.ldflags-delete -L${prefix}/lib
# install CMake files into this directory
patchfiles-append patch-CMakeLists.txt.diff
-DCMAKE_MODULES_DIR=${prefix}/share/cmake
# temporary patch to fix logging
patchfiles-append patch-add_logging.diff
# specify the Python dependencies