aboutsummaryrefslogtreecommitdiff
path: root/graphics/enblend
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2018-02-08 07:48:49 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2018-02-08 07:48:49 +0000
commit17c279e5cef378bdb4852699962ab8f0b419491e (patch)
treec0bb7452e2639cab632de1341be31ae5ebfdda0d /graphics/enblend
parent6799d3c760e2332a1529c7d377eb6cf16a334cbc (diff)
downloadports-17c279e5cef378bdb4852699962ab8f0b419491e.tar.gz
ports-17c279e5cef378bdb4852699962ab8f0b419491e.zip
Unbreak the build against recent Clang by backporting two patches from the
upstream (issue #1537368): - Unconditional usage of std::auto_ptr<> in "vigra_ext" code: http://hg.code.sf.net/p/enblend/code/rev/467a73754dbb - Get rid of `boost::assign::map_list_of' (additional patch): http://hg.code.sf.net/p/enblend/code/rev/73e6f16de80a PR: 225557
Notes
Notes: svn path=/head/; revision=461202
Diffstat (limited to 'graphics/enblend')
-rw-r--r--graphics/enblend/files/patch-include_vigra__ext_impexalpha.hxx57
-rw-r--r--graphics/enblend/files/patch-src_filespec.cc40
2 files changed, 97 insertions, 0 deletions
diff --git a/graphics/enblend/files/patch-include_vigra__ext_impexalpha.hxx b/graphics/enblend/files/patch-include_vigra__ext_impexalpha.hxx
new file mode 100644
index 000000000000..b42521771007
--- /dev/null
+++ b/graphics/enblend/files/patch-include_vigra__ext_impexalpha.hxx
@@ -0,0 +1,57 @@
+# HG changeset patch
+# User Chris <cspiel@users.sourceforge.net>
+# Date 1453651551 -3600
+# Node ID 467a73754dbb0e269f1b515bc2ef6664ab328bfa
+# Parent 6aec0cc8d22a6fa617f983e676df68d75ffabbcf
+Fix issue #1537368: Unconditional usage of std::auto_ptr<>
+in "vigra_ext" code.
+
+diff -r 6aec0cc8d22a -r 467a73754dbb include/vigra_ext/impexalpha.hxx
+--- include/vigra_ext/impexalpha.hxx.orig 2015-08-07 14:45:05 UTC
++++ include/vigra_ext/impexalpha.hxx
+@@ -26,6 +26,9 @@
+ #include <vigra/imageinfo.hxx>
+ #include <vigra/impex.hxx>
+
++#ifndef VIGRA_UNIQUE_PTR
++#define VIGRA_UNIQUE_PTR std::auto_ptr
++#endif
+
+ namespace vigra_ext
+ {
+@@ -194,7 +197,7 @@ namespace vigra_ext
+ AlphaIterator alpha_iterator, AlphaAccessor alpha_accessor,
+ vigra::VigraTrueType)
+ {
+- std::auto_ptr<vigra::Decoder> decoder(vigra::decoder(import_info));
++ VIGRA_UNIQUE_PTR<vigra::Decoder> decoder(vigra::decoder(import_info));
+
+ switch (pixel_t_of_string(decoder->getPixelType()))
+ {
+@@ -249,7 +252,7 @@ namespace vigra_ext
+ AlphaIterator alpha_iterator, AlphaAccessor alpha_accessor,
+ vigra::VigraFalseType)
+ {
+- std::auto_ptr<vigra::Decoder> decoder(vigra::decoder(import_info));
++ VIGRA_UNIQUE_PTR<vigra::Decoder> decoder(vigra::decoder(import_info));
+
+ switch (pixel_t_of_string(decoder->getPixelType()))
+ {
+@@ -467,7 +470,7 @@ namespace vigra_ext
+ vigra::VigraTrueType)
+ {
+ const std::string pixel_type(export_info.getPixelType());
+- std::auto_ptr<vigra::Encoder> encoder(vigra::encoder(export_info));
++ VIGRA_UNIQUE_PTR<vigra::Encoder> encoder(vigra::encoder(export_info));
+
+ encoder->setPixelType(pixel_type);
+
+@@ -525,7 +528,7 @@ namespace vigra_ext
+ vigra::VigraFalseType)
+ {
+ const std::string pixel_type(export_info.getPixelType());
+- std::auto_ptr<vigra::Encoder> encoder(vigra::encoder(export_info));
++ VIGRA_UNIQUE_PTR<vigra::Encoder> encoder(vigra::encoder(export_info));
+
+ encoder->setPixelType(pixel_type);
+
diff --git a/graphics/enblend/files/patch-src_filespec.cc b/graphics/enblend/files/patch-src_filespec.cc
new file mode 100644
index 000000000000..1992187bfc72
--- /dev/null
+++ b/graphics/enblend/files/patch-src_filespec.cc
@@ -0,0 +1,40 @@
+# HG changeset patch
+# User Chris <cspiel@users.sourceforge.net>
+# Date 1455528030 -3600
+# Node ID 73e6f16de80a94175db61f82ad10d4cd96790e85
+# Parent 596efbff27a8271a4c20184163e72b5914e334bf
+Fix issue #1537368 (additional patch): Get rid of `boost::assign::map_list_of'.
+
+diff -r 596efbff27a8 -r 73e6f16de80a src/filespec.cc
+--- src/filespec.cc.orig 2015-08-07 14:45:02 UTC
++++ src/filespec.cc
+@@ -37,7 +37,6 @@
+ #include <cctype>
+
+ #include <boost/algorithm/string/case_conv.hpp>
+-#include <boost/assign/list_of.hpp>
+
+ #include <vigra/imageinfo.hxx>
+
+@@ -412,17 +411,12 @@ class Globbing
+ public:
+ Globbing() : algorithm_name_("literal"), algorithm_(NULL)
+ {
+- installed_algorithms_ =
+- boost::assign::map_list_of
+- ("literal", MAKE_ALGORITHM(new LiteralGlobbingAlgorithm))
+- ("wildcard", MAKE_ALGORITHM(new WildcardGlobbingAlgorithm))
+-#ifndef _WIN32
+- ("shell", MAKE_ALGORITHM(new ShellGlobbingAlgorithm))
+-#endif
+- ;
+-
++ installed_algorithms_["literal"] = MAKE_ALGORITHM(new LiteralGlobbingAlgorithm);
++ installed_algorithms_["wildcard"] = MAKE_ALGORITHM(new WildcardGlobbingAlgorithm);
+ setup_alias("literal", "none");
++
+ #ifndef _WIN32
++ installed_algorithms_["shell"] = MAKE_ALGORITHM(new ShellGlobbingAlgorithm);
+ setup_alias("shell", "sh");
+ #endif
+ }