[131905] trunk/dports/science

michaelld at macports.org michaelld at macports.org
Tue Jan 20 10:17:00 PST 2015


Revision: 131905
          https://trac.macports.org/changeset/131905
Author:   michaelld at macports.org
Date:     2015-01-20 10:17:00 -0800 (Tue, 20 Jan 2015)
Log Message:
-----------
gr-dvbs2: new port.

Added Paths:
-----------
    trunk/dports/science/gr-dvbs2/
    trunk/dports/science/gr-dvbs2/Portfile
    trunk/dports/science/gr-dvbs2/files/
    trunk/dports/science/gr-dvbs2/files/patch-CMakeLists.txt.diff

Added: trunk/dports/science/gr-dvbs2/Portfile
===================================================================
--- trunk/dports/science/gr-dvbs2/Portfile	                        (rev 0)
+++ trunk/dports/science/gr-dvbs2/Portfile	2015-01-20 18:17:00 UTC (rev 131905)
@@ -0,0 +1,82 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           cmake 1.0
+PortGroup           github 1.0
+
+github.setup        drmpeg gr-dvbs2 5d075c64146bfb2ae45b1426ffcbf3faa8e0da3d
+version             20140903
+checksums           rmd160 ac23c16cc262eb9071eb96350ef46dd81aa9c6b5 \
+                    sha256 3f83593d33cc3a1411b1539b958a34fa87891262041cd34915fe6209a41eb083
+
+categories          science comms
+maintainers         michaelld openmaintainer
+description         Implements DVB-S2 transmitter according to ETSI EN 302 307 V1.3.1 Second Generation Frameing in GNU Radio.
+long_description    ${description}
+license             GPL-3
+platforms           darwin
+
+depends_build-append port:pkgconfig
+depends_lib-append	port:boost \
+                    port:cppunit \
+                    port:doxygen \
+                    port:swig-python
+
+# allow gr-dvbs to work with both gnuradio and gnuradio-devel ...
+
+depends_lib-append  path:lib/libgnuradio-runtime.dylib:gnuradio
+
+# ... but not with gnuradio-legacy or gnuradio-next
+
+pre-fetch {
+    if {![catch {set installed [lindex [registry_active gnuradio-legacy] 0]}]} {
+        # gnuradio-legacy is installed; this version of gr-dvbs does not work with gnuradio-legacy
+        ui_msg "\nError: ${name} requires the gnuradio or gnuradio-devel port, and will not work with the gnuradio-legacy port.  deactivate gnuradio-legacy, and then install or activate gnuradio or gnuradio-devel.\n"
+        return -code error "Invalid port dependency: gnuradio-legacy"
+    }
+    if {![catch {set installed [lindex [registry_active gnuradio-next] 0]}]} {
+        # gnuradio-next is installed; this version of gr-dvbs does not work with gnuradio-next
+        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"
+        return -code error "Invalid port dependency: gnuradio-next"
+    }
+}
+
+# do VPATH build
+
+post-extract        { file mkdir ${workpath}/build }
+configure.dir       ${workpath}/build
+build.dir           ${workpath}/build
+
+# remove top-level library path, such that internal libraries are used
+# instead of any already-installed ones.
+
+configure.ldflags-delete -L${prefix}/lib
+
+# install CMake files into this directory
+
+patchfiles-append patch-CMakeLists.txt.diff
+configure.args-append \
+    -DCMAKE_MODULES_DIR=${prefix}/share/cmake
+
+# set last configure argument to the reletive path
+# to the top-level cmake source
+
+configure.post_args ../${worksrcdir}
+
+# be verbose when building, for debugging purposes
+
+build.post_args VERBOSE=1
+
+# specify the Python dependencies
+
+depends_lib-append \
+    port:python27
+
+# specify the Python version to use
+
+configure.args-append \
+    -DPYTHON_EXECUTABLE=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 \
+    -DPYTHON_INCLUDE_DIR=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Headers \
+    -DPYTHON_LIBRARY=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Python \
+    -DGR_PYTHON_DIR=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages


Property changes on: trunk/dports/science/gr-dvbs2/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/science/gr-dvbs2/files/patch-CMakeLists.txt.diff
===================================================================
--- trunk/dports/science/gr-dvbs2/files/patch-CMakeLists.txt.diff	                        (rev 0)
+++ trunk/dports/science/gr-dvbs2/files/patch-CMakeLists.txt.diff	2015-01-20 18:17:00 UTC (rev 131905)
@@ -0,0 +1,14 @@
+--- CMakeLists.txt.orig	2015-01-20 12:53:01.000000000 -0500
++++ CMakeLists.txt	2015-01-20 12:53:20.000000000 -0500
+@@ -145,6 +145,10 @@
+ ########################################################################
+ # Install cmake search helper for this library
+ ########################################################################
++if(NOT CMAKE_MODULES_DIR)
++    set(CMAKE_MODULES_DIR ${GR_LIBRARY_DIR}/cmake)
++endif(NOT CMAKE_MODULES_DIR)
++
+ install(FILES cmake/Modules/dvbs2Config.cmake        
+-    DESTINATION lib/cmake/dvbs2
++    DESTINATION ${CMAKE_MODULES_DIR}/dvbs2
+ )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150120/a21a97e0/attachment.html>


More information about the macports-changes mailing list