Ticket #44527: Portfile

File Portfile, 2.3 KB (added by RJVB (René Bertin), 10 years ago)
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
8name                QtCurve
9version             1.8.14
10
11categories          kde kde4
12
13description         A set of widget styles for Qt4/KDE4 based apps.
14
15platforms           darwin
16license             LGPL-2+
17maintainers         gmail.com:rjvbertin
18
19homepage            http://kde-look.org/content/show.php?content=40492
20master_sites        http://craigd.wikispaces.com/file/view/
21distname            ${name}-KDE4-${version}
22
23livecheck.type      regex
24livecheck.url       http://kde-look.org/content/show.php?content=40492
25livecheck.regex     "Source.*KDE 4 - (1\\.\\d+?(\\.\\d+))"
26
27use_bzip2           yes
28
29checksums           rmd160  88a7b4eba945078d394cf465e555ee2ff8aab6fc \
30                    sha256  ff2f4731a0fd3c0a246a4c9099ac8a117bba463fd7cc00490acb6525ea463404
31
32depends_lib-append  port:kdelibs4 \
33                    port:qt4-mac
34
35configure.args-append   -DQTC_STYLE_SUPPORT:BOOL=ON
36
37variant devel description {Prevent stripping of binaries} {}
38if { [variant_isset devel] } {
39        configure.args-delete -DCMAKE_BUILD_TYPE=Release
40        configure.args-append -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCMAKE_STRIP:FILEPATH=/bin/echo
41}
42
43variant qtonly description {Build only Qt style support, for installations without KDE} {}
44if { [variant_isset qtonly] } {
45        depends_lib-delete    port:kdelibs4
46        configure.args-append -DQTC_QT_ONLY:BOOL=ON
47} else {
48    post-destroot {
49        xinstall -m 644 ${filespath}/qtc_qtcurve-rjvb.themerc ${destroot}/${prefix}/share/apps/kstyle/themes/
50        xinstall -m 644 ${filespath}/qtc_qtcurve-osx.themerc ${destroot}/${prefix}/share/apps/kstyle/themes/
51        xinstall -m 644 ${filespath}/QtCurveOSX.colors ${destroot}/${prefix}/share/apps/color-schemes/
52        xinstall -d -m 755 ${destroot}${prefix}/share/qt4/plugins
53        system "ln -s ${prefix}/lib/kde4/plugins/styles ${destroot}${prefix}/share/qt4/plugins"
54    }
55}
56
57notes-append "To access QtCurve and other KDE styles from pure Qt4 applications, execute
58 ln -s ${prefix}/lib/kde4/plugins/styles ${prefix}/share/qt4/plugins
59 with the appropriate privileges"