<pre style='margin:0'>
Michael Dickens (michaelld) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/61b76571b1ef4495f910d673ea3b36f45631f8ad">https://github.com/macports/macports-ports/commit/61b76571b1ef4495f910d673ea3b36f45631f8ad</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 61b76571b1e libiio: update to 0.24
</span>61b76571b1e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 61b76571b1ef4495f910d673ea3b36f45631f8ad
</span>Author: Michael Dickens <michaelld@macports.org>
AuthorDate: Mon Dec 5 13:15:16 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> libiio: update to 0.24
</span>---
science/libiio/Portfile | 52 ++++++++++++++++++++++---------
science/libiio/files/patch-fix_build.diff | 20 +++++++-----
2 files changed, 49 insertions(+), 23 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/libiio/Portfile b/science/libiio/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ba25209fa79..4d3cdbd477f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/libiio/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/libiio/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,11 +13,11 @@ license LGPL-2+
</span> platforms darwin
# release
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup analogdevicesinc libiio 0.23 v
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 580346796560625738b25d61602e7ed5abe4fb08 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 8349b93866b4867cc4edb4e5b8a1dd2e53d753d101be7b47224145e5614dab66 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 454157
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup analogdevicesinc libiio 0.24 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 5c214e103c2527ace2b8e4ff5cf46d5ff0210115 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 3680d53aa129ca2ebaac009fecc88b9f4e79d1c3ad03067c16321d25b91ee779 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 483053
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span>
long_description ${long_description} Provides the release, which is typically updated every few months to yearly.
# because I moved from a "devel" style 20190503 to a release style
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -55,8 +55,6 @@ depends_build-append \
</span>
configure.ldflags-delete -L${prefix}/lib
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# directory to install all CMake files; internal appends "uhd"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> configure.args-append \
-DAVAHI_CLIENT_LIBRARIES=${prefix}/lib/libavahi-client.dylib \
-DAVAHI_COMMON_LIBRARIES=${prefix}/lib/libavahi-common.dylib \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -68,7 +66,6 @@ configure.args-append \
</span> -DZLIB_INCLUDE_DIR:PATH=${prefix}/include \
-DZLIB_LIBRARY_RELEASE:FILEPATH=${prefix}/lib/libz.dylib \
-DOSX_PACKAGE=OFF \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- -DWITH_MATLAB_BINDINGS_API=OFF \
</span> -DPYTHON_BINDINGS=ON
# specify the Python dependencies; these are checked for at configure,
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -153,13 +150,15 @@ post-destroot {
</span> ln -s ${iio_framework_top}/Versions/${iio_framework_version}/iio ${destroot}${prefix}/lib/libiio.dylib
system "install_name_tool -id ${iio_framework} ${destroot}${iio_framework}"
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # fix Tools, and link them into .../bin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 -d ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach app [glob ${iio_dr_framework_top}/Tools/*] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set non_dr_app [strsed ${app} "s@${destroot}@@"]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set lib_iio_framework [strsed ${iio_framework} "s@Library/Frameworks@lib@"]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "install_name_tool -change ${lib_iio_framework} ${iio_framework} ${app}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ln -s ${non_dr_app} ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset docs]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fix Tools, and link them into .../bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach app [glob ${iio_dr_framework_top}/Tools/*] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set non_dr_app [strsed ${app} "s@${destroot}@@"]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set lib_iio_framework [strsed ${iio_framework} "s@Library/Frameworks@lib@"]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change ${lib_iio_framework} ${iio_framework} ${app}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${non_dr_app} ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
# link includes into .../include
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -169,6 +168,29 @@ post-destroot {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+variant docs description {build documentation} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:bin/doxygen:doxygen \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:man \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${selected_python_no_dot}-sphinx \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${selected_python_no_dot}-sphinx_rtd_theme
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_MAN=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_DOC=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_TESTS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DSPHINX_EXECUTABLE=${prefix}/bin/sphinx-build-${selected_python_with_dot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![variant_isset docs]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_MAN=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_DOC=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_TESTS=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # overload the github livecheck regex to look for versions that
# are just numbers and '.', no letters (e.g., "3.7.3_rc2").
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/libiio/files/patch-fix_build.diff b/science/libiio/files/patch-fix_build.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index af29a490451..d7ed16458d4 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/libiio/files/patch-fix_build.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/libiio/files/patch-fix_build.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,19 +25,23 @@
</span> if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
"Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel."
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -43,16 +47,23 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -43,17 +47,24 @@
</span> add_definitions(-DLIBIIO_STATIC=1)
endif()
<span style='display:block; white-space:pre;background:#e0ffe0;'>+-option(OSX_FRAMEWORK "Create a OSX_FRAMEWORK" ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND OSX_FRAMEWORK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- option(OSX_PACKAGE "Create a OSX package" ON)
</span> +# Darwin-specific settings
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- option(OSX_PACKAGE "Create a OSX package" ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ option(OSX_FRAMEWORK "Create a OSX Framework" ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ option(OSX_PACKAGE "Create a OSX Package" ON)
</span>
- set(OSX_INSTALL_FRAMEWORKSDIR "/Library/Frameworks" CACHE STRING "Installation directory for frameworks")
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ # Set the default install location if not provided
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (NOT OSX_INSTALL_FRAMEWORKSDIR)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # Set the default install location if not provided
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (NOT OSX_INSTALL_FRAMEWORKSDIR)
</span> + set (OSX_INSTALL_FRAMEWORKSDIR "/Library/Frameworks" CACHE STRING "Installation directory for frameworks")
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ endif ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif ()
</span> get_filename_component(OSX_INSTALL_FRAMEWORKSDIR "${OSX_INSTALL_FRAMEWORKSDIR}" REALPATH BASE_DIR "${CMAKE_BINARY_DIR}")
set(CMAKE_MACOSX_RPATH ON)
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -50,12 +54,12 @@
</span> option(WITH_NETWORK_BACKEND "Enable the network backend" ON)
option(WITH_TESTS "Build the test programs" ON)
option(WITH_EXAMPLES "Build examples" OFF)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -290,8 +301,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -317,8 +328,6 @@
</span> include_directories(${LIBZSTD_INCLUDE_DIR})
endif (WITH_ZSTD)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
-
if(WITH_NETWORK_BACKEND)
<span style='display:block; white-space:pre;background:#ffe0e0;'>- message(STATUS "Building with Network back end support")
</span> if (WIN32)
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ list(APPEND LIBS_TO_LINK wsock32 iphlpapi ws2_32)
</span></pre><pre style='margin:0'>
</pre>