<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/dea34f32fc728ebcb67aa507a8e0efaba0f21988">https://github.com/macports/macports-ports/commit/dea34f32fc728ebcb67aa507a8e0efaba0f21988</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 dea34f3 iulib: Fix build failure
</span>dea34f3 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit dea34f32fc728ebcb67aa507a8e0efaba0f21988
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sat Feb 8 04:00:24 2020 -0600
<span style='display:block; white-space:pre;color:#404040;'> iulib: Fix build failure
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/42353
</span>---
graphics/iulib/Portfile | 17 ++++++++++++-----
graphics/iulib/files/imgops.patch | 26 ++++++++++++++++++++++++++
graphics/iulib/files/narray-util.patch | 23 +++++++++++++++++++++++
3 files changed, 61 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/iulib/Portfile b/graphics/iulib/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 9255137..0318b2d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/iulib/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/iulib/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,6 +5,11 @@ PortGroup github 1.0
</span>
github.setup tmbdev iulib b2b66dbcbbbfcb4aac0784ea9f07db998077dbc1
version 0.4-20141216
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 65fc45ab177bc74fd839f6ccb72fb4616289697a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 dae24fd427ae7e1c514b37054341823499b719418c5717691477623b731d72ed \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1525706
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> categories graphics
license Apache-2
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -16,9 +21,6 @@ long_description ${name} is a library of image understanding-related \
</span> algorithms. It provides basic image processing, \
mathematical morphology, and machine learning algorithms.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 65fc45ab177bc74fd839f6ccb72fb4616289697a \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 dae24fd427ae7e1c514b37054341823499b719418c5717691477623b731d72ed
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> depends_build port:scons
depends_lib port:libpng \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -30,7 +32,9 @@ depends_lib port:libpng \
</span> port:libsdl_gfx
patchfiles patch-SConstruct.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-components.cc.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-components.cc.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ imgops.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ narray-util.patch
</span>
post-patch {
reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/SConstruct
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -48,6 +52,9 @@ build.env "CC=${configure.cc}" \
</span> "CXXFLAGS=${configure.cxxflags} [get_canonical_archflags cxx]" \
"LINKFLAGS=${configure.ldflags} [get_canonical_archflags ld]"
# you can remove the build.args test=yes, but it nice to know they work
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.args test=yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# tests do NOT work (presumably on OS X 10.11 and later):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# dyld: Library not loaded: /opt/local/lib/libiulib.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#build.args test=yes
</span>
destroot.destdir prefix=${destroot}${prefix}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.env {*}${build.env}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/iulib/files/imgops.patch b/graphics/iulib/files/imgops.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..f92740c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/iulib/files/imgops.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,26 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix redeclaration of void iulib::addscaled
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/tmbarchive/iulib/issues/2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/tmbarchive/iulib/issues/3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/tmbarchive/iulib/pull/4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- imglib/imgops.cc.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ imglib/imgops.cc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -133,7 +133,7 @@ namespace iulib {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ template<class T,class V>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void addscaled(narray<T> &dest,narray<T> &src,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- V scale=1,int dx=0,int dy=0) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ V scale,int dx,int dy) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for (int i=0; i<dest.dim(0); i++)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for (int j=0; j<dest.dim(1); j++)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dest.unsafe_at(i,j) += (T)(scale*xref(src,i+dx,j+dy));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- imglib/imgops.h.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ imglib/imgops.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -67,7 +67,7 @@ namespace iulib {
</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;'>+ template<class T, class V>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- void addscaled(colib::narray<T> &, colib::narray<T> &, V, int, int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ void addscaled(colib::narray<T> &, colib::narray<T> &, V scale=1,int dx=0,int dy=0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ template<class T>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void tighten(colib::narray<T> &image);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ template<class T>
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/iulib/files/narray-util.patch b/graphics/iulib/files/narray-util.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..54922e0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/iulib/files/narray-util.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,23 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix an error that prevents C++ applications from building when including
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+narray-util.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/tmbarchive/iulib/pull/4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- colib/narray-util.h.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ colib/narray-util.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -31,7 +31,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifndef h_narray_util__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define h_narray_util__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <math.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <cmath>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "colib/checks.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "misc.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -176,7 +176,7 @@ namespace colib {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ double total = 0.0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for(int i=0;i<a.length1d();i++)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ total += sqr(a.at1d(i)-b.at1d(i));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CHECK_ARG(!isnan(total));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ CHECK_ARG(!std::isnan(total));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return total;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>