Ticket #44527: Portfile-1.8.18

File Portfile-1.8.18, 3.1 KB (added by RJVB (René Bertin), 10 years ago)

Portfile for v1.8.18

Line 
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
5PortSystem          1.0
6PortGroup           kde4 1.1
7
8fetch.type          git
9#git.url             git://anongit.kde.org/qtcurve.git
10git.url             /Users/bertin/cworks/new/KDE/QtCurve/QtCurve-git
11git.branch          6b9c0eb7
12
13name                QtCurve
14version             1.8.18
15
16categories          kde kde4
17
18description         A set of widget styles for Qt4/KDE4 based apps.
19
20platforms           darwin
21license             LGPL-2+
22maintainers         gmail.com:rjvbertin
23
24homepage            http://kde-look.org/content/show.php?content=40492
25master_sites        http://quickgit.kde.org/?p=qtcurve.git \
26                    http://craigd.wikispaces.com/file/view/
27#distname            ${name}-KDE4-${version}
28
29livecheck.type      regex
30livecheck.url       http://quickgit.kde.org/?p=qtcurve.git
31livecheck.regex     (\\d+(\\.\\d+)+)
32
33depends_lib-append  port:gtk2 \
34                    port:kdelibs4 \
35                    port:qt4-mac
36
37configure.args-append   -DQTC_QT4_STYLE_SUPPORT:BOOL=OFF -DENABLE_QT5:BOOL=OFF \
38                        -DQTC_QT4_ENABLE_KWIN:BOOL=OFF
39
40variant x11 description {build x11 support} {}
41if { [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
48variant gtk2 description {build the gtk2 plugin} {}
49if { [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
56variant qt5 description {build for qt5 too} {}
57if { [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
63variant devel description {Prevent stripping of binaries} {}
64if { [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
69variant qtonly description {Build only Qt style support, for installations without KDE} {}
70if { [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
84notes-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"