Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (47 sloc) 2.37 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
PortGroup active_variants 1.1
PortGroup cxx11 1.1
github.setup bastibl gr-ieee802-11 08787e1ddb706b3aa40ed9170d1ab37289d876f4
version 20180410
revision 1
checksums rmd160 e9dbe0b75d5d4c1fbe0a5bba802f25b1d87f9ad7 \
sha256 7d795af70469b8a2af2530cac319a063450114b49fe6a53044595f5c3422b105 \
size 240442
# allow gr-ieee802-11 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-ieee802-11 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 (blocks, GRC definitions, apps, etc) for GNU Radio.
long_description ${description}
license GPL-3
platforms darwin
depends_build-append port:pkgconfig
depends_lib-append port:boost
# 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 port:python27
# specify that 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
post-patch {
reinplace "s/c++0x/c++11/" ${worksrcpath}/CMakeLists.txt
}
You can’t perform that action at this time.