summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmy Winston <amynka@gentoo.org>2015-10-23 17:53:34 +0200
committerAmy Winston <amynka@gentoo.org>2015-10-23 17:54:53 +0200
commit08e80b8aebc0f36a2fd0c07e32bad61fbc6d29eb (patch)
treee0dfcbc15453507cec8833c31e47696602cb1fbe /sci-geosciences/liblas/files/liblas-1.8.0_remove-std-c++98.patch
parentprofiles/packages.mask: Remove dev-db/derby mask. (diff)
downloadgentoo-08e80b8aebc0f36a2fd0c07e32bad61fbc6d29eb.tar.gz
gentoo-08e80b8aebc0f36a2fd0c07e32bad61fbc6d29eb.tar.bz2
gentoo-08e80b8aebc0f36a2fd0c07e32bad61fbc6d29eb.zip
sci-geosciences/liblas: new ebuild
New ebuild initially written by SoapZaNet and committed under proxy-maintainers herd with wraeth as maintainer. Package-Manager: portage-2.2.20.1
Diffstat (limited to 'sci-geosciences/liblas/files/liblas-1.8.0_remove-std-c++98.patch')
-rw-r--r--sci-geosciences/liblas/files/liblas-1.8.0_remove-std-c++98.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/sci-geosciences/liblas/files/liblas-1.8.0_remove-std-c++98.patch b/sci-geosciences/liblas/files/liblas-1.8.0_remove-std-c++98.patch
new file mode 100644
index 000000000000..dc230dad0777
--- /dev/null
+++ b/sci-geosciences/liblas/files/liblas-1.8.0_remove-std-c++98.patch
@@ -0,0 +1,30 @@
+--- libLAS-1.8.0/CMakeLists.txt
++++ libLAS-1.8.0/CMakeLists.txt
+@@ -140,27 +140,6 @@
+
+ set(CMAKE_INCLUDE_PATH c:/osgeo4w64/include;$ENV{CMAKE_INCLUDE_PATH})
+ set(CMAKE_LIBRARY_PATH c:/osgeo4w64/lib;$ENV{CMAKE_LIBRARY_PATH})
+-else()
+-
+- # Recommended C++ compilation flags
+- # -Weffc++
+- #
+- # Remove -pedandic which causes errors from boost (comma at end of
+- # enum) 2012-09-05. Remove -Wcast-qual -Wfloat-equal
+- # -Wredundant-decls to suppress the multitude of warning messages.
+- set(LIBLAS_COMMON_CXX_FLAGS
+- " -Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -Wpointer-arith -Wcast-align -Wcast-qual -Wfloat-equal -Wredundant-decls -Wno-long-long")
+-
+- if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
+-
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LIBLAS_COMMON_CXX_FLAGS}")
+- if (CMAKE_COMPILER_IS_GNUCXX)
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++98 -ansi")
+- endif()
+-
+- elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR "${CMAKE_CXX_COMPILER}" MATCHES "clang")
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LIBLAS_COMMON_CXX_FLAGS}")
+- endif()
+ endif(WIN32)
+
+ if (APPLE)