Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
102 lines (69 sloc) 3.13 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
github.setup ptrkrysik gr-gsm 592ec9b7859f544b297e9352323b45ceb450a68a
version 20180812
checksums rmd160 76289afc52c484bdb1a4a60a18b6cb85f2a4ba3d \
sha256 d628af9a27130a89458efd9f91056457e97f01a66ee5809455f0c95607033d41 \
size 413183
revision 1
# overload the github livecheck branch.
# when master is more advanced, comment this out.
github.livecheck.branch development
# allow gr-gsm 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-gsm 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"
categories science comms
maintainers {michaelld @michaelld} openmaintainer
description Provides augmented functionality for GNU Radio: a set of tools for receiving information transmitted by GSM equipment/devices.
long_description ${description}
license GPL-3
platforms darwin
depends_build-append \
port:pkgconfig \
port:swig-python \
depends_lib-append \
port:boost \
path:lib/libvolk.dylib:volk \
depends_test-append \
# for docs
depends_lib-append \
# fix name of rst2man
patchfiles-append patch-docs_CMakeLists.txt.diff
patch.pre_args -p1
# fix allowing for CMAKE_MODULES_DIR
patchfiles-append patch-CMakeLists.txt.diff
# add Boost::thread linkage
patchfiles-append patch-add-boost-thread.diff
# temporary patch to #include <grgsm/endian.h> where requred
patchfiles-append patch-add_endian.h.diff
# fix using GRCC, which will load the just-built swig .so and hence
# the just-built gr-gsm library
patchfiles-append patch-fix-local-library-load.diff
# 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
# specify the Python dependencies
depends_lib-append \
# 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 \
You can’t perform that action at this time.