aboutsummaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2015-06-23 21:22:08 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2015-06-23 21:22:08 +0000
commitdb109a97b6a1966a6ff296f134ae876b13f79ecf (patch)
tree7bb83133ae4c4518b83516967d4a63eafcf8c1c7 /databases
parentf1d8abf71be89164e6ccc39e578015f027bec7aa (diff)
downloadports-db109a97b6a1966a6ff296f134ae876b13f79ecf.tar.gz
ports-db109a97b6a1966a6ff296f134ae876b13f79ecf.zip
Notes
Diffstat (limited to 'databases')
-rw-r--r--databases/cassandra-cpp-driver/Makefile3
-rw-r--r--databases/cassandra-cpp-driver/files/patch-CMakeLists.txt12
2 files changed, 14 insertions, 1 deletions
diff --git a/databases/cassandra-cpp-driver/Makefile b/databases/cassandra-cpp-driver/Makefile
index c71c10f09c28..cc18f355a7a4 100644
--- a/databases/cassandra-cpp-driver/Makefile
+++ b/databases/cassandra-cpp-driver/Makefile
@@ -17,7 +17,8 @@ GH_ACCOUNT= datastax
GH_PROJECT= cpp-driver
USES= cmake:outsource
-CMAKE_ARGS= -DCMAKE_INSTALL_LIBDIR:STRING=lib
+CMAKE_ARGS= -DCMAKE_INSTALL_LIBDIR:STRING=lib \
+ -DCASS_BUILD_STATIC:BOOL=ON
USE_LDCONFIG= yes
USE_OPENSSL= yes
diff --git a/databases/cassandra-cpp-driver/files/patch-CMakeLists.txt b/databases/cassandra-cpp-driver/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..c88ce9613e66
--- /dev/null
+++ b/databases/cassandra-cpp-driver/files/patch-CMakeLists.txt
@@ -0,0 +1,12 @@
+--- CMakeLists.txt.orig 2015-05-18 16:31:48 UTC
++++ CMakeLists.txt
+@@ -421,6 +421,9 @@ elseif("${CMAKE_CXX_COMPILER_ID}" STREQU
+ # Clang/Intel specific compiler options
+ # I disabled long-long warning because boost generates about 50 such warnings
+ set(WARNING_COMPILER_FLAGS "-Wall -pedantic -Wextra -Wno-long-long -Wno-unused-parameter -Wno-variadic-macros -Wno-zero-length-array")
++ if(${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER "3.6")
++ set(WARNING_COMPILER_FLAGS "${WARNING_COMPILER_FLAGS} -Wno-unused-local-typedef ")
++ endif()
+
+ # OpenSSL is deprecated on later versions of Mac OS X. The long-term solution
+ # is to provide a CommonCryto implementation.