Ticket #46551: Portfile_gnss-sdr_mld.1

File Portfile_gnss-sdr_mld.1, 6.0 KB (added by michaelld (Michael Dickens), 9 years ago)
Line 
1# -*- 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
2# $Id:
3
4PortSystem          1.0
5
6PortGroup           cmake 1.0
7PortGroup           github 1.0
8PortGroup           active_variants 1.1
9
10name                gnss-sdr
11maintainers         michaelld gmail.com:carlesfernandez openmaintainer
12description         An Open Source Global Navigation Satellite Systems ("GNSS": GPS, Galileo, Glonass, Beidou, etc) Software Defined Radio (SDR) Receiver
13categories          science
14license             GPL-3
15platforms           darwin
16
17dist_subdir         gnss-sdr
18
19if {${subport} eq ${name}} {
20
21    long_description    ${description}: \
22        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.
23
24    github.setup        gnss-sdr gnss-sdr 0.0.6 v
25    checksums           rmd160 3a578f4795f6230d3f627dbe6f80f77c7dac206e \
26                        sha256 ed81a5dff8d91b0b1d561ab8a240818da447c8358b95ab42d6a17b479e873c3e
27    github.tarball_from tags
28
29    conflicts           gnss-sdr-devel gnss-sdr-next
30
31    depends_lib-append  port:gnuradio
32
33    require_active_variants port:gnuradio uhd
34
35}
36
37subport gnss-sdr-devel {
38
39    long_description    ${description}: \
40        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.
41
42    name                gnss-sdr-devel
43    github.setup        gnss-sdr gnss-sdr f64af5e6edc69b001b4cf66779a4d343c95f0180
44    version             20150902
45    checksums           rmd160 c52020f2a36e038ba66c90977ee9d5f866ba26ae \
46                        sha256 34865a8ed0ba691b3db3f52ab8ba4a5e5466712d3722fdda9751165acbb997e5
47
48    conflicts           gnss-sdr gnss-sdr-next
49
50    depends_lib-append  port:gnuradio-devel
51
52    require_active_variants port:gnuradio-devel uhd
53
54}
55
56subport gnss-sdr-next {
57    long_description    ${description}: \
58        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.
59
60    name                gnss-sdr-next
61    github.setup        gnss-sdr gnss-sdr 5ad8b87f68d80fcb9ff05ff02f452752e31674ba
62    version             20150906
63    checksums           rmd160 dcfab721f26bac3cbe47fe8b8fe607cd0b1bbc31 \
64                        sha256 08fc54488d9dccaee460339297d97410d33a547a43df33d58b4a4fa66d19dba2
65
66    conflicts           gnss-sdr gnss-sdr-devel
67
68    depends_lib         port:gnuradio-next
69
70    require_active_variants port:gnuradio-next uhd
71
72}
73
74# override githib PortGroup homepage setting
75
76homepage            http://gnss-sdr.org
77
78depends_build-append port:pkgconfig
79
80depends_lib-append  \
81    port:armadillo \
82    port:google-glog \
83    port:orc \
84    port:openssl \
85    path:lib/libuhd.dylib:uhd
86
87# require specific variants
88
89require_active_variants port:google-glog gflags
90
91post-patch {
92    reinplace "s@multithread@opencl@g" ${worksrcpath}/src/algorithms/acquisition/gnuradio_blocks/pcps_opencl_acquisition_cc.cc
93}
94
95# do VPATH (out of source tree) build
96
97cmake.out_of_source yes
98
99# remove top-level library path, such that internal libraries are used
100# instead of any already-installed ones.
101
102configure.ldflags-delete -L${prefix}/lib
103
104configure.args-append \
105    -DENABLE_PACKAGING=OFF \
106    -DENABLE_OWN_GLOG=OFF \
107    -DENABLE_GENERIC_ARCH=OFF
108
109# enable all variants except +debug and +universal
110
111default_variants +docs +osmosdr +opencl
112
113variant docs description "Install ${name} documentation" {
114
115    depends_build-append \
116        port:doxygen
117
118    # for wasysym.sty
119
120    depends_build-append \
121        port:texlive-fonts-recommended
122
123    # require specific variant
124
125    require_active_variants port:doxygen latex
126
127    configure.args-append \
128        -DDOXYGEN_EXECUTABLE=${prefix}/bin/doxygen
129
130    # extra targets
131
132    build.target-append doc pdfmanual
133
134}
135
136if {![variant_isset docs]} {
137
138    configure.args-append \
139        -DDOXYGEN_EXECUTABLE=
140
141}
142
143variant opencl description "Install ${name} with support for building of processing blocks implemented with OpenCL (experimental)" {
144
145    configure.args-append \
146        -DENABLE_OPENCL=ON
147
148}
149
150if {![variant_isset opencl]} {
151
152    configure.args-append \
153        -DENABLE_OPENCL=OFF
154
155}
156
157variant osmosdr description "Install ${name} with support for OsmoSDR and other front-ends (RTL-based dongles, HackRF, bladeRF, etc.) as signal source (experimental)" {
158
159    depends_build-append \
160        port:gr-osmosdr
161
162    configure.args-append \
163        -DENABLE_OSMOSDR=ON
164
165}
166
167if {![variant_isset osmosdr]} {
168
169    configure.args-append \
170        -DENABLE_OSMOSDR=OFF
171
172}
173
174variant array description "Install ${name} with support for CTTC's antenna array front-end as signal source (experimental)" {
175
176    configure.args-append \
177        -DENABLE_ARRAY=ON
178
179}
180
181if {![variant_isset array]} {
182
183    configure.args-append \
184        -DENABLE_ARRAY=OFF
185
186}
187
188variant gn3s description "Install ${name} with support for the GN3S dongle as signal source (experimental)" {
189
190    configure.args-append \
191        -DENABLE_GN3S=ON
192
193}
194
195if {![variant_isset gn3s]} {
196
197    configure.args-append \
198        -DENABLE_GN3S=OFF
199
200}