Hi,

I think I stumbled upon a more likely reason for the build issues evoked below. 
There's been a change in the cmake portgroup,
registry/portgroups/636464737c420ea283d4ad483ea35193d9da591588cba9f1d1d4e56d8ff6912e-6789/cmake-1.0.tcl
 vs. 
registry/portgroups/75f5e1bbba3b966f499792f00c2d7f4a1d35c65f00a5600ebfa600fa36b276cf-6911/cmake-1.0.tcl
 :

@@ -1,5 +1,5 @@
 # -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; 
tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
-# $Id: cmake-1.0.tcl 121112 2014-06-17 20:16:44Z [email protected] $
+# $Id: cmake-1.0.tcl 119436 2014-04-25 13:10:38Z [email protected] $
 #
 # Copyright (c) 2009 Orville Bennett <illogical1 at gmail.com>
 # Copyright (c) 2010-2013 The MacPorts Project
@@ -81,9 +81,12 @@
     # The environment variable CPPFLAGS is not considered by CMake.
     # (CMake upstream ticket #12928 "CMake silently ignores CPPFLAGS"
     # <http://www.cmake.org/Bug/view.php?id=12928>).
-    #
-    # But adding -I${prefix}/include to CFLAGS/CXXFLAGS is a bad idea.
-    # If any other flags are needed, we need to add them.
+    # Thus, we have to add them manually to the CFLAGS and CXXFLAGS in the
+    # pre-configure phase.
+    if {${configure.cppflags} ne ""} {
+        configure.cflags-append ${configure.cppflags}
+        configure.cxxflags-append ${configure.cppflags}
+    }

     # In addition, CMake provides build-type-specific flags for
     # Release (-O3 -DNDEBUG), Debug (-g), MinSizeRel (-Os -DNDEBUG), and

This ought at least explain the failures to find headerfiles in 
/opt/local/include mentioned by [email protected] .

R.

On Jul 28, 2014, at 21:58, René J.V. Bertin wrote:

> On Jul 28, 2014, at 20:33, [email protected] wrote:
> 
>> The log file complains of a linking error, specifically it can't find 
>> -lakonadi-calendar. This library does exist, however the link command does 
>> not have -L/opt/local/lib so it cannot find the library. If i edit the link 
>> command by hand, the link succeeds. However the renaming compile files as 
>> the compiler can't find header files, since the include flags appear to be 
>> incorrect, i.e. there is no -I/opt/local/include/.
> 
> I've been noticing the same error, but have been able to circumvent it 
> fiddling with configure.compiler .
> 
> Did you reinstall all KDE packages?
> 
> NB: I seem to recall seeing a recent change to a FindKDE4 cmake file; if 
> correct, I wonder if that's related?!
> 
> René

_______________________________________________
macports-users mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to