# -*- 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$ PortSystem 1.0 PortGroup cmake 1.0 PortGroup github 1.0 PortGroup active_variants 1.1 name volk-gnss-sdr maintainers michaelld gmail.com:carlesfernandez openmaintainer description Volk modules for GNSS-SDR categories science license GPL-3 platforms darwin dist_subdir gnss-sdr if {${subport} eq "volk-gnss-sdr"} { long_description ${description}: \ This port is kept up with the VOLK-GNSS-SDR release, which is typically updated every few months. This version compiles against the gnss-sdr and gnuradio ports. github.setup gnss-sdr gnss-sdr 0.0.8 v checksums rmd160 ee50b1eee8a806822b576e7b41960f3e169f0961 \ sha256 4b38041f5fdf12a167e868fc9965e2e77e47eb3f2897059cf0238fcfee4c9c49 github.tarball_from tags conflicts volk-gnss-sdr-devel volk-gnss-sdr-next } subport volk-gnss-sdr-devel { long_description ${description}: \ This port is kept up with the VOLK-GNSS-SDR GIT master branch, which is typically updated daily to weekly. This version of VOLK-GNSS-SDR generally contains fixes and new features that will be incorporated in an upcoming release, and compiles against the gnss-sdr-devel and gnuradio-devel ports. This port may or not compile or function correctly, as it represents a work in progress. If it does not work, check back in a few days. Or try deactivating the currently active gnss-sdr and gnuradio ports, cleaning any current builds, and trying again. name volk-gnss-sdr-devel github.setup gnss-sdr gnss-sdr c8a09834ac84cfda3a94a0ee3f5eebe70f482374 version 20160923 checksums rmd160 c4a79f744bdc491afd2d14ce1e8a5aa988b3cc9c \ sha256 0f5611f71078d071c4d1971ab49efddef0f8512114566e863e4ccc65fb000c36 conflicts volk-gnss-sdr volk-gnss-sdr-next } subport volk-gnss-sdr-next { long_description ${description}: \ This port is kept up with the VOLK-GNSS-SDR GIT next branch, which is typically updated daily to weekly. This version of VOLK-GNSS-SDR generally contains fixes and new features that will be incorporated in an upcoming release, and compiles against the gnss-sdr-next and gnuradio-next ports. This port may or not compile or function correctly, as it represents a work in progress. If it does not work, check back in a few days. Or try deactivating the currently active gnss-sdr and gnuradio ports, cleaning any current builds, and trying again. name volk-gnss-sdr-next github.setup gnss-sdr gnss-sdr 5dede688ea3bb45e50a40ce6b400de98436f2eec version 20161025 checksums rmd160 1eb0c9e5b4635c269011e250f445587974c0ef4c \ sha256 78989ac597208e25fedcb61dd589f79ae148eacefe0ba8128b0b34b58e742c92 conflicts volk-gnss-sdr volk-gnss-sdr-devel } # override githib PortGroup homepage setting homepage http://gnss-sdr.org depends_build-append port:pkgconfig # can use either the Volk release or devel port depends_lib-append \ path:lib/libvolk.dylib:volk \ port:orc \ port:python27 \ port:py27-cheetah \ port:boost # do VPATH (out of source tree) build cmake.out_of_source yes # set work directory worksrcdir ${worksrcdir}/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr # 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 version to use configure.args-append \ -DPYTHON_EXECUTABLE=${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7 # specify where to install cmake files configure.args-append \ -DCMAKE_MODULES_DIR=${prefix}/share/cmake # require c++11 if {${configure.cxx_stdlib} eq "libstdc++"} { # *clang* when using libstdc++ do not seem to support C++11; # C++11 support seems to need GCC 4.7+ when using libstdc++; # could use C++0x support on GCC4.[56], but just ignore it since # there are newer compilers already in place as defaults. # Blacklist GCC compilers not supporting C++11 and all CLANG. # This is probably not necessary, but it's good practice. compiler.blacklist-append *clang* {*gcc-3*} {*gcc-4.[0-6]} # and whitelist those we do want to use. wish there were a better way. # these will be used in the order provided. compiler.whitelist macports-gcc-4.9 macports-gcc-4.8 macports-gcc-4.7 } else { # using libc++; # Blacklist Clang not supporting C++11 in some form and all GCC. # Just use the cxx11 PortGroup for this specific case. PortGroup cxx11 1.0 }