[117138] trunk/dports/kde/kdevplatform
nicos at macports.org
nicos at macports.org
Mon Feb 17 06:58:54 PST 2014
Revision: 117138
https://trac.macports.org/changeset/117138
Author: nicos at macports.org
Date: 2014-02-17 06:58:54 -0800 (Mon, 17 Feb 2014)
Log Message:
-----------
kdevplatform: add -fexceptions for non-clang compilers
Modified Paths:
--------------
trunk/dports/kde/kdevplatform/Portfile
Added Paths:
-----------
trunk/dports/kde/kdevplatform/files/patch-languageCMakeLists.diff
Modified: trunk/dports/kde/kdevplatform/Portfile
===================================================================
--- trunk/dports/kde/kdevplatform/Portfile 2014-02-17 14:49:57 UTC (rev 117137)
+++ trunk/dports/kde/kdevplatform/Portfile 2014-02-17 14:58:54 UTC (rev 117138)
@@ -64,8 +64,11 @@
patchfiles-delete patch-pluginsCMakeLists.diff
}
-#Using c++0x for Lion and higher in case of clang 64-bit
-if {${configure.compiler} == "clang" && ${os.platform} eq "darwin" && ${os.major} >= 11} {
+if {${configure.compiler} ne "clang"} {
+ #Adding -fexceptions, required by gcc compilers
+ patchfiles-append patch-languageCMakeLists.diff
+} elseif {${os.platform} eq "darwin" && ${os.major} >= 11} {
+ #Using c++0x for Lion and higher in case of clang 64-bit
lappend merger_configure_args(x86_64) -DCMAKE_CXX_FLAGS='-stdlib=libc++' -DHAVE_UNORDERED_MAP=1
if {${build_arch} eq "x86_64" && ![variant_isset universal]} {
configure.args-append -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DHAVE_UNORDERED_MAP=1
Added: trunk/dports/kde/kdevplatform/files/patch-languageCMakeLists.diff
===================================================================
--- trunk/dports/kde/kdevplatform/files/patch-languageCMakeLists.diff (rev 0)
+++ trunk/dports/kde/kdevplatform/files/patch-languageCMakeLists.diff 2014-02-17 14:58:54 UTC (rev 117138)
@@ -0,0 +1,7 @@
+--- language/CMakeLists.txt.orig 2013-12-08 03:45:38.000000000 +0900
++++ language/CMakeLists.txt 2014-02-17 23:30:25.000000000 +0900
+@@ -1,3 +1,4 @@
++add_definitions( ${KDE4_ENABLE_EXCEPTIONS})
+ add_definitions( -DKDE_DEFAULT_DEBUG_AREA=9505 )
+
+ add_subdirectory(highlighting/tests)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140217/af35ef42/attachment.html>
More information about the macports-changes
mailing list