| 22 | if {${subport} eq "${name}"} { |
| 23 | conflicts "${name}-qt5" |
| 24 | PortGroup kde4 1.1 |
| 25 | depends_lib-delete \ |
| 26 | port:phonon |
| 27 | # install the headerfiles where they won't clash with those from kf5-attica |
| 28 | patchfiles-append \ |
| 29 | patch-includedir.diff |
| 30 | post-patch { |
| 31 | reinplace -W ${worksrcpath} "s|@IPREFIX@|/${kde4.include_prefix}|g" \ |
| 32 | lib/CMakeLists.txt lib/cmake/libattica.pc.cmake |
| 33 | } |
| 34 | configure.args-append \ |
| 35 | -DQT4_BUILD:BOOL=On |
| 36 | post-destroot { |
| 37 | ln -s libattica.0.4.dylib ${destroot}${prefix}/lib/libattica.0.dylib |
| 38 | } |
| 39 | } else { |
| 40 | conflicts ${name} kf5-${name} |
| 41 | # for the time being... |
| 42 | PortGroup qt5 1.0 |
| 43 | PortGroup cmake 1.0 |
| 44 | cmake.out_of_source yes |
| 45 | patch.pre_args -Np1 |
| 46 | patchfiles qt5/patch-CMakeLists.diff \ |
| 47 | qt5/patch-fix-qmap-include.diff |
| 48 | post-extract { |
| 49 | # install local copies of CMake files that used to be part of the ECM |
| 50 | # but are now apparently part of kdelibs4support. When KF5 ports become |
| 51 | # available there may be a more elegant way to build attica-qt5 |
| 52 | # cf. https://www.mail-archive.com/search?l=kde-frameworks-devel@kde.org&q=subject:%22Re%5C%3A+EcmQt4To5Porting%22&f=1 |
| 53 | file copy ${filespath}/qt5/cmake/ ${worksrcpath} |
| 54 | } |
| 55 | } |
| 56 | |