summaryrefslogtreecommitdiff
path: root/www/libecap
diff options
context:
space:
mode:
authorjoerg <joerg>2016-06-21 17:57:07 +0000
committerjoerg <joerg>2016-06-21 17:57:07 +0000
commita30d57cc9e2e74c08991150021104284eabc4901 (patch)
tree598bed16ac6122d4c61a7c14aca6a8ec144c6944 /www/libecap
parent9a3ae44737db74e0d31665d96873028cc73e77b6 (diff)
downloadpkgsrc-a30d57cc9e2e74c08991150021104284eabc4901.tar.gz
Don't use the obsolete TR1 interface for C++11 or libc++. Bump revision.
Diffstat (limited to 'www/libecap')
-rw-r--r--www/libecap/Makefile3
-rw-r--r--www/libecap/distinfo3
-rw-r--r--www/libecap/patches/patch-src_libecap_common_memory.h30
3 files changed, 34 insertions, 2 deletions
diff --git a/www/libecap/Makefile b/www/libecap/Makefile
index 8b9f308d340..05a752e7828 100644
--- a/www/libecap/Makefile
+++ b/www/libecap/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2016/06/17 16:39:55 prlw1 Exp $
+# $NetBSD: Makefile,v 1.2 2016/06/21 17:57:07 joerg Exp $
DISTNAME= libecap-1.0.1
+PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.measurement-factory.com/tmp/ecap/
diff --git a/www/libecap/distinfo b/www/libecap/distinfo
index bfc0912bbd6..6f82e369baa 100644
--- a/www/libecap/distinfo
+++ b/www/libecap/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2016/06/17 16:39:55 prlw1 Exp $
+$NetBSD: distinfo,v 1.2 2016/06/21 17:57:07 joerg Exp $
SHA1 (libecap-1.0.1.tar.gz) = 89533c2ac77fee7b26f53c20c25a1423ce1498b7
RMD160 (libecap-1.0.1.tar.gz) = 72cac0074be057805511d33156baacb0eeaef4ed
SHA512 (libecap-1.0.1.tar.gz) = 0054ad11b3f558d7c623060a69207a1b8e679803cabdf1a2bce4b04335d71c016eec770fc9d2cbf3d0a93502c255cb528305f9f8e6df4e095fcb980667045919
Size (libecap-1.0.1.tar.gz) = 339799 bytes
+SHA1 (patch-src_libecap_common_memory.h) = 674ed41deea66df513e523ccb40169f961448a0d
diff --git a/www/libecap/patches/patch-src_libecap_common_memory.h b/www/libecap/patches/patch-src_libecap_common_memory.h
new file mode 100644
index 00000000000..848366cc238
--- /dev/null
+++ b/www/libecap/patches/patch-src_libecap_common_memory.h
@@ -0,0 +1,30 @@
+$NetBSD: patch-src_libecap_common_memory.h,v 1.1 2016/06/21 17:57:07 joerg Exp $
+
+--- src/libecap/common/memory.h.orig 2016-06-20 16:15:17.012240492 +0000
++++ src/libecap/common/memory.h
+@@ -4,14 +4,24 @@
+ #define LIBECAP__COMMON_MEMORY_H
+
+ #include <libecap/common/libecap.h>
++#include <ciso646>
++
++#if __cplusplus >= 201103L || defined(_LIBCPP_VERSION)
++#include <functional>
++#else
+ #include <tr1/memory>
++#endif
+
+ // TODO: add support for boost pointers if std::tr1 is not available
+
+ namespace libecap {
+-
++#if __cplusplus >= 201103L || defined(_LIBCPP_VERSION)
++using std::weak_ptr;
++using std::shared_ptr;
++#else
+ using std::tr1::weak_ptr;
+ using std::tr1::shared_ptr;
++#endif
+
+ } // namespace libecap
+