Permalink
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (53 sloc) 2.58 KB
# -*- 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
PortSystem 1.0
PortGroup cmake 1.0
PortGroup github 1.0
# require C++11 for cppunit 1.14.0 as of April 13, 2017.
PortGroup cxx11 1.1
github.setup drmpeg gr-dvbs 01e296e80484d9e8e15b9fd8433ba44573f9b09a
version 20181008
checksums rmd160 2a6f2fe46a04907aa779f2ac10ecf392d9dc6062 \
sha256 51d24b469a1b1f30a2919ccb3bffb6e90d025c620f9321149337bf02191c66fe \
size 116003
categories science comms
maintainers {michaelld @michaelld} openmaintainer
description Implements DVB-S transmitter according to ETSI 300 421 V1.1.2 Framing in GNU Radio.
long_description ${description}
license GPL-3
platforms darwin
depends_build-append port:pkgconfig
depends_lib-append port:boost \
port:cppunit \
port:doxygen \
port:swig-python
# allow gr-dvbs to work with both gnuradio and gnuradio-devel ...
depends_lib-append path:lib/libgnuradio-runtime.dylib:gnuradio
# ... but not with gnuradio-next
pre-fetch {
if {![catch {set installed [lindex [registry_active gnuradio-next] 0]}]} {
# gnuradio-next is installed; this version of gr-dvbs 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
cmake.out_of_source yes
# 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
configure.args-append \
-DCMAKE_MODULES_DIR=${prefix}/share/cmake
# specify the Python dependencies
depends_lib-append \
port:python27
# specify the Python version to use
configure.args-append \
-DPYTHON_EXECUTABLE=${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7 \
-DPYTHON_INCLUDE_DIR=${frameworks_dir}/Python.framework/Versions/2.7/Headers \
-DPYTHON_LIBRARY=${frameworks_dir}/Python.framework/Versions/2.7/Python \
-DGR_PYTHON_DIR=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
# require C++11
configure.args-append \
-DCMAKE_CXX_STANDARD=11