<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[125720] trunk/dports/science/uhd</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/125720">125720</a></dd>
<dt>Author</dt> <dd>michaelld@macports.org</dd>
<dt>Date</dt> <dd>2014-09-24 10:59:49 -0700 (Wed, 24 Sep 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>uhd-devel:
+ update to 5aefa0fd (20140923);
+ add temporary patch to add UHD cmake file creation and installation;
+ fix CMAKE_MODULES_DIR to match new way of installing.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsscienceuhdPortfile">trunk/dports/science/uhd/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/dports/science/uhd/files/</li>
<li><a href="#trunkdportsscienceuhdfilespatchuhdcmakediff">trunk/dports/science/uhd/files/patch-uhd-cmake.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsscienceuhdPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/science/uhd/Portfile (125719 => 125720)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/science/uhd/Portfile        2014-09-24 17:12:57 UTC (rev 125719)
+++ trunk/dports/science/uhd/Portfile        2014-09-24 17:59:49 UTC (rev 125720)
</span><span class="lines">@@ -39,13 +39,16 @@
</span><span class="cx">     long_description ${description}: \
</span><span class="cx"> Provides the GIT master version, which is typically updated every few days to week.
</span><span class="cx"> 
</span><del>-    github.setup    EttusResearch uhd e56809a09aeffa2ccaec4582f6ca2fc0d4b4949e
-    version         ${devel_version}_20140901
</del><ins>+    github.setup    EttusResearch uhd 5aefa0fdfcf45717c133641b7e4df8070ed025e3
+    version         ${devel_version}_20140923
</ins><span class="cx">     name            uhd-devel
</span><span class="cx">     conflicts       uhd
</span><del>-    checksums       rmd160 53a6adc22bf78087c7a09c0eefca244b416a7447 \
-                    sha256 372f7a23a3fcf72e12b4e3b936d5695864a61a74de28143a339a4d10d1f71686
</del><ins>+    checksums       rmd160 75399ec879de0f4ce81cf23590a74406a35e8830 \
+                    sha256 79f7d947d1ac830346102e3de5e3e1e2c1601c62e05942794e89fdf0348813aa
</ins><span class="cx"> 
</span><ins>+    # temporary patch to add UHD cmake file creation and installation
+    patchfiles-append patch-uhd-cmake.diff
+
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> depends_lib-append         port:boost port:ncurses
</span><span class="lines">@@ -86,10 +89,10 @@
</span><span class="cx"> configure.args-append \
</span><span class="cx">     -DPKG_LIB_DIR=${prefix}/share/uhd
</span><span class="cx"> 
</span><del>-# directory to install all CMake files
</del><ins>+# directory to install all CMake files; internal appends &quot;uhd&quot;
</ins><span class="cx"> 
</span><span class="cx"> configure.args-append \
</span><del>-    -DCMAKE_MODULES_DIR=${prefix}/share/cmake/uhd
</del><ins>+    -DCMAKE_MODULES_DIR=${prefix}/share/cmake
</ins><span class="cx"> 
</span><span class="cx"> # be verbose when building, for debugging purposes
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkdportsscienceuhdfilespatchuhdcmakediff"></a>
<div class="addfile"><h4>Added: trunk/dports/science/uhd/files/patch-uhd-cmake.diff (0 => 125720)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/science/uhd/files/patch-uhd-cmake.diff                                (rev 0)
+++ trunk/dports/science/uhd/files/patch-uhd-cmake.diff        2014-09-24 17:59:49 UTC (rev 125720)
</span><span class="lines">@@ -0,0 +1,297 @@
</span><ins>+--- host/CMakeLists.txt.orig
++++ host/CMakeLists.txt
+@@ -279,6 +279,29 @@
+ ENDIF(NOT LIBUHD_PKG AND NOT UHDHOST_PKG)

+ ########################################################################
++# Create and Install UHD cmake files
++########################################################################
++IF(NOT CMAKE_MODULES_DIR)
++   SET(CMAKE_MODULES_DIR lib${LIB_SUFFIX}/cmake)
++ENDIF(NOT CMAKE_MODULES_DIR)
++
++configure_file(
++  ${CMAKE_SOURCE_DIR}/cmake/Modules/UHDConfigVersion.cmake.in
++  ${CMAKE_BINARY_DIR}/cmake/Modules/UHDConfigVersion.cmake
++@ONLY)
++
++SET(cmake_configs
++  ${CMAKE_SOURCE_DIR}/cmake/Modules/UHDConfig.cmake
++  ${CMAKE_BINARY_DIR}/cmake/Modules/UHDConfigVersion.cmake
++)
++
++INSTALL(
++  FILES ${cmake_configs}
++  DESTINATION ${CMAKE_MODULES_DIR}/uhd
++  COMPONENT library
++)
++
++########################################################################
+ # Handle pre-built images
+ ########################################################################
+ IF(DEFINED UHD_IMAGES_DIR AND EXISTS &quot;${UHD_IMAGES_DIR}&quot;)
+--- /dev/null
++++ host/cmake/Modules/UHDConfig.cmake
+@@ -0,0 +1,93 @@
++#
++# Copyright 2014 Ettus Research LLC
++#
++# This program is free software: you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation, either version 3 of the License, or
++# (at your option) any later version.
++#
++# This program is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
++#
++########################################################################
++#
++# Find the header &lt;uhd/config.hpp&gt; and library &quot;libuhd&quot; for the USRP
++# Hardware Driver.  Priorty for prefix search is:
++# 1) ENV(UHD_DIR)
++# 2) pkg-config results, if available;
++# 3) CMAKE_INSTALL_PREFIX
++# 4) /usr/local/
++# 5) /usr/
++#
++# Version info is handled by UHDConfigVersion.cmake only; not here.
++#
++########################################################################
++
++# set that this file was found, for use in GNU Radio's FindUHD.cmake.
++# Have to use the ENV, since this file might not allow CACHE changes.
++
++set(ENV{UHD_CONFIG_USED} TRUE)
++
++# set default values
++
++SET(UHD_FOUND TRUE)
++SET(UHD_INCLUDE_HINTS)
++SET(UHD_LIBDIR_HINTS)
++SET(UHD_DIR $ENV{UHD_DIR})
++
++IF(UHD_DIR)
++    LIST(APPEND UHD_INCLUDE_HINTS ${UHD_DIR}/include)
++    LIST(APPEND UHD_LIBDIR_HINTS ${UHD_DIR}/lib)
++ENDIF()
++
++INCLUDE(FindPkgConfig)
++IF(PKG_CONFIG_FOUND)
++  IF(NOT ${CMAKE_VERSION} VERSION_LESS &quot;2.8.0&quot;)
++    SET(UHD_QUIET &quot;QUIET&quot;)
++  ENDIF()
++  PKG_CHECK_MODULES(PC_UHD ${UHD_QUIET} uhd)
++  IF(PC_UHD_FOUND)
++    LIST(APPEND UHD_INCLUDE_HINTS ${PC_UHD_INCLUDEDIR})
++    LIST(APPEND UHD_LIBDIR_HINTS ${PC_UHD_LIBDIR})
++  ENDIF()
++ENDIF()
++
++LIST(APPEND UHD_INCLUDE_HINTS ${CMAKE_INSTALL_PREFIX}/include)
++LIST(APPEND UHD_LIBDIR_HINTS ${CMAKE_INSTALL_PREFIX}/lib)
++
++# Verify that &lt;uhd/config.hpp&gt; and libuhd are available, and, if a
++# version is provided, that UHD meets the version requirements -- no
++# matter what pkg-config might think.
++
++FIND_PATH(
++    UHD_INCLUDE_DIRS
++    NAMES uhd/config.hpp
++    HINTS ${UHD_INCLUDE_HINTS}
++    PATHS /usr/local/include
++          /usr/include
++)
++
++FIND_LIBRARY(
++    UHD_LIBRARIES
++    NAMES uhd
++    HINTS ${UHD_LIBDIR_HINTS}
++    PATHS /usr/local/lib
++          /usr/lib
++)
++
++IF(UHD_LIBRARIES AND UHD_INCLUDE_DIRS)
++
++  INCLUDE(FindPackageHandleStandardArgs)
++  FIND_PACKAGE_HANDLE_STANDARD_ARGS(UHD DEFAULT_MSG UHD_LIBRARIES UHD_INCLUDE_DIRS)
++  MARK_AS_ADVANCED(UHD_LIBRARIES UHD_INCLUDE_DIRS)
++
++ELSEIF(UHD_FIND_REQUIRED)
++
++  MESSAGE(FATAL_ERROR &quot;UHD is required, but was not found.&quot;)
++
++ENDIF()
+--- /dev/null
++++ host/cmake/Modules/UHDConfigVersion.cmake.in
+@@ -0,0 +1,166 @@
++#
++# Copyright 2014 Ettus Research LLC
++#
++# This program is free software: you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation, either version 3 of the License, or
++# (at your option) any later version.
++#
++# This program is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
++#
++
++########################################################################
++# When &quot;find_package&quot; is provided with UHD and a version, this file is
++# called to try to determine if the requested version matches that
++# provided by this UHD install.  All version checking is done herein.
++########################################################################
++
++# set that this file was found, for use in GNU Radio's FindUHD.cmake.
++# Have to use the ENV, since this file might not allow CACHE changes.
++
++set(ENV{UHD_CONFIG_VERSION_USED} TRUE)
++
++# version values as set in cmake/Modules/UHDVersion.cmake, placed
++# statically in here to avoid using Python all over again.
++
++SET(MAJOR_VERSION @TRIMMED_VERSION_MAJOR@)
++SET(MINOR_VERSION @TRIMMED_VERSION_MINOR@)
++SET(PATCH_VERSION @TRIMMED_VERSION_PATCH@)
++
++SET(PACKAGE_VERSION @TRIMMED_UHD_VERSION@)
++SET(ENV{UHD_PACKAGE_VERSION} ${PACKAGE_VERSION})
++
++# There is a bug in CMake whereby calling &quot;find_package(FOO)&quot; within
++# &quot;find_package(FOO)&quot; results in the version being checked in the
++# second version no matter if it was set.  To get around this, check
++# &quot;PACKAGE_FIND_VERSION&quot; and if empty set return variables to TRUE to
++# make CMake happy.  Not the best solution, but it does the trick.
++
++IF(NOT PACKAGE_FIND_VERSION)
++  SET(PACKAGE_VERSION_COMPATIBLE TRUE)
++  SET(PACKAGE_VERSION_EXACT TRUE)
++  RETURN()
++ENDIF(NOT PACKAGE_FIND_VERSION)
++
++# assume incorrect versioning by default
++SET(PACKAGE_VERSION_COMPATIBLE FALSE)
++SET(PACKAGE_VERSION_EXACT FALSE)
++
++# do not use ABI for now
++SET(UHD_USE_ABI FALSE)
++
++# leave the ABI checking in, for now, just in case it is wanted in the
++# future.  This code works nicely to find the ABI compatibility
++# version from &lt;uhd/version.hpp&gt;.
++IF(UHD_USE_ABI)
++
++  # find ABI compatible version from &lt;uhd/version.hpp&gt;
++
++  SET(UHD_INCLUDE_HINTS)
++  SET(UHD_DIR $ENV{UHD_DIR})
++
++  IF(UHD_DIR)
++    LIST(APPEND UHD_INCLUDE_HINTS ${UHD_DIR}/include)
++  ENDIF()
++
++  INCLUDE(FindPkgConfig)
++  IF(PKG_CONFIG_FOUND)
++    IF(NOT ${CMAKE_VERSION} VERSION_LESS &quot;2.8.0&quot;)
++      SET(UHD_QUIET &quot;QUIET&quot;)
++    ENDIF()
++    IF(PACKAGE_VERSION_EXACT)
++      PKG_CHECK_MODULES(PC_UHD ${UHD_QUIET} uhd=${UHD_FIND_VERSION})
++    ELSE()
++      PKG_CHECK_MODULES(PC_UHD ${UHD_QUIET} uhd&gt;=${UHD_FIND_VERSION})
++    ENDIF()
++    IF(PC_UHD_FOUND)
++      LIST(APPEND UHD_INCLUDE_HINTS ${PC_UHD_INCLUDEDIR})
++    ENDIF()
++  ENDIF()
++
++  LIST(APPEND UHD_INCLUDE_HINTS ${CMAKE_INSTALL_PREFIX}/include)
++
++  # Verify that &lt;uhd/config.hpp&gt; and libuhd are available, and, if a
++  # version is provided, that UHD meets the version requirements -- no
++  # matter what pkg-config might think.
++
++  FIND_PATH(
++    UHD_INCLUDE_DIR
++    NAMES uhd/version.hpp
++    HINTS ${UHD_INCLUDE_HINTS}
++    PATHS /usr/local/include
++          /usr/include
++  )
++
++  IF(UHD_INCLUDE_DIR)
++
++    # extract the UHD API version from the installed header
++
++    FILE(STRINGS &quot;${UHD_INCLUDE_DIR}/uhd/version.hpp&quot;
++      UHD_STRING_VERSION REGEX &quot;UHD_VERSION_ABI_STRING&quot;)
++    STRING(REGEX MATCH &quot;[0-9]+\\.[0-9]+\\.[0-9]+&quot;
++      UHD_ABI_VERSION_CONCISE ${UHD_STRING_VERSION})
++
++    # convert UHD_FIND_VERSION into concise #.#.# format for comparison
++
++    STRING(REGEX REPLACE &quot;([^\\.]*)\\.([^\\.]*)\\.([^\\.]*)&quot;
++      &quot;\\1.\\2.\\3&quot; UHD_ABI_VERSION_TMP ${UHD_ABI_VERSION_CONCISE})
++
++    STRING(REPLACE &quot;0&quot; &quot;&quot; UHD_ABI_MAJOR ${CMAKE_MATCH_1})
++    STRING(REPLACE &quot;0&quot; &quot;&quot; UHD_ABI_MINOR ${CMAKE_MATCH_2})
++    STRING(REPLACE &quot;0&quot; &quot;&quot; UHD_ABI_PATCH ${CMAKE_MATCH_3})
++
++    # fix the case where the version number is &quot;000&quot;
++
++    IF(NOT UHD_ABI_MAJOR)
++      SET(UHD_ABI_MAJOR &quot;0&quot;)
++    ENDIF()
++    IF(NOT UHD_ABI_MINOR)
++      SET(UHD_ABI_MINOR &quot;0&quot;)
++    ENDIF()
++    IF(NOT UHD_ABI_PATCH)
++      SET(UHD_ABI_PATCH &quot;0&quot;)
++    ENDIF()
++
++    SET(UHD_ABI_VERSION_CONCISE ${UHD_ABI_MAJOR}.${UHD_ABI_MINOR}.${UHD_ABI_PATCH})
++
++  ELSE(UHD_INCLUDE_DIR)
++
++    # no header found ... not a good sign!  Assume ABI version is the
++    # same as that known internally here.  Let UHDConfig.cmake fail if
++    # it cannot find &lt;uhd/config.hpp&gt; or &quot;libuhd&quot; ...
++
++    SET(UHD_ABI_VERSION_CONCISE ${PACKAGE_VERSION})
++
++  ENDIF(UHD_INCLUDE_DIR)
++
++  # check for ABI compatibility, both:
++  #   ACTUAL VERSION &gt;= DESIRED VERSION &gt;= ABI VERSION
++
++  IF(NOT ${PACKAGE_FIND_VERSION} VERSION_LESS ${UHD_ABI_VERSION_CONCISE} AND
++     NOT ${PACKAGE_FIND_VERSION} VERSION_GREATER ${PACKAGE_VERSION})
++    SET(PACKAGE_VERSION_COMPATIBLE TRUE)
++  ENDIF()
++
++ELSE(UHD_USE_ABI)
++
++  # use API only, and assume compatible of requested &lt;= actual
++  # which is the same as &quot;not &gt;&quot;
++
++  IF(NOT ${PACKAGE_FIND_VERSION} VERSION_GREATER ${PACKAGE_VERSION})
++    SET(PACKAGE_VERSION_COMPATIBLE TRUE)
++  ENDIF()
++
++ENDIF(UHD_USE_ABI)
++
++# check for exact version
++
++IF(${PACKAGE_FIND_VERSION} VERSION_EQUAL ${PACKAGE_VERSION})
++  SET(PACKAGE_VERSION_EXACT TRUE)
++ENDIF()
</ins></span></pre>
</div>
</div>

</body>
</html>