<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/bc5122cd02814c926c517480b58cfad98d7436fe">https://github.com/macports/macports-ports/commit/bc5122cd02814c926c517480b58cfad98d7436fe</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 bc5122c libad9361-iio: new port
</span><span style='display:block; white-space:pre;color:#404040;'> new 5dee209 Merge branch 'master' of https://github.com/macports/macports-ports
</span>bc5122c is described below
<span style='display:block; white-space:pre;color:#808000;'>commit bc5122cd02814c926c517480b58cfad98d7436fe
</span>Author: Michael Dickens <michaelld@macports.org>
AuthorDate: Wed Sep 19 13:44:53 2018 -0700
<span style='display:block; white-space:pre;color:#404040;'> libad9361-iio: new port
</span>---
science/libad9361-iio/Portfile | 64 ++++++++++++++++++++++++
science/libad9361-iio/files/patch-fix_build.diff | 14 ++++++
2 files changed, 78 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/libad9361-iio/Portfile b/science/libad9361-iio/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..8779852
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/libad9361-iio/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,64 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name libad9361-iio
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories science comms
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {michaelld @michaelld} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description ${name} is an IIO AD9361 library for filter design and handling, multi-chip sync, and more
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${description}. This is a simple library used for userspace, which manages multi-chip sync \(on platforms \[FMCOMMS5\] where multiple AD9361 devices are use\) can create AD9361 specific FIR filters on the fly. Provides the GIT master branch version, which is typically updated every few days to week.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license LGPL-2+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup analogdevicesinc libad9361-iio 3eec70e205e41e1bd0056ea9d43218d423d64f20
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 20180913
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 41c1894aa8229fcc93fec445e7cbc56792ea75f5 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 163f4be59b492ffa64d75be0f031e210364acee22d481ca5198e34ce99174694 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 114526
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# patch to fix install IIO header inclusion
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-fix_build.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append path:lib/libiio.dylib:libiio
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# do VPATH (out of source tree) build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake.out_of_source yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# remove top-level library path, such that internal libraries are used
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# instead of any already-installed ones.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.ldflags-delete -L${prefix}/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# directory to install all CMake files; internal appends "uhd"
</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;'>+ -DOSX_PACKAGE=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLIBIIO_INCLUDEDIR=${prefix}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLIBIIO_LIBRARIES=${prefix}/lib/libiio.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # link from ad9361.framework to normal
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set ad9361_framework_version 0.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set ad9361_framework_top ${frameworks_dir}/ad9361.framework/Versions/${ad9361_framework_version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set ad9361_dr_framework_top ${destroot}${ad9361_framework_top}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set ad9361_framework ${ad9361_framework_top}/ad9361
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fix ad9361 library & link it into .../lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${destroot}${frameworks_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/lib/ad9361.framework ${destroot}${frameworks_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${ad9361_framework} ${destroot}${prefix}/lib/libad9361.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -id ${ad9361_framework} ${destroot}${ad9361_framework}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # link includes into .../include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${destroot}${prefix}/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach header [glob ${ad9361_dr_framework_top}/Headers/*] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s [strsed ${header} "s@${destroot}@@"] ${destroot}${prefix}/include
</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;color:#808080;'>diff --git a/science/libad9361-iio/files/patch-fix_build.diff b/science/libad9361-iio/files/patch-fix_build.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..e3657cc
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/libad9361-iio/files/patch-fix_build.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- test/filter_designer_hw.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ test/filter_designer_hw.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -7,11 +7,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <string.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <iio/iio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <iio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int main(void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span></pre><pre style='margin:0'>
</pre>