aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2020-07-09 11:53:22 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2020-07-09 11:53:22 +0000
commit73cc729afe03cbf9264fb4700542efa680bb0ee3 (patch)
tree7da17f86847ca45c2eb4691510e41bb1f695c644
parent6ac3df6a6a2a82df8d8598e14159aebb92ab8238 (diff)
Notes
-rw-r--r--graphics/exiv2/Makefile3
-rw-r--r--graphics/exiv2/files/patch-cmake_compilerFlags.cmake15
2 files changed, 17 insertions, 1 deletions
diff --git a/graphics/exiv2/Makefile b/graphics/exiv2/Makefile
index c196f788b94e..d7aa5d7869fb 100644
--- a/graphics/exiv2/Makefile
+++ b/graphics/exiv2/Makefile
@@ -17,9 +17,10 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libexpat.so:textproc/expat2
TEST_DEPENDS= bash:shells/bash
-USES= cmake compiler:c++11-lang cpe gettext iconv pathfix \
+USES= cmake compiler:c++11-lang cpe dos2unix gettext iconv pathfix \
python:3.5+,test localbase:ldflags
USE_LDCONFIG= yes
+DOS2UNIX_FILES= cmake/compilerFlags.cmake
TEST_TARGET= tests
diff --git a/graphics/exiv2/files/patch-cmake_compilerFlags.cmake b/graphics/exiv2/files/patch-cmake_compilerFlags.cmake
new file mode 100644
index 000000000000..f7822207c73e
--- /dev/null
+++ b/graphics/exiv2/files/patch-cmake_compilerFlags.cmake
@@ -0,0 +1,15 @@
+--- cmake/compilerFlags.cmake.orig 2020-07-09 11:24:28 UTC
++++ cmake/compilerFlags.cmake
+@@ -26,7 +26,11 @@ if ( MINGW OR UNIX OR MSYS ) # MINGW, Linux, APPLE, CY
+ # This fails under Fedora, MinGW GCC 8.3.0 and CYGWIN/MSYS 9.3.0
+ if (NOT (MINGW OR CMAKE_HOST_SOLARIS OR CYGWIN OR MSYS) )
+ if (COMPILER_IS_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0)
+- add_compile_options(-fstack-clash-protection -fcf-protection)
++ if (NOT (${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "powerpc"))
++ add_compile_options(-fstack-clash-protection -fcf-protection)
++ else()
++ add_compile_options(-fstack-clash-protection)
++ endif()
+ endif()
+
+ if( (COMPILER_IS_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 5.0) # Not in GCC 4.8