# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id: Portfile 141605 2015-10-22 20:56:07Z mk@macports.org $ # kde/libkgapi/Portfile PortSystem 1.0 PortGroup kde4 1.1 fetch.type git git.url git://anongit.kde.org/qtcurve.git git.branch 660f859556471f13834ef4fb095816639aa85014 name QtCurve version 1.8.18 revision 1 categories kde kde4 description A set of widget styles for Qt4/KDE4 based apps. platforms darwin license LGPL-2+ maintainers gmail.com:rjvbertin homepage http://kde-look.org/content/show.php?content=40492 master_sites http://quickgit.kde.org/?p=qtcurve.git \ http://craigd.wikispaces.com/file/view/ #distname ${name}-KDE4-${version} livecheck.type regex livecheck.url http://quickgit.kde.org/?p=qtcurve.git livecheck.regex (\\d+(\\.\\d+)+) depends_lib-append port:gtk2 \ port:kdelibs4 \ port:qt4-mac configure.args-append -DQTC_QT4_STYLE_SUPPORT:BOOL=OFF -DENABLE_QT5:BOOL=OFF \ -DQTC_QT4_ENABLE_KWIN:BOOL=OFF variant x11 description {build x11 support} {} if { [variant_isset x11] } { depends_lib-append port:xorg-libX11 configure.args-append -DQTC_ENABLE_X11:BOOL=ON } else { configure.args-append -DQTC_ENABLE_X11:BOOL=OFF } variant gtk2 description {build the gtk2 plugin} {} if { [variant_isset gtk2] } { depends_lib-append port:gtk2 configure.args-append -DENABLE_GTK2:BOOL=ON } else { configure.args-append -DENABLE_GTK2:BOOL=OFF } variant qt5 description {build for qt5 too} {} if { [variant_isset qt5] } { depends_lib-append port:qt5-mac # default for ENABLE_QT5=on: configure.args-delete -DENABLE_QT5:BOOL=OFF } variant devel description {Prevent stripping of binaries} {} if { [variant_isset devel] } { configure.args-delete -DCMAKE_BUILD_TYPE=Release configure.args-append -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCMAKE_STRIP:FILEPATH=/bin/echo } variant qtonly description {Build only Qt style support, for installations without KDE} {} if { [variant_isset qtonly] } { depends_lib-delete port:kdelibs4 # configure.args-append -DQTC_QT_ONLY:BOOL=ON configure.args-append -DQTC_QT4_ENABLE_KDE:BOOL=OFF } else { post-destroot { xinstall -m 644 ${filespath}/qtc_qtcurve-rjvb.themerc ${destroot}/${prefix}/share/apps/kstyle/themes/ xinstall -m 644 ${filespath}/qtc_qtcurve-osx.themerc ${destroot}/${prefix}/share/apps/kstyle/themes/ xinstall -m 644 ${filespath}/QtCurveOSX.colors ${destroot}/${prefix}/share/apps/color-schemes/ xinstall -d -m 755 ${destroot}${prefix}/share/qt4/plugins system "ln -s ${prefix}/lib/kde4/plugins/styles ${destroot}${prefix}/share/qt4/plugins" } } notes-append "To access QtCurve and other KDE styles from pure Qt4 applications, execute ln -s ${prefix}/lib/kde4/plugins/styles ${prefix}/share/qt4/plugins with the appropriate privileges"