Ticket #38099: Portfile

File Portfile, 1.7 KB (added by patrik.andersson.se@…, 11 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                krita
6version             2.6.0
7categories          kde4
8platforms           darwin
9license                         GPL
10maintainers         gmail.com:patrik.andersson.se
11description             Krita 2.6.0 (without Vc)
12long_description    Krita is the full-featured free digital painting studio for \
13                    artists who want to create professional work from start to end. \
14                    Krita is used by comic book artists, illustrators, concept \
15                    artists, matte and texture painters and in the digital VFX \
16                    industry.
17homepage                        http://www.krita.org
18master_sites        http://download.kde.org/stable/calligra-latest/
19
20checksums                       rmd160 579752fd844b7064f4386f22c7a36d02ee615fda \
21                                        sha256 77e1257588856bf4b3924672c847c3c766e8d8819c23017ea24e141e4e9051cf
22
23depends_lib                     port:kdelibs4 \
24                                        port:kde4-runtime \
25                                        port:eigen \
26                                        port:qt4-mac \
27                                        port:cmake \
28                                        port:lcms \
29                                        port:libpng \
30                                        port:exiv2
31
32extract {
33        mkdir -p $HOME/kde4/src
34        mkdir -p $HOME/kde4/build
35        mkdir -p $HOME/kde4/inst
36        mkdir -p $HOME/kde4/build/calligra
37        mv ${distfiles} $HOME/kde4/src/${distfiles}
38        cd $HOME/kde4/src/calligra
39        tar -x ${distfiles}
40        cd calligra
41}
42
43configure {
44        cmake -DCMAKE_INSTALL_PREFIX=$HOME/kde4/inst $HOME/kde4/src/calligra \
45      -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCREATIVEONLY=ON
46}
47
48build {
49        make -j3
50}
51
52test {}
53
54destroot {
55}
56
57install {
58        make install
59        export KDEDIRS=/path/to/install:$KDEDIRS
60        export PATH=/path/to/install/bin:$PATH
61        export KDEHOME=/path/to/a/config/dir
62        launchctl load -w /Library/LaunchAgents/org.macports.kdecache.plist
63        launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
64        kbuildsycoca4
65}
66
67activate {}
68
69
70
71