Review Request 122114: [OS X] adaptations of the build system (CMake files) to MacPorts
Friedrich W. H. Kossebau
kossebau at kde.org
Sat Jan 17 22:49:38 GMT 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122114/#review74205
-----------------------------------------------------------
Great to see all those apps now building for you/in the MacPorts, good job :)
But not yet happy with the needed fixes you propose, so please let's work on them:
CMakeLists.txt
<https://git.reviewboard.kde.org/r/122114/#comment51520>
What does this line do exactly? And what can it break? Putting it here with no explanation comment and for every build on every system seems risky for me, when it is "just" some MacPort builds?
Can you please give more details about it? Perhaps it can be ifdef'ed?
cmake/modules/FindOpenJPEG.cmake
<https://git.reviewboard.kde.org/r/122114/#comment51519>
Hm, these // things at least need a comment, because this strange path will surprise any clueless reader of the code.
But then I wonder if this is a standard approach to this problem. Adding a hack like this just for MacPorts opens the can for all distris to add hacks for some custom solutions.
I propose we first look for a more cmake/usual solution for the problem of supporting non-standard installation paths of used libs.
cmake/productsets/osx.cmake
<https://git.reviewboard.kde.org/r/122114/#comment51518>
All commented-out lines can be removed now, no?
- Friedrich W. H. Kossebau
On Jan. 17, 2015, 10:04 nachm., René J.V. Bertin wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/122114/
> -----------------------------------------------------------
>
> (Updated Jan. 17, 2015, 10:04 nachm.)
>
>
> Review request for Calligra and KDE Software on Mac OS X.
>
>
> Repository: calligra
>
>
> Description
> -------
>
> This patch adapts the build system to OS X with KDE4, Qt4 and other dependencies installed through MacPorts.
>
> In order of appearance in the patch file:
> - `-DQT_EXCEPTIONS`: this is for use with Qt built with its -no-exceptions option, which MacPorts provides as an optional variant.
> - Newer OS X variants only provide the clang compiler
> - The default install location for MacPorts is `/opt/local`, but this can be changed by the user. The header and library search paths required for OpenJPEG, libpqxx and OpenVC are added using `//opt//local//` which is of course equivalent to `/opt/local` but easier to search-and-replace with the true install location in MacPorts' post-patch stage.
> - the product set for OS X has been extended to all applications and features that build and make sense. (Calligra Gemini builds, but does not function properly.)
>
> A "Portfile" and accompanying patches that don't have the vocation to be included "upstream" in calligra will be uploaded to MacPorts' trac system soon.
>
>
> Diffs
> -----
>
> CMakeLists.txt facb5f9
> cmake/modules/FindOpenJPEG.cmake 6bfd93c
> cmake/modules/FindPqxx.cmake 3e24a0c
> cmake/modules/FindVc.cmake bb9823f
> cmake/productsets/osx.cmake 1fe8f1c
>
> Diff: https://git.reviewboard.kde.org/r/122114/diff/
>
>
> Testing
> -------
>
> On OS X 10.9.5 with kdelibs 4.14.4 and Qt 4.8.6 installed through MacPorts.
>
>
> Thanks,
>
> René J.V. Bertin
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20150117/22bd4a5c/attachment.htm>
More information about the calligra-devel
mailing list