1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup kde4 1.1 |
---|
6 | |
---|
7 | name krita |
---|
8 | version 2.6.0 |
---|
9 | categories kde4 graphics |
---|
10 | platforms darwin |
---|
11 | license GPL |
---|
12 | maintainers gmail.com:patrik.andersson.se |
---|
13 | description Krita ${version} (without Vc) |
---|
14 | long_description Krita is the full-featured free digital painting studio for \ |
---|
15 | artists who want to create professional work from start to end. \ |
---|
16 | Krita is used by comic book artists, illustrators, concept \ |
---|
17 | artists, matte and texture painters and in the digital VFX \ |
---|
18 | industry. |
---|
19 | homepage http://www.krita.org |
---|
20 | master_sites http://download.kde.org/stable/calligra-latest/\ |
---|
21 | http://www.patriksmediedesign.se/ |
---|
22 | |
---|
23 | checksums rmd160 b25805f91372295d127be7ef229c3b575c662071 \ |
---|
24 | sha256 1bc0cd40734baf68a0d79307d0ffbd8e15a4571375a60b1016f0fc8b68c3d2ce |
---|
25 | |
---|
26 | # Some of these are drawn in as dependencies automatically by the kde4 portgroup, but I'll leave them all in anyway just in case |
---|
27 | depends_lib-append port:kdelibs4 \ |
---|
28 | port:kde4-runtime \ |
---|
29 | port:eigen \ |
---|
30 | port:qt4-mac \ |
---|
31 | port:cmake \ |
---|
32 | port:lcms \ |
---|
33 | port:libpng \ |
---|
34 | port:exiv2 |
---|
35 | |
---|
36 | |
---|
37 | # It would be better to do this by setting configure.args instead |
---|
38 | # The src folder does not contain a configure file to run, therefore this solution. |
---|
39 | configure { |
---|
40 | system -W ${workpath} "cmake -DCMAKE_INSTALL_PREFIX=${destroot} \ |
---|
41 | ${worksrcpath} -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCREATIVEONLY=ON" |
---|
42 | } |
---|
43 | |
---|
44 | # These commands needs to be run, j3 shall be j{n+1} where n is the number of cores |
---|
45 | # I tried withtout them but then it tries to do "make all" and it crashes. |
---|
46 | build { |
---|
47 | system -W ${workpath} "make -j3" |
---|
48 | } |
---|
49 | |
---|
50 | destroot.violate_mtree yes |
---|
51 | |
---|
52 | # Install prefix is set in the configure, therefore a more simple commandline... |
---|
53 | destroot { |
---|
54 | system -W ${workpath} "make install" |
---|
55 | } |
---|
56 | |
---|
57 | post-activate { |
---|
58 | # export statements removed, they just pointed to placeholders |
---|
59 | # it is necessary to create some kind of path to run the application, perhaps a post-destroot script could do that. |
---|
60 | system "launchctl load -w /Library/LaunchAgents/org.macports.kdecache.plist" |
---|
61 | system "launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist" |
---|
62 | system -W ${workpath} "kbuildsycoca4" |
---|
63 | } |
---|