ports/comms/gnuradio/files/patch-cmake_Modules_GrMiscUtils.cmake
Diane Bruce 6ef184451e Update to 3.7.10.1
Note temporary hack in CMakeLists.txt to fix build with -gsl
link_directories("/usr/lib" "${LOCALBASE}/lib")
This is from a missing -L somewhere in the swig generation code that
needs to be fixed.

ChangeLog v3.7.10.1
=================

This is the first bug-fix release for v3.7.10

Contributors
------------

The following list of people directly contributed code to this
release:

 * Artem Pisarenko <ArtemPisarenko@users.noreply.github.com>
 * Ben Hilburn <ben.hilburn@ettus.com>
 * Christopher Chavez <chrischavez@gmx.us>
 * Johnathan Corgan <johnathan@corganlabs.com>
 * Jonathan Brucker <jonathan.brucke@gmail.com>
 * Nicholas Corgan <n.corgan@gmail.com>
 * Nicolas Cuervo <nicolas.cuervo@ettus.com>
 * Ron Economos <w6rz@comcast.net>
 * Sebastian Koslowski <koslowski@kit.edu>
 * Stephen Larew <stephen@slarew.net>

## Major Development Areas

This contains bug fixes primarily for GRC and DTV.

### GRC

Catch more exceptions thrown by ConfigParser when reading corrupted grc.conf files.

Fix the docstring update error for empty categories.

Fix grcc to call refactored GRC code.

Convert initially opened files to absolute paths to prevent attempting to read from tmp.

Move startup checks back in to gnuradio-companion script from grc/checks.py.

### DTV

Fix a segfault that occurs from out-of-bounds access in
dvbt_bit_inner_interleaver forecast by forecasting an enumerated list of all
input streams.

Fix VL-SNR framing.

### Digital

Enable update rate in block_recovery_mm blocks to keep tags close to the the proper clock-recovered sample time. Tag offsets will still be off between calls to work, but each work call updates the tag rate.

### Analog

Fix the derivative calculation in fmdet block.

### Builds

Fix linking GSL to gr-fec.

Use gnu99 C standard rather than gnu11 standard to maintain support for GCC 4.6.3.

### Other

Minor spelling and documentation fixes.

Fix uhd_siggen_gui when using lo_locked.
2017-01-07 19:06:33 +00:00

34 lines
1.6 KiB
CMake

--- cmake/Modules/GrMiscUtils.cmake.orig 2016-09-02 04:16:12 UTC
+++ cmake/Modules/GrMiscUtils.cmake
@@ -148,7 +148,31 @@ function(GR_LIBRARY_FOO target)
ARCHIVE DESTINATION ${GR_LIBRARY_DIR} COMPONENT ${GR_LIBRARY_DEVEL_COMPONENT} # .lib file
RUNTIME DESTINATION ${GR_RUNTIME_DIR} COMPONENT ${GR_LIBRARY_RUNTIME_COMPONENT} # .dll file
)
+
+
+ if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
+ #create .la file
+ GR_LIBTOOL(TARGET ${target} DESTINATION ${GR_LIBRARY_DIR})
+ set_target_properties(${target} PROPERTIES OUTPUT_NAME ${target} SOVERSION ${LIBVER})
+ set(target_name lib${target}.so.${LIBVER})
+
+ #custom command to generate symlinks
+ add_custom_command(
+ TARGET ${target}
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E create_symlink ${target_name} "${CMAKE_CURRENT_BINARY_DIR}/lib${target}.so"
+ COMMAND ${CMAKE_COMMAND} -E create_symlink ${target_name} "${CMAKE_CURRENT_BINARY_DIR}/lib${target}.so.${MAJOR_VERSION}"
+ COMMAND ${CMAKE_COMMAND} -E touch ${target_name} #so the symlinks point to something valid so cmake 2.6 will install
+ )
+ #and install the extra symlinks
+ install(
+ FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/lib${target}.so.${MAJOR_VERSION}
+ ${CMAKE_CURRENT_BINARY_DIR}/lib${target}.so.${LIBVER}
+ DESTINATION ${GR_LIBRARY_DIR} COMPONENT ${GR_LIBRARY_RUNTIME_COMPONENT}
+ )
+ endif()
#extras mode enabled automatically on linux
if(NOT DEFINED LIBRARY_EXTRAS)
set(LIBRARY_EXTRAS ${LINUX})