diff options
author | joerg <joerg@pkgsrc.org> | 2013-04-14 19:46:23 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-04-14 19:46:23 +0000 |
commit | 5ddbb768115b4ce1d1ca3dae3fa0c5db52c3d09a (patch) | |
tree | 4a749353beb193dfd3f9928bb50cbdaf5c1feb56 /graphics/libkdcraw | |
parent | 991bb7365110c31b9333d461634fdb611afce59b (diff) | |
download | pkgsrc-5ddbb768115b4ce1d1ca3dae3fa0c5db52c3d09a.tar.gz |
Don't blindly force -O4, LTO may not be supported.
Diffstat (limited to 'graphics/libkdcraw')
-rw-r--r-- | graphics/libkdcraw/distinfo | 4 | ||||
-rw-r--r-- | graphics/libkdcraw/patches/patch-CMakeLists.txt | 15 | ||||
-rw-r--r-- | graphics/libkdcraw/patches/patch-libraw_CMakeLists.txt | 13 |
3 files changed, 31 insertions, 1 deletions
diff --git a/graphics/libkdcraw/distinfo b/graphics/libkdcraw/distinfo index 0a4832e7898..d0340c4ff90 100644 --- a/graphics/libkdcraw/distinfo +++ b/graphics/libkdcraw/distinfo @@ -1,6 +1,8 @@ -$NetBSD: distinfo,v 1.12 2013/04/03 10:52:12 markd Exp $ +$NetBSD: distinfo,v 1.13 2013/04/14 19:46:23 joerg Exp $ SHA1 (libkdcraw-4.10.2.tar.xz) = 639bf3bf9a872cccbb39e5d16188dfa1d895463a RMD160 (libkdcraw-4.10.2.tar.xz) = 206e3381285ee7596039e746bf2ebbd10caec139 Size (libkdcraw-4.10.2.tar.xz) = 349516 bytes +SHA1 (patch-CMakeLists.txt) = ca669ec8904109207d342f7f66277a27c2faad45 +SHA1 (patch-libraw_CMakeLists.txt) = 57c257378a5bf7f6f5d7ca764b0b9cc836a45dcc SHA1 (patch-libraw_internal_wf_filtering.cpp) = 88b5f66a3dbaeea03927dd2eab098877beb904d6 diff --git a/graphics/libkdcraw/patches/patch-CMakeLists.txt b/graphics/libkdcraw/patches/patch-CMakeLists.txt new file mode 100644 index 00000000000..1c212529b3f --- /dev/null +++ b/graphics/libkdcraw/patches/patch-CMakeLists.txt @@ -0,0 +1,15 @@ +$NetBSD: patch-CMakeLists.txt,v 1.1 2013/04/14 19:46:23 joerg Exp $ + +--- CMakeLists.txt.orig 2013-04-14 16:00:15.000000000 +0000 ++++ CMakeLists.txt +@@ -100,8 +100,8 @@ SET(DCRAW_LIB_SO_VERSION_STRING "${DCRAW + # Compiler optimizations for Release target. + + IF(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) +- SET(CMAKE_C_FLAGS_RELEASE "-O4 -DNDEBUG -DQT_NO_DEBUG") +- SET(CMAKE_CXX_FLAGS_RELEASE "-O4 -DNDEBUG -DQT_NO_DEBUG") ++ SET(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG -DQT_NO_DEBUG") ++ SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG -DQT_NO_DEBUG") + ENDIF(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) + + # ================================================================================================== diff --git a/graphics/libkdcraw/patches/patch-libraw_CMakeLists.txt b/graphics/libkdcraw/patches/patch-libraw_CMakeLists.txt new file mode 100644 index 00000000000..b81d5eec7ea --- /dev/null +++ b/graphics/libkdcraw/patches/patch-libraw_CMakeLists.txt @@ -0,0 +1,13 @@ +$NetBSD: patch-libraw_CMakeLists.txt,v 1.1 2013/04/14 19:46:23 joerg Exp $ + +--- libraw/CMakeLists.txt.orig 2013-04-14 16:00:21.000000000 +0000 ++++ libraw/CMakeLists.txt +@@ -279,7 +279,7 @@ FOREACH(_curentfile ${libraw_LIB_SRCS}) + IF(WIN32 AND MSVC) + SET_SOURCE_FILES_PROPERTIES(${_curentfile} PROPERTIES COMPILE_FLAGS "-w") + ELSE(WIN32 AND MSVC) +- SET_SOURCE_FILES_PROPERTIES(${_curentfile} PROPERTIES COMPILE_FLAGS "-w -fPIC -O4") ++ SET_SOURCE_FILES_PROPERTIES(${_curentfile} PROPERTIES COMPILE_FLAGS "-w -fPIC -O3") + ENDIF(WIN32 AND MSVC) + ENDFOREACH(_curentfile ${libraw_LIB_SRCS}) + |