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: Portfile 117140 2014-02-17 15:18:38Z nicos@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup kde4 1.1 |
---|
6 | PortGroup compiler_blacklist_versions 1.0 |
---|
7 | |
---|
8 | name calligra |
---|
9 | version 2.9.0 |
---|
10 | categories kde kde4 office |
---|
11 | platforms darwin |
---|
12 | license GPL-2+ |
---|
13 | maintainers gmail.com:rjvbertin openmaintainer |
---|
14 | |
---|
15 | description Calligra Suite is a set of applications written to help you to accomplish your work. |
---|
16 | |
---|
17 | if {[variant_isset office]} { |
---|
18 | long_description \ |
---|
19 | Calligra Office \n\ |
---|
20 | Calligra includes efficient and capable office components:\n\ |
---|
21 | Words for text processing. \n\ |
---|
22 | Sheets for computations. \n\ |
---|
23 | Stage for presentations. \n\ |
---|
24 | Flow for flowcharts. \n\ |
---|
25 | Kexi for databases. \n\ |
---|
26 | Calligra Art \n\ |
---|
27 | Calligra offers cutting edge applications for artists to work on 2D drawings and illustrations:\n\ |
---|
28 | Krita for painting and raster drawing.\n\ |
---|
29 | Karbon for vector graphics. \n\ |
---|
30 | This requires about 4Gb diskspace for building, installed footprint about 270Mb plus 85Mb per archived version (xz compression) |
---|
31 | } else { |
---|
32 | if {[variant_isset all]} { |
---|
33 | long_description \ |
---|
34 | Calligra Office \n\ |
---|
35 | Calligra includes efficient and capable office components:\n\ |
---|
36 | Words for text processing. \n\ |
---|
37 | Sheets for computations. \n\ |
---|
38 | Stage for presentations. \n\ |
---|
39 | Flow for flowcharts. \n\ |
---|
40 | Kexi for databases. \n\ |
---|
41 | Braindump for creative thinking.\n\ |
---|
42 | Calligra Art \n\ |
---|
43 | Calligra offers cutting edge applications for artists to work on 2D drawings and illustrations:\n\ |
---|
44 | Krita for painting and raster drawing.\n\ |
---|
45 | Karbon for vector graphics. \n\ |
---|
46 | The "all" variant also builds components not officially supported on OS X \n\ |
---|
47 | This requires about 4Gb diskspace for building, installed footprint about 300Mb plus 88Mb per archived version (xz compression). |
---|
48 | } else { |
---|
49 | long_description \ |
---|
50 | Calligra Art & Database\n\ |
---|
51 | Calligra Art offers cutting edge applications for artists to work on 2D drawings and illustrations:\n\ |
---|
52 | Krita for painting and raster drawing.\n\ |
---|
53 | Karbon for vector graphics.\n\ |
---|
54 | In addition, this installs:\n\ |
---|
55 | Kexi for databases. \n\ |
---|
56 | Braindump for creative thinking.\n\ |
---|
57 | This requires about 3Gb diskspace for building, installed footprint about 170Mb plus 45Mb per archived version |
---|
58 | } |
---|
59 | } |
---|
60 | |
---|
61 | conflicts calligra-devel |
---|
62 | |
---|
63 | homepage http://www.calligra.org/ |
---|
64 | master_sites kde:stable/calligra-latest/ |
---|
65 | |
---|
66 | use_xz yes |
---|
67 | |
---|
68 | checksums rmd160 2cbf6ba43cfb145800cddc30ef9e99924d31ba60 \ |
---|
69 | sha256 46c868767585cb90f373e06a264a94ba99cf187e1d208051d33c84d477f551e7 |
---|
70 | |
---|
71 | # Calligra is huge. Enable HFS compression. |
---|
72 | depends_extract-append port:libarchive |
---|
73 | extract.post_args "| bsdtar -x --hfsCompression" |
---|
74 | |
---|
75 | depends_lib-append port:phonon port:kdelibs4 port:kdepimlibs4 port:kactivities \ |
---|
76 | port:librevenge port:libodfgen port:libwpd-0.10 port:libwpg-0.3 port:libwps-0.3 port:libetonyek \ |
---|
77 | port:kde4-runtime port:kde4-baseapps port:okular \ |
---|
78 | port:libvisio-0.1 port:libgit2 port:openjpeg15 port:Vc \ |
---|
79 | port:lcms2 port:libpng port:eigen3 port:exiv2 port:boost port:gsl \ |
---|
80 | port:poppler-qt4-mac port:fftw-3 port:openexr port:tiff port:jpeg \ |
---|
81 | port:libiconv port:libkdcraw port:pstoedit port:glew port:marble |
---|
82 | |
---|
83 | # we need a compiler that has "real" C++11 support; on 10.6.8 that means macports-gcc-4.8 or 4.9 |
---|
84 | compiler.blacklist-append {clang < 500} |
---|
85 | compiler.blacklist-append macports-clang-3.1 macports-clang-3.0 macports-clang-3.2 macports-clang-3.3 macports-clang-3.4 |
---|
86 | compiler.blacklist-append macports-llvm-gcc-4.2 llvm-gcc-4.2 |
---|
87 | compiler.blacklist-append gcc-4.2 apple-gcc-4.2 gcc-4.0 |
---|
88 | |
---|
89 | patchfiles dont-link-to-plugins.diff |
---|
90 | post-patch { |
---|
91 | reinplace "s|//opt//local//|${prefix}/|g" ${worksrcpath}/cmake/modules/FindOpenJPEG.cmake ${worksrcpath}/cmake/modules/FindVc.cmake ${worksrcpath}/cmake/modules/FindPqxx.cmake |
---|
92 | } |
---|
93 | |
---|
94 | configure.args-delete -DBUNDLE_INSTALL_DIR=${applications_dir}/KDE4 |
---|
95 | configure.args-append -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCMAKE_STRIP:FILEPATH=/bin/echo \ |
---|
96 | -DPhonon_DIR=${qt_cmake_module_dir}/phonon \ |
---|
97 | -DICONV_INCLUDE_DIR=${prefix}/include -DICONV_LIBRARIES=${prefix}/lib/libiconv.dylib \ |
---|
98 | -DBUNDLE_INSTALL_DIR=${applications_dir}/KDE4/Calligra-Suite |
---|
99 | |
---|
100 | variant office description {Build the full office & art suite supported on OS X} {} |
---|
101 | variant all description {Build the full office & art suite including components not officially supported on OS X} {} |
---|
102 | |
---|
103 | if {[variant_isset office]} { |
---|
104 | configure.args-append -DPRODUCTSET=osx |
---|
105 | } else { |
---|
106 | depends_lib-append port:freetds |
---|
107 | # TODO: figure out how to get mariadb to be recognised as providing our libmysqlclient |
---|
108 | configure.args-append -DFreeTDS_INCLUDE_DIR=${prefix}/include/freetds -DFreeTDS_LIBRARIES=${prefix}/lib/libsybdb.dylib |
---|
109 | |
---|
110 | if {![variant_isset all]} { |
---|
111 | configure.args-append -DPRODUCTSET=CREATIVEPRACTICAL |
---|
112 | patchfiles-append create-productset.diff |
---|
113 | } else { |
---|
114 | variant postgresql description {Add support for postgresql} { |
---|
115 | depends_lib-append port:libpqxx |
---|
116 | configure.args-append -DPostgreSQL_INCLUDE_DIR=${prefix}/include/postgresql93 -DPostgreSQL_TYPE_INCLUDE_DIR=${prefix}/include/postgresql93/server/catalog |
---|
117 | } |
---|
118 | } |
---|
119 | } |
---|
120 | |
---|
121 | livecheck.url http://kde.mirrors.hoobly.com/stable/calligra-latest |
---|
122 | livecheck.regex calligra-(\\d+(\\.\\d+)+) |
---|
123 | |
---|