<pre style='margin:0'>
tenomoto pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/dc95fde4063454fc234ec93d97c4af41f69f6b7b">https://github.com/macports/macports-ports/commit/dc95fde4063454fc234ec93d97c4af41f69f6b7b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit dc95fde4063454fc234ec93d97c4af41f69f6b7b
</span>Author: Takeshi Enomoto <takeshi@macports.org>
AuthorDate: Tue Nov 15 17:44:25 2016 +0900

<span style='display:block; white-space:pre;color:#404040;'>    ncarg: fix problem with ncarg
</span>---
 science/ncarg/Portfile                        |  5 +++--
 science/ncarg/files/patch-enc_jpeg2000.c.diff | 11 +++++++++++
 2 files changed, 14 insertions(+), 2 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/ncarg/Portfile b/science/ncarg/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index cdca865..be39418 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/ncarg/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/ncarg/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -10,7 +10,7 @@ compilers.setup             -clang -dragonegg -gfortran -llvm
</span> 
 name                        ncarg
 version                     6.3.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision                    7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision                    8
</span> categories                  science
 platforms                   darwin
 maintainers                 takeshi openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -96,6 +96,7 @@ pre-configure {
</span>     if {$build_arch eq "x86_64" || $build_arch eq "ppc64"} {
         reinplace "s|-DUSE_PNG$|-DUSE_PNG -D__64BIT__|" ${workpath}/${g2clib_worksrcdir}/makefile
     }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    system -W ${workpath}/${g2clib_worksrcdir} "patch -p0 < ${filespath}/patch-enc_jpeg2000.c.diff"
</span>     system -W ${workpath}/${g2clib_worksrcdir} "make all"
     file copy ${workpath}/${g2clib_worksrcdir}/libgrib2c.a ${worksrcpath}
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -203,7 +204,7 @@ post-build {
</span> }
 
 if {![fortran_variant_isset]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    default_variants-append +gcc5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    default_variants-append +gcc6
</span> }
 
 if {[variant_isset g95]} {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/ncarg/files/patch-enc_jpeg2000.c.diff b/science/ncarg/files/patch-enc_jpeg2000.c.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..4088b73
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/ncarg/files/patch-enc_jpeg2000.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- enc_jpeg2000.c.orig    2014-01-07 09:43:18.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ enc_jpeg2000.c 2016-11-15 16:37:54.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -121,7 +121,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     image.clrspc_=JAS_CLRSPC_SGRAY;         /* grayscale Image */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     image.cmprof_=0; 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    image.inmem_=1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++//    image.inmem_=1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     cmpt.tlx_=0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     cmpt.tly_=0;
</span></pre><pre style='margin:0'>

</pre>