aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2016-04-08 23:13:53 +0800
committermarino <marino@FreeBSD.org>2016-04-08 23:13:53 +0800
commitacb26eeba1044fc0f50c0c1c3edbbd30d19890fb (patch)
tree841a3cc94998f3ae6ad50523eca418f0cc01f08a /math
parentc5d008aa5ce55ea08633297c0e97817cf68ceeab (diff)
downloadfreebsd-ports-gnome-acb26eeba1044fc0f50c0c1c3edbbd30d19890fb.tar.gz
freebsd-ports-gnome-acb26eeba1044fc0f50c0c1c3edbbd30d19890fb.tar.zst
freebsd-ports-gnome-acb26eeba1044fc0f50c0c1c3edbbd30d19890fb.zip
math/pdal: Fix macro check and restore DragonFly support
Add __DragonFly__ definition check in two places to restore the build on DF. While here, change __FreeBSD__ value check to existance check which was the intent I believe (although result is the same). Approved by: Restore DF functionality blanket
Diffstat (limited to 'math')
-rw-r--r--math/pdal/files/patch-src_PluginManager.cpp2
-rw-r--r--math/pdal/files/patch-vendor_gtest-1.7.0_include_gtest_internal_gtest-port.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/math/pdal/files/patch-src_PluginManager.cpp b/math/pdal/files/patch-src_PluginManager.cpp
index 616d7036103f..5c8f6fda9401 100644
--- a/math/pdal/files/patch-src_PluginManager.cpp
+++ b/math/pdal/files/patch-src_PluginManager.cpp
@@ -5,7 +5,7 @@
#if defined(__APPLE__) && defined(__MACH__)
const std::string dynamicLibraryExtension(".dylib");
-#elif defined __linux__
-+#elif defined __linux__ || __FreeBSD__
++#elif defined __linux__ || defined __FreeBSD__ || defined __DragonFly__
const std::string dynamicLibraryExtension(".so");
#elif defined _WIN32
const std::string dynamicLibraryExtension(".dll");
diff --git a/math/pdal/files/patch-vendor_gtest-1.7.0_include_gtest_internal_gtest-port.h b/math/pdal/files/patch-vendor_gtest-1.7.0_include_gtest_internal_gtest-port.h
index 706f1531fbf0..30b35af45546 100644
--- a/math/pdal/files/patch-vendor_gtest-1.7.0_include_gtest_internal_gtest-port.h
+++ b/math/pdal/files/patch-vendor_gtest-1.7.0_include_gtest_internal_gtest-port.h
@@ -12,7 +12,7 @@
# define GTEST_OS_OPENBSD 1
#elif defined __QNX__
# define GTEST_OS_QNX 1
-+#elif defined __FreeBSD__
++#elif defined __FreeBSD__ || defined __DragonFly__
+# define GTEST_OS_FREEBSD 1
#endif // __CYGWIN__