[140337] trunk/dports/science
michaelld at macports.org
michaelld at macports.org
Thu Sep 17 10:51:51 PDT 2015
Revision: 140337
https://trac.macports.org/changeset/140337
Author: michaelld at macports.org
Date: 2015-09-17 10:51:51 -0700 (Thu, 17 Sep 2015)
Log Message:
-----------
gnss-sdr: new port; addresses ticket #46551.
Added Paths:
-----------
trunk/dports/science/gnss-sdr/
trunk/dports/science/gnss-sdr/Portfile
Added: trunk/dports/science/gnss-sdr/Portfile
===================================================================
--- trunk/dports/science/gnss-sdr/Portfile (rev 0)
+++ trunk/dports/science/gnss-sdr/Portfile 2015-09-17 17:51:51 UTC (rev 140337)
@@ -0,0 +1,201 @@
+# -*- 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 gnss-sdr
+maintainers michaelld gmail.com:carlesfernandez openmaintainer
+description An Open Source Global Navigation Satellite Systems ("GNSS": GPS, Galileo, Glonass, Beidou, etc) Software Defined Radio (SDR) Receiver
+categories science
+license GPL-3
+platforms darwin
+
+dist_subdir gnss-sdr
+
+if {${subport} eq ${name}} {
+
+ long_description ${description}: \
+ This port is kept up with the GNSS-SDR release, which is typically updated every few months. This version compiles against the gnuradio port, which represents the current GNU Radio release.
+
+ github.setup gnss-sdr gnss-sdr 0.0.6 v
+ checksums rmd160 3a578f4795f6230d3f627dbe6f80f77c7dac206e \
+ sha256 ed81a5dff8d91b0b1d561ab8a240818da447c8358b95ab42d6a17b479e873c3e
+ github.tarball_from tags
+
+ conflicts gnss-sdr-devel gnss-sdr-next
+
+ depends_lib-append port:gnuradio
+
+ require_active_variants port:gnuradio uhd
+
+}
+
+subport gnss-sdr-devel {
+
+ long_description ${description}: \
+ This port is kept up with the GNSS-SDR GIT master branch, which is typically updated daily to weekly. This version of GNSS-SDR generally contains fixes and new features that will be incorporated in an upcoming release, and compiles against the gnuradio-devel port, which represents GNU Radio GIT master branch. 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 gnss-sdr-devel
+ github.setup gnss-sdr gnss-sdr f64af5e6edc69b001b4cf66779a4d343c95f0180
+ version 20150902
+ checksums rmd160 c52020f2a36e038ba66c90977ee9d5f866ba26ae \
+ sha256 34865a8ed0ba691b3db3f52ab8ba4a5e5466712d3722fdda9751165acbb997e5
+
+ conflicts gnss-sdr gnss-sdr-next
+
+ depends_lib-append port:gnuradio-devel
+
+ require_active_variants port:gnuradio-devel uhd
+
+}
+
+subport gnss-sdr-next {
+ long_description ${description}: \
+ This port is kept up with the GNSS-SDR GIT next branch, which is typically updated daily to weekly. This version of GNSS-SDR generally contains fixes and new features that will be incorporated in an upcoming release, and compiles against the gnuradio-next port, which represents GNU Radio GIT next branch. 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 gnss-sdr-next
+ github.setup gnss-sdr gnss-sdr 5ad8b87f68d80fcb9ff05ff02f452752e31674ba
+ version 20150906
+ checksums rmd160 dcfab721f26bac3cbe47fe8b8fe607cd0b1bbc31 \
+ sha256 08fc54488d9dccaee460339297d97410d33a547a43df33d58b4a4fa66d19dba2
+
+ conflicts gnss-sdr gnss-sdr-devel
+
+ depends_lib port:gnuradio-next
+
+ require_active_variants port:gnuradio-next uhd
+
+}
+
+# override githib PortGroup homepage setting
+
+homepage http://gnss-sdr.org
+
+depends_build-append port:pkgconfig
+
+depends_lib-append \
+ port:armadillo \
+ port:google-glog \
+ port:orc \
+ port:openssl \
+ path:lib/libuhd.dylib:uhd
+
+# require specific variants
+
+require_active_variants port:google-glog gflags
+
+post-patch {
+ reinplace "s at multithread@opencl at g" ${worksrcpath}/src/algorithms/acquisition/gnuradio_blocks/pcps_opencl_acquisition_cc.cc
+}
+
+# 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
+
+configure.args-append \
+ -DENABLE_PACKAGING=OFF \
+ -DENABLE_OWN_GLOG=OFF \
+ -DENABLE_GENERIC_ARCH=OFF
+
+# enable default variants: all except +docs, +debug, and +universal
+# do not enable +docs because it requires a non-standard variant for doxygen.
+
+default_variants +osmosdr +opencl
+
+variant docs description "Install ${name} documentation" {
+
+ depends_build-append \
+ port:doxygen
+
+ # for wasysym.sty
+
+ depends_build-append \
+ port:texlive-fonts-recommended
+
+ # require specific variant
+
+ require_active_variants port:doxygen latex
+
+ configure.args-append \
+ -DDOXYGEN_EXECUTABLE=${prefix}/bin/doxygen
+
+ # extra targets
+
+ build.target-append doc pdfmanual
+
+}
+
+if {![variant_isset docs]} {
+
+ configure.args-append \
+ -DDOXYGEN_EXECUTABLE=
+
+}
+
+variant opencl description "Install ${name} with support for building of processing blocks implemented with OpenCL (experimental)" {
+
+ configure.args-append \
+ -DENABLE_OPENCL=ON
+
+}
+
+if {![variant_isset opencl]} {
+
+ configure.args-append \
+ -DENABLE_OPENCL=OFF
+
+}
+
+variant osmosdr description "Install ${name} with support for OsmoSDR and other front-ends (RTL-based dongles, HackRF, bladeRF, etc.) as signal source (experimental)" {
+
+ depends_build-append \
+ port:gr-osmosdr
+
+ configure.args-append \
+ -DENABLE_OSMOSDR=ON
+
+}
+
+if {![variant_isset osmosdr]} {
+
+ configure.args-append \
+ -DENABLE_OSMOSDR=OFF
+
+}
+
+variant array description "Install ${name} with support for CTTC's antenna array front-end as signal source (experimental)" {
+
+ configure.args-append \
+ -DENABLE_ARRAY=ON
+
+}
+
+if {![variant_isset array]} {
+
+ configure.args-append \
+ -DENABLE_ARRAY=OFF
+
+}
+
+variant gn3s description "Install ${name} with support for the GN3S dongle as signal source (experimental)" {
+
+ configure.args-append \
+ -DENABLE_GN3S=ON
+
+}
+
+if {![variant_isset gn3s]} {
+
+ configure.args-append \
+ -DENABLE_GN3S=OFF
+
+}
Property changes on: trunk/dports/science/gnss-sdr/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150917/947ad8d8/attachment.html>
More information about the macports-changes
mailing list