Changeset 113379
- Timestamp:
- Nov 14, 2013, 6:21:12 PM (10 years ago)
- Location:
- trunk/dports/science/gnuradio
- Files:
-
- 2 added
- 1 edited
-
Portfile (modified) (19 diffs)
-
files/patch-gnuradio-runtime_swig_std_std_container.i.diff (added)
-
files/patch-swig-include-std_string.i.diff (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/science/gnuradio/Portfile
r113092 r113379 6 6 PortGroup wxWidgets 1.0 7 7 PortGroup active_variants 1.1 8 PortGroup compiler_blacklist_versions 1.0 8 9 9 10 wxWidgets.use wxPython-3.0 … … 21 22 dist_subdir gnuradio 22 23 23 platform darwin {24 if {${os.major} >= 13} {25 pre-fetch {26 ui_msg "SWIG (as of 2.0.10) does not generate the C++11 compliant code needed by GNU Radio, and hence $name cannot use SWIG to build on Mavericks or later. This means the GNU Radio Python interface cannot be created, and that gnuradio-companion will not be installed."27 }28 }29 }30 31 24 if {${subport} eq ${name}} { 32 25 33 version 3.7.1 34 revision 1 26 version 3.7.2 35 27 36 28 long_description ${description}: \ … … 44 36 45 37 checksums \ 46 rmd160 c3c346d5d9a9b6d91f30b4b5d56737dcb9f41125\47 sha256 e9f7f66d175365e281175f889ed4fc46e20318affa8f1f5b4edbe477378ad6cd38 rmd160 544dce18b81824437ed9919b4f65d3a3f4f9dceb \ 39 sha256 b80b42eaa091cb77a168e15b029307856db249d460ff06dfdf292802c19a2669 48 40 49 41 livecheck.url http://gnuradio.org/releases/gnuradio/?C=M&O=D … … 82 74 This port is kept up with the GNU Radio GIT 'master' branch, which is typically updated daily to weekly. This version of GNU Radio generally contains fixes to, and its API is compatible with, the current GNU Radio release, and will be incorporated in an upcoming release. 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 gnuradio port, cleaning any current builds, and trying again. 83 75 84 version 3.7. 2_2013110776 version 3.7.3_20131113 85 77 86 78 conflicts gnuradio-legacy gnuradio gnuradio-next … … 88 80 fetch.type git 89 81 git.url http://git.gnuradio.org/git/gnuradio.git 90 git.branch 5997f309e8209219851bb62b7e76184395b8630b82 git.branch 4749434d9b964aa5c452e861f7551b222a4f98ac 91 83 92 84 livecheck.url http://gnuradio.org/cgit/gnuradio.git/log/?h=master … … 101 93 This port is kept up with the GNU Radio GIT 'next' branch, which is typically updated daily to weekly. This version of GNU Radio represents the next major release of GNU Radio, and hence its API is likely to be different than that provided by either gnuradio or gnuradio-devel. 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 gnuradio port, cleaning any current builds, and trying again. 102 94 103 version 3.8.0_201311 0795 version 3.8.0_20131113 104 96 105 97 conflicts gnuradio-legacy gnuradio gnuradio-devel … … 107 99 fetch.type git 108 100 git.url http://git.gnuradio.org/git/gnuradio.git 109 git.branch 7c652f08b06497a50836b3be92bddb0c314bc803101 git.branch 2f6f79e53e45c93223824742346f6a70f8007a05 110 102 111 103 livecheck.url http://gnuradio.org/cgit/gnuradio.git/log/?h=next … … 120 112 # features that 3.6 does not have. 121 113 122 depends_lib-append port:log4cpp114 depends_lib-append port:log4cpp 123 115 124 116 variant ctrlport description {Enable control port enhancements (EXPERIMENTAL)} {} … … 135 127 } 136 128 137 platform darwin {138 if {${os.major} < 13} {139 140 # VOLK requires a GCC variant (Apple or MacPorts), for 141 # now; blacklist all clang variants, for now.142 # http://trac.macports.org/ticket/37979143 144 compiler.blacklist *clang*145 }129 # GNU Radio 3.7.1+ works with Apple GCC, some Apple clang >= 130 # 500.2.79, and MacPorts clang 3.4 or newer; blacklist other 131 # compilers. 132 133 if {${os.major} == 13} { 134 # works with Apple's clang 500.2.79 on 10.9, but not 10.8. 135 compiler.blacklist-append { clang < 500.2.79 } 136 } else { 137 compiler.blacklist-append clang 146 138 } 139 140 compiler.blacklist-append \ 141 macports-clang-2.9 macports-clang-3.1 \ 142 macports-clang-3.2 macports-clang-3.3 143 144 # temporary patch for fix swig build on 10.9; tested on 10.8 and 145 # does not seem to hurt. 146 147 patchfiles-append patch-swig-include-std_string.i.diff 148 147 149 } else { 148 150 … … 151 153 # this issue is in release 3.7.1 and newer. 152 154 153 compiler.blacklist *clang* macports* dragonegg* 154 155 } 155 compiler.blacklist-append *clang* macports* 156 157 } 158 159 compiler.blacklist-append dragonegg* 156 160 157 161 use_parallel_build yes … … 171 175 configure.dir ${vpath} 172 176 build.dir ${vpath} 177 178 # for 10.9, temporary fix to SWIG compile issue 179 180 platform darwin 13 { 181 pre-patch { 182 set std_dest_dir ${worksrcpath}/gnuradio-runtime/swig/std 183 if {[file exists ${std_dest_dir}]} { 184 delete ${std_dest_dir} 185 } 186 copy [glob ${prefix}/share/swig/*/std] ${std_dest_dir} 187 } 188 patchfiles-append patch-gnuradio-runtime_swig_std_std_container.i.diff 189 } 173 190 174 191 # remove top-level include path, such that internal headers are used … … 213 230 } 214 231 } 232 233 # shortcut to installing all variants except Python 234 235 variant full description {Deprecated legacy variant} {} 236 237 # per user concensus: enable all variants except +debug and +universal 238 # (and, for next, except +ctrlport); 239 240 default_variants +docs +grc +qtgui +wxgui +uhd +orc +wavelet \ 241 +jack +portaudio +swig +sdl 215 242 216 243 # set Python variants … … 239 266 240 267 depends_lib-append \ 241 port:${p} \ 268 port:${p} 269 270 # these are checked for at configure, then required for 271 # runtime; so use depends_lib to get both. 272 273 depends_lib-append \ 242 274 port:py${s}-numpy \ 243 275 port:py${s}-cheetah 276 277 # these are not checked for at configure, but are required 278 # for runtime; so use depends_run. 244 279 245 280 depends_run-append \ … … 269 304 if {[variant_isset grc]} { 270 305 306 # these are checked for at configure, then required 307 # for runtime; so use depends_lib to get both. 308 271 309 depends_lib-append \ 272 310 port:py${s}-lxml \ … … 277 315 if {[variant_isset qtgui]} { 278 316 317 # pyqt4 is checked for at configure, then required for 318 # runtime; so use depends_lib to get both. Can use 319 # either py*-pyqt4 or py*-pyqt4-devel. 320 279 321 depends_lib-append \ 280 322 path:share/qt4/plugins/designer/libpy${s}qt4.dylib:py${s}-pyqt4 323 324 # pyqwt is not checked for at configure, but is 325 # required for runtime; so use depends_run. 326 281 327 depends_run-append \ 282 328 port:py${s}-pyqwt … … 286 332 if {[variant_isset wxgui]} { 287 333 288 depends_run-append \ 334 # wxpython is checked for at configure, then required 335 # for runtime; so use depends_lib to get both. 336 337 depends_lib-append \ 289 338 port:py${s}-wxpython-3.0 290 339 … … 294 343 [variant_isset ctrlport]} { 295 344 296 depends_lib-append port:py${s}-zeroc-ice34 345 # pyice is not checked for at configure, but is 346 # required for runtime; so use depends_run. 347 348 depends_run-append port:py${s}-zeroc-ice34 297 349 298 350 } … … 495 547 } 496 548 497 # disable SWIG (and GRC) on 10.9 until SWIG works better498 499 platform darwin {500 if {${os.major} >= 13} {501 502 default_variants -swig -grc503 504 if {[variant_isset swig] || [variant_isset grc]} {505 506 ui_error "SWIG does not generate the C++11 compliant code needed by GNU Radio, and hence $name cannot use SWIG to build on Mavericks or later. This means the GNU Radio Python interface cannot be created, and that gnuradio-companion will not be installed."507 error "unsupported platform"508 509 }510 }511 }512 513 549 if {![variant_isset swig]} { 514 550 … … 538 574 539 575 } 540 541 # shortcut to installing all variants except Python542 543 platform darwin {544 if {${os.major} >= 13} {545 546 variant full \547 requires docs qtgui wxgui uhd orc wavelet jack portaudio sdl \548 description {Enable all variants except +debug and +universal (and, for next, except +ctrlport)} {}549 550 } else {551 552 variant full \553 requires docs grc qtgui wxgui uhd orc wavelet jack portaudio swig sdl \554 description {Enable all variants except +debug and +universal (and, for next, except +ctrlport)} {}555 556 }557 }558 # make +full the default; per user concensus559 560 default_variants-append +full
Note: See TracChangeset
for help on using the changeset viewer.
