1 | # -*- 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 |
---|
2 | # $Id: Portfile Thu Jun 5 12:10:38 UTC 2014 rjvbertin@gmail.com $ |
---|
3 | # kde/libkgapi/Portfile |
---|
4 | |
---|
5 | PortSystem 1.0 |
---|
6 | PortGroup kde4 1.1 |
---|
7 | |
---|
8 | fetch.type git |
---|
9 | #git.url git://anongit.kde.org/qtcurve.git |
---|
10 | git.url /Users/bertin/cworks/new/KDE/QtCurve/QtCurve-git |
---|
11 | git.branch 6b9c0eb7 |
---|
12 | |
---|
13 | name QtCurve |
---|
14 | version 1.8.18 |
---|
15 | |
---|
16 | categories kde kde4 |
---|
17 | |
---|
18 | description A set of widget styles for Qt4/KDE4 based apps. |
---|
19 | |
---|
20 | platforms darwin |
---|
21 | license LGPL-2+ |
---|
22 | maintainers gmail.com:rjvbertin |
---|
23 | |
---|
24 | homepage http://kde-look.org/content/show.php?content=40492 |
---|
25 | master_sites http://quickgit.kde.org/?p=qtcurve.git \ |
---|
26 | http://craigd.wikispaces.com/file/view/ |
---|
27 | #distname ${name}-KDE4-${version} |
---|
28 | |
---|
29 | livecheck.type regex |
---|
30 | livecheck.url http://quickgit.kde.org/?p=qtcurve.git |
---|
31 | livecheck.regex (\\d+(\\.\\d+)+) |
---|
32 | |
---|
33 | depends_lib-append port:gtk2 \ |
---|
34 | port:kdelibs4 \ |
---|
35 | port:qt4-mac |
---|
36 | |
---|
37 | configure.args-append -DQTC_QT4_STYLE_SUPPORT:BOOL=OFF -DENABLE_QT5:BOOL=OFF \ |
---|
38 | -DQTC_QT4_ENABLE_KWIN:BOOL=OFF |
---|
39 | |
---|
40 | variant x11 description {build x11 support} {} |
---|
41 | if { [variant_isset x11] } { |
---|
42 | depends_lib-append port:xorg-libX11 |
---|
43 | configure.args-append -DQTC_ENABLE_X11:BOOL=ON |
---|
44 | } else { |
---|
45 | configure.args-append -DQTC_ENABLE_X11:BOOL=OFF |
---|
46 | } |
---|
47 | |
---|
48 | variant gtk2 description {build the gtk2 plugin} {} |
---|
49 | if { [variant_isset gtk2] } { |
---|
50 | depends_lib-append port:gtk2 |
---|
51 | configure.args-append -DENABLE_GTK2:BOOL=ON |
---|
52 | } else { |
---|
53 | configure.args-append -DENABLE_GTK2:BOOL=OFF |
---|
54 | } |
---|
55 | |
---|
56 | variant qt5 description {build for qt5 too} {} |
---|
57 | if { [variant_isset qt5] } { |
---|
58 | depends_lib-append port:qt5-mac |
---|
59 | # default for ENABLE_QT5=on: |
---|
60 | configure.args-delete -DENABLE_QT5:BOOL=OFF |
---|
61 | } |
---|
62 | |
---|
63 | variant devel description {Prevent stripping of binaries} {} |
---|
64 | if { [variant_isset devel] } { |
---|
65 | configure.args-delete -DCMAKE_BUILD_TYPE=Release |
---|
66 | configure.args-append -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCMAKE_STRIP:FILEPATH=/bin/echo |
---|
67 | } |
---|
68 | |
---|
69 | variant qtonly description {Build only Qt style support, for installations without KDE} {} |
---|
70 | if { [variant_isset qtonly] } { |
---|
71 | depends_lib-delete port:kdelibs4 |
---|
72 | # configure.args-append -DQTC_QT_ONLY:BOOL=ON |
---|
73 | configure.args-append -DQTC_QT4_ENABLE_KDE:BOOL=OFF |
---|
74 | } else { |
---|
75 | post-destroot { |
---|
76 | xinstall -m 644 ${filespath}/qtc_qtcurve-rjvb.themerc ${destroot}/${prefix}/share/apps/kstyle/themes/ |
---|
77 | xinstall -m 644 ${filespath}/qtc_qtcurve-osx.themerc ${destroot}/${prefix}/share/apps/kstyle/themes/ |
---|
78 | xinstall -m 644 ${filespath}/QtCurveOSX.colors ${destroot}/${prefix}/share/apps/color-schemes/ |
---|
79 | xinstall -d -m 755 ${destroot}${prefix}/share/qt4/plugins |
---|
80 | system "ln -s ${prefix}/lib/kde4/plugins/styles ${destroot}${prefix}/share/qt4/plugins" |
---|
81 | } |
---|
82 | } |
---|
83 | |
---|
84 | notes-append "To access QtCurve and other KDE styles from pure Qt4 applications, execute |
---|
85 | ln -s ${prefix}/lib/kde4/plugins/styles ${prefix}/share/qt4/plugins |
---|
86 | with the appropriate privileges" |
---|