source: trunk/dports/science/gr-fosphor/Portfile

Last change on this file was 153029, checked in by michaelld@…, 10 months ago

gr-fosphor: "${prefix}/Library/Frameworks" -> "${frameworks_dir}".

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
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: Portfile 153029 2016-09-22 13:54:00Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           wxWidgets 1.0
7PortGroup           qt4 1.0
8PortGroup           active_variants 1.1
9
10wxWidgets.use       wxPython-3.0
11
12name                gr-fosphor
13maintainers         michaelld openmaintainer
14
15categories          science comms
16homepage            http://sdr.osmocom.org/trac/wiki/fosphor
17license             GPL-3
18platforms           darwin macosx
19
20description         gr-fosphor provides a GNU Radio block for RTSA-like spectrum visualization using GPU acceleration.
21
22long_description    ${description}  \
23    This port is kept up with the gr-fosphor GIT 'master' branch, which is typically updated weekly to monthly, providing compatibility with GNU Radio release 3.7 API: the gnuradio and gnuradio-devel ports.
24
25set commit          7b6b9961bc2d9b84daeb42a5c8f8aeba293d207c
26version             20160522
27revision            2
28checksums           rmd160 4cd157163ee82596d0d87dd1626239491e0e17ce \
29                    sha256 a848e5423d4e50dab363bd8ddf14143641ee814828cb549f581475e1ec507a94
30
31distname            ${name}-${commit}
32master_sites        http://cgit.osmocom.org/gr-fosphor/snapshot/
33
34depends_lib-append \
35    port:boost \
36    port:cppunit \
37    port:freetype \
38    path:lib/libglfw.dylib:glfw \
39    port:swig-python \
40    port:${wxWidgets.port} \
41    port:log4cpp
42
43depends_build-append \
44    port:doxygen
45
46# do VPATH (out of source tree) build
47
48cmake.out_of_source yes
49
50# temporary patch to fix using gr_log
51
52patchfiles-append patch-add_gr_log.diff
53
54# remove top-level library path, such that internal libraries are used
55# instead of any already-installed ones.
56
57configure.ldflags-delete -L${prefix}/lib
58
59# specify the Python dependencies
60
61depends_lib-append \
62    port:python27
63
64# wxPython is required for configure and runtime
65
66depends_lib-append \
67    port:py27-wxpython-3.0
68
69# specify the Python version to use
70
71configure.args-append \
72    -DPYTHON_EXECUTABLE=${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7 \
73    -DPYTHON_INCLUDE_DIR=${frameworks_dir}/Python.framework/Versions/2.7/Headers \
74    -DPYTHON_LIBRARY=${frameworks_dir}/Python.framework/Versions/2.7/Python \
75    -DGR_PYTHON_DIR=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
76
77# allow gr-forphor to work with both gnuradio and gnuradio-devel ...
78
79depends_lib-append path:lib/libgnuradio-runtime.dylib:gnuradio
80
81# ... but not with gnuradio-next
82
83pre-fetch {
84    if {![catch {set installed [lindex [registry_active gnuradio-next] 0]}]} {
85        # gnuradio-next is installed; this version of gr-forphor does not work with gnuradio-next
86        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"
87        return -code error "Invalid port dependency: gnuradio-next"
88    }
89}
90
91livecheck.url       http://cgit.osmocom.org/gr-fosphor/log/?h=master
92livecheck.version   ${commit}
93livecheck.regex     id=(\[a-f0-9\]+).*>HEAD<
Note: See TracBrowser for help on using the repository browser.