Index: graphics/pfstools/Makefile =================================================================== --- graphics/pfstools/Makefile +++ graphics/pfstools/Makefile @@ -3,7 +3,7 @@ PORTNAME= pfstools PORTVERSION= 1.8.5 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= graphics MASTER_SITES= SF @@ -79,7 +79,7 @@ octave_CMD?= ${OCTAVE_BASE}/bin/octave .endif -post-install: +post-stage: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib//libpfs-1.2.so.0.0.0 .include Index: graphics/pfstools/files/patch-src-filter-pfswb.cpp =================================================================== --- graphics/pfstools/files/patch-src-filter-pfswb.cpp +++ graphics/pfstools/files/patch-src-filter-pfswb.cpp @@ -1,6 +1,6 @@ ---- src/filter/pfswb.cpp.orig 2016-02-12 17:10:27 UTC +--- src/filter/pfswb.cpp.orig 2016-08-12 19:10:44 UTC +++ src/filter/pfswb.cpp -@@ -0,0 +1,297 @@ +@@ -0,0 +1,299 @@ +/** + * @file pfswb.cpp + * @brief Adjust white balance in RGB color space @@ -184,10 +184,12 @@ + float nmin = 1e20, nmax = -1e20; + for (int i=s; i--; ) + { -+ float const &l = ((*Y)(i)-amin)*k+min; ++ float const l = ((*Y)(i)-amin)*k+min; + if (nmin > l) nmin = l; + if (nmax < l) nmax = l; + (*Y)(i) = l; ++ (*X)(i) *= k; ++ (*Z)(i) *= k; + } + VERBOSE_STR << "restored luminance range: " << nmin << ":" << nmax << std::endl; + } Index: graphics/pfstools/files/patch-src-pfs-pfs.h =================================================================== --- graphics/pfstools/files/patch-src-pfs-pfs.h +++ graphics/pfstools/files/patch-src-pfs-pfs.h @@ -43,3 +43,12 @@ } ~Exception() {}; +@@ -590,7 +596,7 @@ namespace pfs + * + * @return text description of the cause for the exception + */ +- const char* getMessage() ++ const char* getMessage() const + { + return msg; + }