svn commit: r521255 - in head/graphics/exact-image: . files
Matthias Andree
mandree at FreeBSD.org
Sun Dec 29 03:24:25 UTC 2019
Author: mandree
Date: Sun Dec 29 03:24:24 2019
New Revision: 521255
URL: https://svnweb.freebsd.org/changeset/ports/521255
Log:
Move from c++03 to c++11
This adds a few constexpr keywords to bardecode/code25i.hh.
Needed in order to permit OpenEXR update to 2.4.0 later, which
uses rvalue references (a C++11 feature) in its headers.
Added:
head/graphics/exact-image/files/patch-bardecode_code25i.hh (contents, props changed)
Modified:
head/graphics/exact-image/Makefile
Modified: head/graphics/exact-image/Makefile
==============================================================================
--- head/graphics/exact-image/Makefile Sun Dec 29 01:17:41 2019 (r521254)
+++ head/graphics/exact-image/Makefile Sun Dec 29 03:24:24 2019 (r521255)
@@ -34,7 +34,7 @@ LIB_DEPENDS= libagg.so:graphics/agg \
#broken headers on c++ in base system:
CPPFLAGS+= -fpermissive -I${LOCALBASE}/include
USES= gmake jpeg perl5 pkgconfig python:2.7 tar:bzip2 xorg
-USE_CXXSTD= c++03
+USE_CXXSTD= c++11
USE_XORG= x11
HAS_CONFIGURE= yes
INSTALL_WRKSRC= ${WRKSRC}/objdir
Added: head/graphics/exact-image/files/patch-bardecode_code25i.hh
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/exact-image/files/patch-bardecode_code25i.hh Sun Dec 29 03:24:24 2019 (r521255)
@@ -0,0 +1,19 @@
+--- bardecode/code25i.hh.orig 2019-01-28 12:12:58 UTC
++++ bardecode/code25i.hh
+@@ -31,11 +31,11 @@ namespace BarDecode
+ static const int END_SEQUENCE = 0xD;
+ static const char no_entry = 0;
+
+- static const double n_lq = 15;
+- static const double n_hq = 5.3;
+- static const double w_lq = 5.2;
+- static const double w_hq = 1.5;
+- static const double tol = 0.2;
++ static constexpr const double n_lq = 15;
++ static constexpr const double n_hq = 5.3;
++ static constexpr const double w_lq = 5.2;
++ static constexpr const double w_hq = 1.5;
++ static constexpr const double tol = 0.2;
+
+ static const usize_t min_quiet_usize = 5;
+ //static const usize_t min_quiet_usize = 10;
More information about the svn-ports-all
mailing list