Ticket #37579: Portfile.5

File Portfile.5, 2.6 KB (added by gallafent, 11 years ago)

Portfile for calligra 2.6.1

Line 
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
3PortSystem          1.0
4PortGroup           kde4    1.1
5
6name                calligra
7version             2.6.1
8categories          kde kde4
9maintainers         openmaintainer
10license             {GPL-2}
11description         Calligra Suite is an office suite built on KDE4 platform.
12long_description    ${description}
13platforms           darwin
14homepage            http://www.calligra.org
15distname            calligra-${version}
16master_sites        kde:stable/${distname}/
17use_bzip2           yes
18depends_build       port:cmake \
19                    port:pkgconfig \
20                    port:gmake \
21                    port:docbook-xsl-ns \
22                    port:automoc \
23
24depends_lib         port:kdelibs4 \
25                    port:kde4-runtime \
26                    port:kdepimlibs4 \
27                    port:sqlite3 \
28                    port:eigen \
29                    port:boost \
30                    port:qimageblitz \
31                    port:icu \
32                    port:fftw-3 \
33                    port:gsl \
34                    port:glew \
35                    port:lcms2 \
36                    port:openexr \
37                    port:exiv2 \
38                    port:libwpd \
39                    port:libwps \
40                    port:libwpg \
41                    port:libvisio \
42                    port:pstoedit \
43                    port:libkdcraw \
44                    port:poppler
45                    # poppler should have variant +qt4
46
47checksums           rmd160 75d2032918d93cdfe2916aa0addb446014462d70 \
48                    sha256 fbcd177e768bdbc47fcb1535d388d0d751fc3427345312fa26960eadacee9249
49
50configure.args-append -DBUILD_active=0 -DWITH_Marble=0 -DWITH_KDeclarative=0 -DBUILD_mysql=0 -DWITH_Okular=0 \
51    ../${distname}
52
53variant marble description {Build with marble map widget} {
54    depends_lib-append      port:marble
55    configure.args-delete   -DWITH_Marble=0
56    configure.args-append   -DWITH_Marble=1
57}
58
59variant okular description {Build with okular plugin} {
60    depends_lib-append      port:okular
61    configure.args-delete   -DWITH_Okular=0
62    configure.args-append   -DWITH_Okular=1
63}
64
65variant sql_drivers description {Build with extra Kexi sql driver} {
66    depends_lib-append      port:mysql55 \
67    port:libpqxx \
68    port:freetds \
69    port:xbase
70    configure.args-delete   -DBUILD_mysql=0
71    configure.args-append   -DBUILD_mysql=1
72}
73
74post-activate {
75    # Calling kbuildsycoca4 in case KDE hasn't called it yet to make sure that plugins are loaded.
76    system "${prefix}/bin/kbuildsycoca4 --noincremental"
77}