aboutsummaryrefslogtreecommitdiffstats
path: root/biology
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2016-12-18 13:34:42 +0800
committermarino <marino@FreeBSD.org>2016-12-18 13:34:42 +0800
commitdde5761b57b257d378f42f852a59f8589b18a74b (patch)
treeda5077ef2da36276bfd3ded9ae9a1cc96f0cf4ea /biology
parent883325d4267340b966c9198a4c92090b60deeab4 (diff)
downloadfreebsd-ports-gnome-dde5761b57b257d378f42f852a59f8589b18a74b.tar.gz
freebsd-ports-gnome-dde5761b57b257d378f42f852a59f8589b18a74b.tar.zst
freebsd-ports-gnome-dde5761b57b257d378f42f852a59f8589b18a74b.zip
biology/protomol: Support build with C++11 (taken from dports)
Diffstat (limited to 'biology')
-rw-r--r--biology/protomol/files/patch-framework_base_PGM.cpp9
-rw-r--r--biology/protomol/files/patch-framework_base_PPM.cpp9
-rw-r--r--biology/protomol/files/patch-framework_base_stringutilities.cpp10
-rw-r--r--biology/protomol/files/patch-framework_imd_imd.cpp10
-rw-r--r--biology/protomol/files/patch-framework_imd_vmdsock.cpp10
5 files changed, 48 insertions, 0 deletions
diff --git a/biology/protomol/files/patch-framework_base_PGM.cpp b/biology/protomol/files/patch-framework_base_PGM.cpp
new file mode 100644
index 000000000000..2f21a8726773
--- /dev/null
+++ b/biology/protomol/files/patch-framework_base_PGM.cpp
@@ -0,0 +1,9 @@
+--- framework/base/PGM.cpp.orig 2005-05-07 14:40:23 UTC
++++ framework/base/PGM.cpp
+@@ -1,5 +1,6 @@
+ #include "PGM.h"
+ #include "PPM.h"
++#include <cstddef> // C++11 NULL
+ #include <vector> // NULL definition
+
+ namespace ProtoMol {
diff --git a/biology/protomol/files/patch-framework_base_PPM.cpp b/biology/protomol/files/patch-framework_base_PPM.cpp
new file mode 100644
index 000000000000..2b6f1dd29523
--- /dev/null
+++ b/biology/protomol/files/patch-framework_base_PPM.cpp
@@ -0,0 +1,9 @@
+--- framework/base/PPM.cpp.orig 2005-05-07 14:40:23 UTC
++++ framework/base/PPM.cpp
+@@ -1,5 +1,6 @@
+ #include "PPM.h"
+ #include "PGM.h"
++#include <cstddef> // C++11 NULL
+ #include <vector> // NULL definition
+
+ namespace ProtoMol {
diff --git a/biology/protomol/files/patch-framework_base_stringutilities.cpp b/biology/protomol/files/patch-framework_base_stringutilities.cpp
new file mode 100644
index 000000000000..8fee5ecfa3c9
--- /dev/null
+++ b/biology/protomol/files/patch-framework_base_stringutilities.cpp
@@ -0,0 +1,10 @@
+--- framework/base/stringutilities.cpp.orig 2005-05-07 14:40:24 UTC
++++ framework/base/stringutilities.cpp
+@@ -3,6 +3,7 @@
+
+ #include <algorithm>
+ #include <stdlib.h>
++#include <cstring>
+ #include <errno.h>
+
+ #include "Report.h"
diff --git a/biology/protomol/files/patch-framework_imd_imd.cpp b/biology/protomol/files/patch-framework_imd_imd.cpp
new file mode 100644
index 000000000000..824b859f0ad7
--- /dev/null
+++ b/biology/protomol/files/patch-framework_imd_imd.cpp
@@ -0,0 +1,10 @@
+--- framework/imd/imd.cpp.orig 2005-05-07 14:40:25 UTC
++++ framework/imd/imd.cpp
+@@ -1,6 +1,7 @@
+ #include "imd.h"
+ #include "vmdsock.h"
+ #include <string>
++#include <cstring>
+ using std::string;
+ #include <errno.h>
+ #include <stdlib.h>
diff --git a/biology/protomol/files/patch-framework_imd_vmdsock.cpp b/biology/protomol/files/patch-framework_imd_vmdsock.cpp
new file mode 100644
index 000000000000..575f0bea52aa
--- /dev/null
+++ b/biology/protomol/files/patch-framework_imd_vmdsock.cpp
@@ -0,0 +1,10 @@
+--- framework/imd/vmdsock.cpp.orig 2005-05-07 14:40:25 UTC
++++ framework/imd/vmdsock.cpp
+@@ -32,6 +32,7 @@ namespace ProtoMol {
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string>
++#include <cstring>
+ using std::string;
+
+ #if defined(WIN32)